Source

Ochs / templates / news / story.html

{% extends 'base.html' %}
{% load story_extras disqus_tags %}
{% block title_headline %}{{ story.headline }}{% endblock %}
{% block title_section %}{{ story.section.get_title|capfirst }}{% endblock %}
{% block extra_head %}
<script type="text/javascript" src="{{ MEDIA_URL }}js/poll.js"></script>
{% endblock %}
{% block mainblock %}
<div class="leftsidebar column span-4">
    <ul>
    {% for group in groups %}
        <li><strong>{{ group.0 }}</strong>
            <ul>
            {% for byline in group.1 %}
                <li><a href="{{ byline.user.get_absolute_url }}">{{ byline.user.first_name }} {{ byline.user.last_name }}</a></li>
            {% endfor %}
            </ul>
        </li>
    {% endfor %}
    </ul>
    
    <ul><strong>Story Links</strong>
        {% for link in story.storylink_set.all %}
        <li><a href="{{ link.url }}" title="{{ link.description }}">{{ link.link_text }}</a>
            <p>{{ link.description|default:"" }}</p>
        {% endfor %}
    </ul>
</div>
<div class="column span-12">
    <strong><em>{{ story.publish_date|date:"j N Y, P" }}</em></strong>
    <h2>{{ story.headline }}</h2>
    <div id="dek">
        {{ story.summary|safe }}
    </div>
    <div id="body">
        {{ story.body|safe }}
    </div>
    <div id="comments">
        <h3><a href="{{ story.get_absolute_url }}#disqus_thread">Comments</a></h3>
        {% disqus_num_replies %}
        {% disqus_show_comments %}
    </div>
</div>
<div class="rightsidebar column span-7 last">
    <script type="text/javascript">
<!--
    google_ad_client = "pub-5383628189276873";
    /* 300x250 Story pages, created 12/29/09 */
    google_ad_slot = "4176414801";
    google_ad_width = 300;
    google_ad_height = 250;
    //-->
    </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br>
    {% polls story %}
    <div class="latest_stories">
    {% latest_stories story.section %}
    </div>
</div>
{% endblock %}