Cleanup stuff
parent
66becafc4d
commit
8bd2d3b8fb
|
@ -13,7 +13,7 @@ admin.site.register(Snipt, SniptAdmin)
|
|||
|
||||
class FavoriteAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ('snipt', 'user',)
|
||||
list_display = ('snipt', 'user',)
|
||||
list_display = ('snipt', 'user', 'created',)
|
||||
search_fields = ('snipt', 'user',)
|
||||
ordering = ('-created',)
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<header>
|
||||
<h2> </h2>
|
||||
<h1>
|
||||
<input type="text" id="snipt_title" value="<%= snipt.title %>" />
|
||||
<input type="text" id="snipt_title" value="<% if (snipt.title != 'Untitled') { %><%= snipt.title %><% } %>" />
|
||||
</h1>
|
||||
</header>
|
||||
<section class="code">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div class="container">
|
||||
<header>
|
||||
<h2><%= snipt.lexer_name %></h2>
|
||||
<h1><a href="<%= snipt.absolute_url %>"><%= snipt.title %></a></h1>
|
||||
<h1><a href="<%= snipt.absolute_url %>"><% if (snipt.title) { %><%= snipt.title %><% } else { %>Untitled <% } %></a></h1>
|
||||
</header>
|
||||
<section class="code autumn">
|
||||
<%= snipt.stylized %>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="container">
|
||||
<header>
|
||||
<h2>{{ snipt.lexer_name }}</h2>
|
||||
<h1><a href="{{ snipt.get_absolute_url }}{% if not snipt.public %}?key={{ snipt.key }}{% endif %}">{{ snipt.title }}</a></h1>
|
||||
<h1><a href="{{ snipt.get_absolute_url }}">{% if snipt.title %}{{ snipt.title }}{% else %}Untitled{% endif %}</a></h1>
|
||||
</header>
|
||||
<section class="code {% if request.GET.style %}{{ request.GET.style }}{% else %}autumn{% endif %}">
|
||||
{{ snipt.stylized|safe }}
|
||||
|
@ -67,7 +67,7 @@
|
|||
<ul class="attrs">
|
||||
<li class="author"><a href="{{ snipt.user.get_absolute_url }}">{{ snipt.user.username }}</a></li>
|
||||
<li class="created" title="{{ snipt.created|date:"Y-m-d\TH:i:s" }}">{{ snipt.created|naturalday }}</li>
|
||||
<li class="comments"><a href="{{ snipt.get_full_absolute_url }}{% if not snipt.public %}?key={{ snipt.key }}{% endif %}#disqus_thread" data-disqus-identifier="{{ snipt.pk }}"></a></li>
|
||||
<li class="comments"><a href="{{ snipt.get_full_absolute_url }}#disqus_thread" data-disqus-identifier="{{ snipt.pk }}"></a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
<div class="modal hide copy-modal">
|
||||
|
|
Loading…
Reference in New Issue