Show
Ignore:
Timestamp:
07/24/08 13:52:28 (20 months ago)
Author:
JensDiemer
Message:

blog plugin:

  • add a tag cloud ;)
  • display only tag feeds witched used in a displayed entry
  • tag ordering via django meta class
  • update the templates/CSS
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/media/PyLucid/internal_page/blog/display_blog.html

    r1709 r1712  
    44{% if not entries %}no blog entry exists{% endif %} 
    55{% for entry in entries %} 
    6     <fieldset class="entry"><legend class="headline"><a href="{{ entry.detail_url }}">{{ entry.headline }}</a></legend> 
     6    <fieldset class="entry"> 
     7        <legend class="headline"> 
     8             <a href="{{ entry.detail_url }}">{{ entry.headline }}<br /> 
     9             <small class="headline_info">{% blocktrans with entry.createtime|timesince as time %}Before {{ time }} published by{% endblocktrans %} {{ entry.createby }}.</small> 
     10             </a> 
     11        </legend> 
    712        {% if not entry.is_public %} 
    813            <p class="admin_info_line">not public</p> 
     
    2025        <div class="content">{{ entry.html }}</div> 
    2126 
    22         <small><p class="dateinfo"> 
    23             created {{ entry.createtime }} by {{ entry.createby }} 
    24             {% if entry.lastupdateby %}(Last update {{ entry.lastupdatetime }} by {{ entry.lastupdateby }}){% endif %} 
     27        <small><p class="date_info"> 
     28            {% if entry.lastupdateby %}(Last update: {{ entry.lastupdatetime|date:"D d M Y H:i" }} by {{ entry.lastupdateby }}.){% endif %} 
    2529        </p></small> 
    2630 
     
    4044            <ul> 
    4145            {% for comment in entry.all_comments %} 
    42                 <li class="{% if comment.createby %}user{% else %}anonymous{% endif %}_comment"> 
    43                   <fieldset class="comment"> 
    44                       <legend> 
    45                       {% if comment.homepage %}<a href="{{ comment.homepage }}">{% endif %} 
    46                         {{ comment.person_name }}{% if comment.homepage %}</a>{% endif %}: 
    47                       </legend> 
    48                       {% if not comment.is_public %} 
    49                           <p class="admin_info_line">not public</p> 
    50                       {% endif %} 
     46                <li> 
     47                  <fieldset class="comment {% if comment.createby %}user{% else %}anonymous{% endif %}_comment"> 
     48                    <legend class="headline"> 
     49                      {% if comment.homepage %}<a href="{{ comment.homepage }}" title="{{ comment.homepage }}">{% endif %} 
     50                        {{ comment.person_name }} 
     51                        {% if comment.homepage %}</a>{% endif %}<br /> 
     52                        <small class="headline_info"> 
     53                          {% blocktrans with comment.createtime|timesince as time %}Before {{ time }}{% endblocktrans %} 
     54                          IP: {{ comment.ip_address }} 
     55                          {% if comment.lastupdateby %}<br />(Last update {{ comment.lastupdatetime }} by {{ comment.lastupdateby }}){% endif %} 
     56                        </small> 
     57                    </legend> 
     58 
     59                      {% if not comment.is_public %}<p class="admin_info_line">not public</p>{% endif %} 
    5160 
    5261                      <div class="admin_links"> 
     
    5665 
    5766                      {{ comment.html_content }} 
    58  
    59                       <small><p class="dateinfo"> 
    60                         created {{ comment.createtime }} by {% if comment.createby %}{{ comment.createby }}{% else %}{{ comment.ip_address }}{% endif %} 
    61                         {% if comment.lastupdateby %}(Last update {{ comment.lastupdatetime }} by {{ comment.lastupdateby }}){% endif %} 
    62                       </p></small> 
    6367                  </fieldset> 
    6468                </li> 
     
    96100{% endfor %} 
    97101 
     102<fieldset class="tag_cloud"><legend>{% trans 'tag cloud' %}</legend> 
     103    <ul> 
     104    {% for tag in tag_cloud %} 
     105        <li><a href="{{ tag.url }}" style="font-size:{{ tag.font_size }}em;">{{ tag.name }}</a></li> 
     106    {% endfor %} 
     107    </ul> 
     108</fieldset> 
     109 
     110 
    98111<fieldset class="feeds"><legend>{% trans 'available syndication feeds' %}</legend> 
    99112    <ul>{% trans 'normal feeds:' %}