{% extends "fomanticui/base.html" %} {% load render i18n comments activity_tags %} {% comment %} Basic object detail template. Context: - `object`: Model, The object which detail is being shown - `sub_header`: str, The contents of the subheader (if any) - `icon`: str, the icon class shown (top left). - `can_star`: bool, wether a start for follow/unfollow is displayed - `left_fields`: List[str], Fields shown, as a table, in the top left corner - `right_fields`: List[str], Fields shown as a table, in the top right corner Blocks: - sub_header: Contents of the sub_header (defaults to {{ sub_header }}) - topleft: Contains the top right details table - topleft_intable: inside the topleft table.tobdy - topleft_after_details: Just below the details table. - topright: Contains the top right details table - topright_after_details: Just below the details table. - history: bottom area where comments and activity stream show up - comments: comments area - activity_stream: activity stream {% endcomment %} {% block content %}

{{ object }} {% if sub_header %}
{% block sub_header %}{{ sub_header|default:"" }}{% endblock %} {% if can_star %} {% include "fomanticui/partials/actstream_star.html" with user=request.user target=object %} {% endif %}
{% endif %}

{% block topleft %} {% block topleft_intable %} {% endblock %} {% fields_as_table object left_fields%}
{# Right below the details table #} {% block topleft_after_details %} {% endblock %} {% endblock %}
{% block topright %} {% fields_as_table object right_fields%}
{# Right below the details table #} {% block topright_after_details %} {% endblock %} {% endblock %}
{% if actions_count >= 0 %}
{% for ba in actions %} {% if ba.icon %}{% endif %} {{ ba.verbose_name }} {% endfor %}
{% endif %}
{% block history %}
{% block comments %}
{% get_comment_count for object as comment_count %} {% render_comment_list for object %}
{% endblock %} {% block activity_stream %}

{% trans 'Activity' %}

{% activity_stream 'target' object %} {% for action in stream %} {% display_action action %} {% endfor %}
{% endblock %}
{% endblock %}
{% endblock %} {% block bodybottom %} {{ block.super }} {% endblock %}