Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends 'blog/base.html' %}
- {% load comments %}
- {% load mytags %}
- {% block stylesheets %}
- {{ block.super }}
- <link rel="image_src" href="{{ MEDIA_URL }}{{post.header_image}}" />
- {% endblock %}
- {% block pagetitle %} - {{post.title}}{% endblock %}
- {% block pagetags %}{{post.tags.all|join:","}}{% endblock %}
- {% block pagedescription %}{{post.description}}{% endblock %}
- {% block pagethumb %}{{post.teaser_picture}}{% endblock %}
- {% block pageauthor %}{{post.author}}{% endblock %}
- {% block title %}{{post.title}}{% endblock %}
- {% block og_title%}{{ post.title }}{% endblock %}
- {% block og_description %}{{ post.description }}{% endblock %}
- {% block og_type %}article{% endblock %}
- {% block og_url%}{{ post.get_absolute_url }}{% endblock %}
- {% block og_image %}{{ post.header_image }}{% endblock %}
- {% block og_video %}{% endblock %}
- {% block og_audio %}{% endblock %}
- {% block content %}
- <div class="main">
- <div class="content">
- <article class="blog_post">
- <header class="post_header">
- <h2 id="post_title">
- <a href="/blog/{{post.slug}}/post">{{post.title}}</a><br />
- </h2>
- <div id="posted">
- <div id="posted_date">
- {{ post.posted|date:"d M" }}<br/>
- {{ post.posted|date:"Y" }}
- </div>
- </div>
- </header>
- <div id="post_body">
- <div id="post_header">
- <img src="{{ MEDIA_URL }}{{post.header_image}}" /><br />
- </div>
- <div id="post_category">
- <h3 rel="category">Dans la catégorie:</h3><br/>
- {{ post.category }}
- </div>
- <div id="post_tags">
- <h3>Des mots clés:</h3>
- {% for tag in post.tags.all %}
- <ul>
- <li rel="tag">{{ tag.keyword }}</li>
- </ul>
- {% endfor %}
- </div>
- <div id="post_content">
- <p>{{post.body|safe}}</p> <div id="post_author">
- <p>par <strong>{{ post.author.first_name }} {{ post.author.last_name
- }}</strong></p>
- </div>
- </div>
- <footer class="post_footer">
- <div id="social_buttons"> <div id="fb_button"> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></s
- cript><fb:like href="http://diasporamas.com/blog/{{post.slug}}/post" layout="but
- ton_count" show_faces="false" width="145" action="recommend" font="arial">
- </fb:like>
- </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 @
- oleiade & @morganetual" data-lang="fr">Tweet</a><script type="text/javascript" s
- rc="http://platform.twitter.com/widgets.js"></script>
- </div>
- </div>
- </footer>
- </div>
- <div id="comments">
- {% get_comment_list for post as comment_list %}
- <div id="comments_display">
- {% get_comment_count for post as comment_count %}
- <h2>{{ comment_count }} Commentaires</h2>
- {% for comment in comment_list %}
- <div id="comment_head">
- {% show_gravatar comment.user_email 48 %}
- <p><h3>{{ comment.user_name }}</h3></p>
- <p id="comment_head_date">le {{ comment.submit_date }}</p>
- </div>
- <div id="comment_content">
- <p>{{ comment.comment }}</p>
- </div>
- {% endfor %}
- </div>
- <div id="comment_form">
- {% get_comment_form for post as form %}
- <form action="{% comment_form_target %}" method="post">
- <tr>
- {% for hidden in form.hidden_fields %}
- {{ hidden }}
- {% endfor %}
- {% for field in form.visible_fields %}
- <td>
- {% ifnotequal field.html_name "honeypot" %}
- {{ field.label_tag }}
- {% endifnotequal %}
- {{ field }}
- </td>
- {% endfor %}
- <td>
- <input type="submit" name="post" class="submit-post" value="Envoyer">
- </td>
- <td>
- <input type="hidden" name="next" value="{% url blog.views.view_post slug=post.slug %}" />
- </td>
- </tr>
- </form>
- </div>
- </div>
- </article>
- </div>
- </div>
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement