Broke out the table column templates into individual template files
This commit is contained in:
14
templates/tables/columns/activities-ocurred_at.html
Normal file
14
templates/tables/columns/activities-ocurred_at.html
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
<script id="{{table.id}}-column-occurred-at" type="text/x-handlebars-template">
|
||||
{% verbatim %}
|
||||
{{#if row.occurred_at }}
|
||||
<td data-num="{{dateFormat row.occurred_at format='x'}}">
|
||||
{{dateFormat row.occurred_at format="dddd"}}<br>{{dateFormat row.occurred_at format="MMM Do, YYYY h:mm a"}}
|
||||
</td>
|
||||
{{ else }}
|
||||
<td data-num="0">
|
||||
<i>{% endverbatim %}{{translate("UNKNOWN")}}{% verbatim %}</i>
|
||||
</td>
|
||||
{{/if }}
|
||||
{% endverbatim %}
|
||||
</script>
|
||||
Reference in New Issue
Block a user