~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/news/item_post_detail.html

  • Committer: Holger Rapp
  • Date: 2009-02-21 18:24:02 UTC
  • Revision ID: sirver@kallisto.local-20090221182402-k3tuf5c4gjwslbjf
Main Page contains now the same informations as before

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% comment %}
 
2
 vim:ft=htmldjango:
 
3
 
 
4
 This file contains the simple way to render a news item
 
5
 
 
6
{% endcomment %}
 
7
{% load news markup tagging_tags %}
 
8
 
 
9
   <div class="outer">
 
10
      <table cellpadding="0" cellspacing="0" width="98%">
 
11
         <tr>
 
12
            <td class="specialhead"><span class="itemTitle">{# TODO: categories! #} {{ object.title }}</span></td>
 
13
         </tr>
 
14
         <tr>
 
15
            <td class="itemInfo"> 
 
16
               <span class="itemPoster">Posted by {{object.author}}</span>
 
17
               <span class="itemPostDate">on {{ object.publish|date:"j F Y" }}</span> 
 
18
            </td>
 
19
         </tr>
 
20
         <tr>
 
21
            <td>
 
22
               <div class="itemBody">
 
23
                  {% comment %} TODO: post picture 
 
24
                  <a href='http://xoops.widelands.org/modules/news/index.php?storytopic=4'><img src='http://xoops.widelands.org/modules/news/images/topics/59330258038d8f6b.png' alt='Developers' hspace='10' vspace='10' align='left' /></a>
 
25
                  {% endcomment %}
 
26
                  <div class="itemText">
 
27
                  {{ object.body|markdown:"safe" }}
 
28
                  </div>
 
29
               </div>
 
30
            </td> 
 
31
         </tr>
 
32
         {% tags_for_object object as tag_list %}
 
33
         {% if tag_list %}
 
34
         <tr>
 
35
            <td class="itemFoot">
 
36
               <strong>Tags:</strong>
 
37
               {% for tag in tag_list %}
 
38
               {{ tag }}{% if not forloop.last %}, {% endif %}
 
39
               {% endfor %}
 
40
            </td>
 
41
         </tr>
 
42
         {% endif %}
 
43
      </table>
 
44
   </div>