Skip to content

Commit

Permalink
[#1358] Show actual timestamp, translate string
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Dec 3, 2013
1 parent 5ef1ac6 commit 7f7d3dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions ckan/templates/package/resource_data.html
Expand Up @@ -36,7 +36,11 @@
</tr>
<tr>
<th>{{ _('Last updated') }}</th>
<td>{{ h.time_ago_from_timestamp(status.last_updated) if status.status else _('Never') }}</td>
{% if status.status %}
<td><span class="date" title="{{ h.render_datetime(status.last_updated, with_hours=True) }}">{{ h.time_ago_from_timestamp(status.last_updated) }}</span></td>
{% else %}
<td>{{ _('Never') }}</td>
{% endif %}
</tr>
</table>

Expand All @@ -51,9 +55,9 @@ <h3>{{ _('Upload Log') }}</h3>
<i class="icon icon-{{ icon }}"></i>
<p>
{{ item.message | urlize }}<br>
<span class="date">
<span class="date" title="{{ h.render_datetime(item.timestamp, with_hours=True) }}">
{{ h.time_ago_from_timestamp(item.timestamp) }}
<a href="#" data-target="popover" data-content="<dl>{% for key, value in item.iteritems() %}<dt>{{ key }}</dt><dd>{{ value }}</dd>{% endfor %}</dl>" data-html="true">more info</a>
<a href="#" data-target="popover" data-content="<dl>{% for key, value in item.iteritems() %}<dt>{{ key }}</dt><dd>{{ value }}</dd>{% endfor %}</dl>" data-html="true">{{ _('Details') }}</a>
</span>
</p>
</li>
Expand Down

0 comments on commit 7f7d3dd

Please sign in to comment.