Show
Ignore:
Timestamp:
05/28/08 20:22:40 (6 months ago)
Author:
simon
Message:

Implemented tagging.
Switched to arrows for the "Newer | Older" navigation.
Removed special behaviour for logged in users.

Location:
bitstructures/trunk/templates/substructure
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • bitstructures/trunk/templates/substructure/base.html

    r72 r74  
    55 
    66<head> 
    7 <title>{% block title %}Bitstructures &mdash; Simon Bates{% endblock %}</title> 
     7<title>Bitstructures &mdash; {% block title %}Simon Bates{% endblock %}</title> 
    88<link rel="alternate" type="application/atom+xml" href="/atom.xml"> 
    99<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/bitstructures.css"> 
     
    5353</div> 
    5454 
    55 {% if drafts %} 
    56 <div id="drafts" class="info-entry"> 
    57 <h2>Drafts</h2> 
    58 <ul> 
    59 {% for entry in drafts %} 
    60 <li><a href="{{ entry.get_absolute_url }}">{{ entry.title|escape }}</a></li> 
    61 {% endfor %} 
    62 </ul> 
    63 <p><a href="/admin/substructure/entry/add/">new entry</a></p> 
    64 </div> 
    65 {% endif %} 
    66  
    6755</div> 
    6856</div> 
  • bitstructures/trunk/templates/substructure/blog.html

    r72 r74  
    77{% endfor %} 
    88 
    9 <div class="page-nav">{% if previous_page %}<a href="/{% if not previous_page_first_page %}?page={{ previous_page_num }}{% endif %}">&laquo; newer</a>{% else %}&laquo; newer{% endif %} 
    10 | {% if next_page %}<a href="/?page={{ next_page_num }}">older &raquo;</a>{% else %}older &raquo;{% endif %}</div> 
     9<div class="page-nav">{% if previous_page %}<a href="/{% if not previous_page_first_page %}?page={{ previous_page_num }}{% endif %}">&larr; Newer</a>{% else %}&larr; Newer{% endif %} 
     10| {% if next_page %}<a href="/?page={{ next_page_num }}">Older &rarr;</a>{% else %}Older &rarr;{% endif %}</div> 
    1111 
    1212{% endblock %} 
  • bitstructures/trunk/templates/substructure/entry.html

    r42 r74  
    55<h2><a href="{{ entry.get_absolute_url }}">{{ entry.title|escape }}</a></h2> 
    66 
    7 {% if entry.date_published %} 
    8 <p class="entry-date">{{ entry.date_published|date:"F j, Y" }}</p> 
    9 {% endif %} 
    10  
    11 {% if user_can_change_entry %} 
    12 <p><a href="/admin/substructure/entry/{{ entry.id }}/">edit</a></p> 
    13 {% endif %} 
     7<p class="entry-info">{% if entry.date_published %}{{ entry.date_published|date:"F j, Y" }}<br>{% endif %}Tags: 
     8{% for tag in entry.tags %}<a href="{{ tag.get_absolute_url }}">{{ tag.name|escape }}</a> 
     9{% endfor %}</p> 
    1410 
    1511{{ entry.text|syntax_highlighted_markdown }}