comparison templates/snippet/explore.html @ 173:b5e9ad94da00

Add publish date, # views to snippet explore page
author dellsystem <ilostwaldo@gmail.com>
date Sat, 20 Oct 2012 00:38:23 -0400
parents b8e0bdc37e32
children
comparison
equal deleted inserted replaced
172:5e10ea8052b5 173:b5e9ad94da00
14 <thead> 14 <thead>
15 <tr> 15 <tr>
16 <th>{% trans "Snippet title" %}</th> 16 <th>{% trans "Snippet title" %}</th>
17 <th>{% trans "Language" %}</th> 17 <th>{% trans "Language" %}</th>
18 <th>{% trans "Created on" %}</th> 18 <th>{% trans "Created on" %}</th>
19 <th>{% trans "Views" %}</th>
19 <th>{% trans "User" %}</th> 20 <th>{% trans "User" %}</th>
20 </tr> 21 </tr>
21 </thead> 22 </thead>
22 <tbody> 23 <tbody>
23 {% for snippet in recent_snippets %} 24 {% for snippet in recent_snippets %}
24 <tr> 25 <tr>
25 <td><a href="{{ snippet.get_absolute_url }}"> 26 <td><a href="{{ snippet.get_absolute_url }}">
26 {{ snippet.get_title }} 27 {{ snippet.get_title }}
27 </a></td> 28 </a></td>
28 <td>{{ snippet.get_lexer_display }} 29 <td>{{ snippet.get_lexer_display }}
29 <td>N/A</td> 30 <td>{{ snippet.published }}</td>
31 <td>{{ snippet.num_views }}</td>
30 <td> 32 <td>
31 <a href="{{ snippet.author.get_absolute_url }}"> 33 <a href="{{ snippet.author.get_absolute_url }}">
32 {{ snippet.author }} 34 {{ snippet.author }}
33 </a> 35 </a>
34 </td> 36 </td>