Skip to content

Instantly share code, notes, and snippets.

@vdel26
Created January 22, 2015 17:32
Show Gist options
  • Select an option

  • Save vdel26/405f3bdf90fcad8cf63f to your computer and use it in GitHub Desktop.

Select an option

Save vdel26/405f3bdf90fcad8cf63f to your computer and use it in GitHub Desktop.
Filtering out deleted applications
<tbody>
{% for application in service.applications %}
{% unless application.plan.system_name == 'deleted' %}
<tr class="{% cycle 'applications': 'odd', 'even' %}" id="application_{{ application.id }}">
<td>
{{ application.name | link_to: application.url }}
</td>
{% if provider.multiple_services_allowed? %}
<td>{{ service.name }}</td>
{% endif %}
<td>{{ application.key }}</td>
<td>{{ application.state }}</td>
<td>
{% if application.can.be_updated? %}
<a href="{{ application.edit_url }}">
<i class="icon-pencil"></i>
</a>
{% endif %}
</td>
</tr>
{% endunless %}
{% endfor %}
</tbody>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment