mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
39 lines
1.5 KiB
Twig
39 lines
1.5 KiB
Twig
<table class="table table-hover sortable">
|
|
<thead>
|
|
<tr>
|
|
<th data-defaultsort="disabled"> </th>
|
|
<th>{{ trans('list.name') }}</th>
|
|
<th class="hidden-sm hidden-xs">{{ trans('list.lastActivity') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td> </td>
|
|
<td><a href="{{ route('categories.noCategory') }}"><em>{{ 'without_category'|_ }}</em></a></td>
|
|
<td class="hidden-sm hidden-xs"> </td>
|
|
</tr>
|
|
{% for category in categories %}
|
|
<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>
|
|
</td>
|
|
<td>
|
|
<a href="{{ route('categories.show', category.id) }}" title="{{ category.name }}">{{ category.name }}</a>
|
|
</td>
|
|
{% 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>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|