{% extends "base.html" %} {% load eb humanize mapping eb_filter comments %} {% block title %}{{ newsitem.title }} | {{ newsitem.schema.plural_name|capfirst }}{% endblock %} {% block content %}

{% if newsitem.schema.is_special_report %}Special report: {% endif %}{{ newsitem.schema.plural_name|capfirst }}

{{ newsitem.title }}

{% block newsitem_detail_summary %}{% endblock %} {% if not newsitem.schema.is_special_report %}

{{ newsitem.schema.name|capfirst }} details

{% endif %}
{% include "richmaps/richmap.html" %}
{% block newsitem_detail_date %} {% endblock %} {% block newsitem_detail_description %} {% endblock %} {% block newsitem_detail_attribute_list %} {% for attribute in attribute_list %} {% endfor %} {% endblock %}
Location {% if location_url %}{% endif %} {{newsitem.location_name|default:"unknown"}} {% if location_url %}{% endif %} {% if not newsitem.location %}

This location couldn't be mapped.

{% endif %}
{{ newsitem.schema.date_name|capfirst }} {{ newsitem.item_date|date:"F j, Y" }}
Description {{ newsitem.description|truncatewords_html:20}} {% if newsitem.url %}
Read more at {{newsitem.url}} {% endif %}
{{ attribute.sf.smart_pretty_name|capfirst }} {% if attribute.value_list %} {% for value in attribute.value_list %} {% if value.url %} {{ value.value }} {% else %} {{ value.value }} {% endif %} {% if value.description %}

{{ value.description|safe }}

{% endif %} {% if not forloop.last %}{% if not value.description %}
{% endif %}{% endif %} {% endfor %} {% else %} None {% endif %}
{% block extracontent %} {% endblock %}

Retrieved on {{ newsitem.pub_date|date:"F j, Y" }}.

{% block item_comments %} {% if newsitem.schema.allow_comments %} {% get_comment_count for newsitem as comment_count %}

{{comment_count}} Comments

{% get_comment_list for newsitem as comment_list %} {% for comment in comment_list %}
{{ comment.comment }}
by {{ comment.name }} {{comment.submit_date}} {% comment %}flag this comment{%endcomment%}
{% endfor %}
{% if request.user.is_authenticated %}

Add a Comment

{% get_comment_form for newsitem as form %}
{% csrf_token %} {{form.content_type}} {{form.object_pk}} {{form.timestamp}} {{form.security_hash}}
{{form.comment}}
{% endif %} {% endif %} {% endblock %} {% block similaritems %} {% if not newsitem.schema.is_special_report %} {% if locations_within %}

Other {{ newsitem.schema.plural_name }} nearby

{% endif %} {% endif %} {% endblock %}

About {{ schema.plural_name }}...

{% endblock %}