firefly-iii/resources/views/list/categories.twig

39 lines
1.5 KiB
Twig
Raw Normal View History

2015-06-21 04:59:35 -05:00
<table class="table table-hover sortable">
2015-05-02 02:21:42 -05:00
<thead>
2015-06-27 01:06:24 -05:00
<tr>
<th data-defaultsort="disabled">&nbsp;</th>
<th>{{ trans('list.name') }}</th>
<th class="hidden-sm hidden-xs">{{ trans('list.lastActivity') }}</th>
</tr>
2015-05-02 02:21:42 -05:00
</thead>
<tbody>
<tr>
<td>&nbsp;</td>
2015-05-23 08:57:38 -05:00
<td><a href="{{ route('categories.noCategory') }}"><em>{{ 'without_category'|_ }}</em></a></td>
2015-06-25 10:06:20 -05:00
<td class="hidden-sm hidden-xs">&nbsp;</td>
2015-05-02 02:21:42 -05:00
</tr>
{% for category in categories %}
2015-06-27 01:06:24 -05:00
<tr>
<td>
<div class="btn-group btn-group-xs">
<a href="{{ route('categories.edit', category.id) }}" class="btn btn-default btn-xs"><i class="fa fa-fw fa-pencil"></i></a>
<a href="{{ route('categories.delete', category.id) }}" class="btn btn-danger btn-xs"><i class="fa fa-fw fa-trash-o"></i></a>
</div>
2015-05-02 02:21:42 -05:00
</td>
2015-06-27 01:06:24 -05:00
<td>
<a href="{{ route('categories.show', category.id) }}" title="{{ category.name }}">{{ category.name }}</a>
2015-05-02 02:21:42 -05:00
</td>
2015-06-27 01:06:24 -05:00
{% if category.lastActivity %}
<td class="hidden-sm hidden-xs" data-value="{{ category.lastActivity.format('U') }}">
{{ category.lastActivity.formatLocalized(monthAndDayFormat) }}
</td>
{% else %}
<td class="hidden-sm hidden-xs" data-value="0">
<em>{{ 'never'|_ }}</em>
</td>
{% endif %}
</tr>
2015-05-02 02:21:42 -05:00
{% endfor %}
</tbody>
</table>