Permalink
Browse files

display meta info about entries

  • Loading branch information...
dduan committed Jun 24, 2010
1 parent 31b928a commit 6b3f483ac1b88279becef730cd2b1ea352855139
Showing with 29 additions and 9 deletions.
  1. +12 −4 sophie/templates/category_details.html
  2. +10 −2 sophie/templates/entry_details.html
  3. +7 −3 sophie/templates/entry_list.html
@@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block title %}
-{{ category.title }}-{{ blog.title }}
+{{ category.title }} - {{ blog.title }}
{% endblock title %}
{% block navi %}
@@ -10,11 +10,19 @@
{% block main %}
<div id="page-description">
- The content of this page is under {{ category.title }}
+ The content of this page is under {{ category.title }}.
</div>
{% for entry in page.object_list %}
- <h2 class="entry-title">{{ entry.title }}</h2>
+ <h2><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></h2>
+ <div class="entry-meta-info">
+ Published @
+ <span class="entry-pub-time">
+ {{ entry.pub_date|date:"DATETIME_FORMAT" }}
+ </span>
+ by
+ <span class="entry-author">{{ entry.author.get_full_name}}</span>
+ </div>
<div class="entry-body">
{% if blog.full_entry_in_page %}
{{ entry.body_html|safe }}
@@ -23,6 +31,6 @@ <h2 class="entry-title">{{ entry.title }}</h2>
{% endif %}
</div>
{% empty %}
- Ooops, there's nothing here yet, too bad.
+ But, there's nothing here yet, too bad.
{% endfor %}
{% endblock main %}
@@ -1,14 +1,22 @@
{% extends 'base.html' %}
{% block title %}
-{{ entry.title }}-{{ blog.title }}
+{{ entry.title }} - {{ blog.title }}
{% endblock title %}
{% block navi %}
{% include 'sidebar.html' %}
{% endblock navi %}
{% block main %}
-<h2 class="entry-title">{{ entry.title }}</h2>
+<h2><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></h2>
+<div class="entry-meta-info">
+ Published @
+ <span class="entry-pub-time">
+ {{ entry.pub_date|date:"DATETIME_FORMAT" }}
+ </span>
+ by
+ <span class="entry-author">{{ entry.author.get_full_name}}</span>
+</div>
<div class="entry-body">{{ entry.body_html|safe }}</div>
{% endblock main %}
@@ -11,12 +11,16 @@
{% block main %}
<div id="entry_list">
{% for entry in page.object_list %}
- <h3><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></h3>
+ <h2><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></h2>
<div class="entry-meta-info">
Published @
- <span class="entry-pub-time">{{ entry.pub_date|date:"DATETIME_FORMAT" }}</span>
+ <span class="entry-pub-time">
+ {{ entry.pub_date|date:"DATETIME_FORMAT" }}
+ </span>
by
- <span class="entry-author">{{ entry.author.get_full_name}}</span>
+ <span class="entry-author">
+ {{ entry.author.get_full_name}}
+ </span>
</div>
{% if blog.full_entry_in_page %}
<div>{{ entry.body_html|safe }}</div>

0 comments on commit 6b3f483

Please sign in to comment.