Show modified date in UI.

master
Nick Sergeant 2015-04-06 10:32:30 -04:00
parent 9cef3b85e8
commit 98a41a5719
4 changed files with 11 additions and 4 deletions

View File

@ -1241,8 +1241,13 @@ article.snipt {
}
&.raw {
background-image: none;
color: #3899B5;
float: right;
margin-right: 130px;
margin-right: 10px;
a {
color: #3899B5;
}
}
&.tweet {
background: none;

View File

@ -82,12 +82,13 @@
<% if (!snipt.new_from_js) { %>
<li class="created" title="<%= snipt.created %>"><%= snipt.created_formatted %></li>
<% } %>
<li class="modified" title="<%= snipt.modified %>">Edited <%= snipt.modified %></li>
<% if (snipt.public && !window.detail) { %>
<li class="comments"><a href="<%= snipt.absolute_url %>#disqus_thread" data-disqus-identifier="<%= snipt.id %>"></a></li>
<% } %>
<li class="raw">
<a href="<%= snipt.raw_url %>">Raw</a> /
<a href="<%= snipt.raw_url %>?nice">Raw Nice</a>
<a href="<%= snipt.raw_url %>?nice">Nice</a>
</li>
</ul>
</footer>

View File

@ -163,12 +163,13 @@
{% else %}
<li class="created" title="{{ snipt.created|date:"Y-m-d\TH:i:s" }}">{{ snipt.created|naturaltime }}</li>
{% endif %}
<li class="created" title="{{ snipt.modified|date:"Y-m-d\TH:i:s" }}">Edited {{ snipt.modified|naturaltime }}</li>
{% if snipt.public and not detail %}
<li class="comments"><a href="{{ snipt.get_full_absolute_url }}#disqus_thread" data-disqus-identifier="{{ snipt.pk }}"></a></li>
{% endif %}
<li class="raw">
<a href="{{ snipt.get_raw_url }}">Raw</a> /
<a href="{{ snipt.get_raw_url }}?nice">Raw Nice</a>
<a href="{{ snipt.get_raw_url }}?nice">Nice</a>
</li>
{% if detail and snipt.public %}
<li class="tweet">

View File

@ -41,7 +41,7 @@
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/highlightjs-themes/tomorrow.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/blog-themes/default/style.css" />
{% else %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/snipt.css?113" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/snipt.css?114" />
{% endif %}
{% if has_snipts and not detail %}