Show
Ignore:
Timestamp:
07/21/08 13:53:50 (20 months ago)
Author:
JensDiemer
Message:

blog: add Feed function ;)

Files:
1 modified

Legend:

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

    r1691 r1701  
    7373            <fieldset class="comments"><legend>Leave a comment</legend> 
    7474            <script type="text/javascript"> 
    75                    document.write('<form method="post" action=".">'); 
     75                   document.write('<fo'+'rm met'+'hod="po'+'st" act'+'ion=".">'); 
    7676            </script> 
    7777            <ul id="input_fields"> 
    7878                    {% for field in add_comment_form %} 
    7979                        <li title="{{ field.help_text }}" class="{{ field.html_name }}"> 
    80                         <label for="{{ field.auto_id }}">{{ field.label }} :</label> 
     80                        <label for="{{ field.auto_id }}">{{ field.label }}:</label> 
    8181                        {{ field }} 
    8282                        <span class="field_help_text">{{ field.help_text }}</span> 
     
    8787            <noscript><h2 style="color:red;">JavaScript required!</h2></noscript> 
    8888            <script type="text/javascript"> 
    89                    document.write('<input type="submit" value="{% trans 'submit' %}" />'); 
    90                    document.write('</form>'); 
     89                   document.write('<in'+'put type="sub'+'mit" value="{% trans 'submit' %}" />'); 
     90                   document.write('</fo'+'rm>'); 
    9191            </script> 
    9292            </fieldset> 
     
    9696{% endfor %} 
    9797 
     98<fieldset class="feeds"><legend>{% trans 'available syndication feeds' %}</legend> 
     99    {% regroup feed_info|dictsort:"feed_type" by feed_type as feeds_grouped %} 
     100    <ul> 
     101    {% for feed in feeds_grouped %} 
     102        <li class="grouper"><strong>{{ feed.grouper }}:</strong> 
     103        <ul class="feed_type"> 
     104            {% for item in feed.list %} 
     105            <li><a href="{{ item.url }}">{{ item.title_info }}</a></li> 
     106            {% endfor %} 
     107        </ul> 
     108        </li> 
     109    {% endfor %} 
     110    </ul> 
     111</fieldset> 
     112 
    98113{% if back_url %}<p><a href="{{ back_url }}" class="action_link">Display all blog entries</a></p>{% endif %} 
    99114{% if create_url %}<p><a href="{{ create_url }}" class="action_link">create a new blog entry</a></p>{% endif %}