Advertisement
Guest User

Untitled

a guest
Apr 29th, 2011
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.64 KB | None | 0 0
  1. {% extends 'blog/base.html' %}
  2.  
  3. {% load comments %}
  4. {% load mytags %}
  5.  
  6. {% block stylesheets %}
  7.   {{ block.super }}
  8.   <link rel="image_src" href="{{ MEDIA_URL }}{{post.header_image}}" />
  9. {% endblock %}
  10.  
  11. {% block pagetitle %} - {{post.title}}{% endblock %}
  12. {% block pagetags %}{{post.tags.all|join:","}}{% endblock %}
  13. {% block pagedescription %}{{post.description}}{% endblock %}
  14. {% block pagethumb %}{{post.teaser_picture}}{% endblock %}
  15. {% block pageauthor %}{{post.author}}{% endblock %}
  16. {% block title %}{{post.title}}{% endblock %}
  17.  
  18. {% block og_title%}{{ post.title }}{% endblock %}
  19. {% block og_description %}{{ post.description }}{% endblock %}
  20. {% block og_type %}article{% endblock %}
  21. {% block og_url%}{{ post.get_absolute_url }}{% endblock %}
  22. {% block og_image %}{{ post.header_image }}{% endblock %}
  23. {% block og_video %}{% endblock %}
  24. {% block og_audio %}{% endblock %}
  25.  
  26. {% block content %}
  27. <div class="main">
  28.   <div class="content">
  29.     <article class="blog_post">
  30.       <header class="post_header">
  31.         <h2 id="post_title">
  32.           <a href="/blog/{{post.slug}}/post">{{post.title}}</a><br />
  33.         </h2>
  34.         <div id="posted">
  35.           <div id="posted_date">
  36.             {{ post.posted|date:"d M" }}<br/>
  37.             {{ post.posted|date:"Y" }}
  38.           </div>
  39.         </div>
  40.       </header>
  41.       <div id="post_body">
  42.         <div id="post_header">
  43.           <img src="{{ MEDIA_URL }}{{post.header_image}}" /><br />
  44.         </div>
  45.         <div id="post_category">
  46.           <h3 rel="category">Dans la catégorie:</h3><br/>
  47.           {{ post.category }}
  48.         </div>
  49.         <div id="post_tags">
  50.           <h3>Des mots clés:</h3>
  51.           {% for tag in post.tags.all %}
  52.           <ul>
  53.             <li rel="tag">{{ tag.keyword }}</li>
  54.           </ul>
  55.           {% endfor %}
  56.         </div>
  57.         <div id="post_content">
  58.           <p>{{post.body|safe}}</p>          <div id="post_author">
  59.             <p>par <strong>{{ post.author.first_name }} {{ post.author.last_name
  60.  }}</strong></p>
  61.           </div>
  62.         </div>
  63.         <footer class="post_footer">
  64.           <div id="social_buttons">            <div id="fb_button">              <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></s
  65. cript><fb:like href="http://diasporamas.com/blog/{{post.slug}}/post" layout="but
  66. ton_count" show_faces="false" width="145" action="recommend" font="arial">
  67.               </fb:like>
  68.             </div>            <div id="twitter_button">            <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://diasporamas.com/blog/{{post.slug}}/post" data-text="{{ post.title}}, un article a consulter ici: " data-count="horizontal" data-via="diasporamas" data-related="diasporamas:Réalisation de diaporamas sonores. Dernier en date: http://bit.ly/c9HriW // Tweete sur les webdocs, portfolios sonores, photos // Par @
  69. oleiade & @morganetual" data-lang="fr">Tweet</a><script type="text/javascript" s
  70. rc="http://platform.twitter.com/widgets.js"></script>
  71.             </div>
  72.           </div>
  73.         </footer>
  74.       </div>
  75.       <div id="comments">
  76.         {% get_comment_list for post as comment_list %}
  77.         <div id="comments_display">
  78.           {% get_comment_count for post as comment_count %}
  79.           <h2>{{ comment_count }} Commentaires</h2>
  80.           {% for comment in comment_list %}
  81.           <div id="comment_head">
  82.             {% show_gravatar comment.user_email 48 %}
  83.             <p><h3>{{ comment.user_name }}</h3></p>
  84.             <p id="comment_head_date">le {{ comment.submit_date }}</p>
  85.           </div>
  86.           <div id="comment_content">
  87.             <p>{{ comment.comment }}</p>
  88.           </div>
  89.           {% endfor %}
  90.         </div>
  91.         <div id="comment_form">
  92.           {% get_comment_form for post as form %}
  93.           <form action="{% comment_form_target %}" method="post">
  94.             <tr>
  95.               {% for hidden in form.hidden_fields %}
  96.               {{ hidden }}
  97.               {% endfor %}
  98.               {% for field in form.visible_fields %}
  99.               <td>
  100.                 {% ifnotequal field.html_name "honeypot" %}
  101.                 {{ field.label_tag }}
  102.                 {% endifnotequal %}
  103.                 {{ field }}
  104.               </td>
  105.               {% endfor %}
  106.               <td>
  107.                 <input type="submit" name="post" class="submit-post" value="Envoyer">
  108.               </td>
  109.               <td>
  110.                 <input type="hidden" name="next" value="{% url blog.views.view_post slug=post.slug %}" />
  111.               </td>
  112.             </tr>
  113.           </form>
  114.         </div>
  115.       </div>
  116.     </article>
  117.   </div>
  118. </div>
  119. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement