Mercurial > hg > agora-dellsystem
changeset 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 | 5e10ea8052b5 |
children | e40d79359d07 |
files | templates/snippet/explore.html |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/templates/snippet/explore.html +++ b/templates/snippet/explore.html @@ -16,6 +16,7 @@ <th>{% trans "Snippet title" %}</th> <th>{% trans "Language" %}</th> <th>{% trans "Created on" %}</th> + <th>{% trans "Views" %}</th> <th>{% trans "User" %}</th> </tr> </thead> @@ -26,7 +27,8 @@ {{ snippet.get_title }} </a></td> <td>{{ snippet.get_lexer_display }} - <td>N/A</td> + <td>{{ snippet.published }}</td> + <td>{{ snippet.num_views }}</td> <td> <a href="{{ snippet.author.get_absolute_url }}"> {{ snippet.author }}