<commit_before>{% extends "base.html" %}

{% load i18n %}
{% load tags %}
{% load staticfiles %}

{% block title %}{{ block.super }} – {{ item }}{% endblock %}

{% block header %}
    <link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/agenda.css' %}" />
    <link rel="stylesheet" href="{% static 'styles/jquery-ui/jquery-ui.custom.min.css' %}" />
{% endblock %}

{% block javascript %}
    <script type="text/javascript" src="{% static 'javascript/jquery-ui.custom.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'javascript/agenda.js' %}"></script>
{% endblock %}

{% block content %}
<h1>
    {{ item }}
    <small class="pull-right">
    <a href="{% url 'item_overview' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
    {% if perms.projector.can_manage_projector %}
        <a href="{% url 'projector_activate_slide' item.sid  %}"
            class="activate_link btn btn-mini {% if item.active and not show_list %}btn-primary{% endif %}"
            rel="tooltip" data-original-title="{% trans 'Show item' %}">
            <i class="icon icon-facetime-video {% if item.active and not show_list %}icon-white{% endif %}"></i>
        </a>
    {% endif %}
    {% if perms.agenda.can_manage_agenda %}
    <div class="btn-group">
        <a data-toggle="dropdown" href="#" class="btn btn-mini dropdown-toggle">
            {% trans 'More actions' %}
            <span class="caret"></span>
        </a>
        <ul class="dropdown-menu pull-right">
            <li><a href="{% model_url item 'update' %}"><i class="icon-pencil"></i> {% trans 'Edit item' %}</a></li>
            <li><a href="{% model_url item 'delete' %}"><i class="icon-remove"></i> {% trans 'Delete item' %}</a></li>
        </ul>
    {% endif %}
    </div>
    </small>
</h1>
<p>
    {% if not item.related_sid %}
        {{ item.text|safe|linebreaks }}
    {% else %}
        <a href="{% model_url item.get_related_slide %}" class="btn btn-small">{% trans 'View' %} "{{ item.get_related_slide }}" ({% trans item.get_related_type %})</a>
    {% endif %}
</p>

{% if perms.agenda.can_manage_agenda %}
    {% if item.comment %}
        <h3>{% trans "Comment" %}</h3>
        <p>{{ item.comment|linebreaks }}</p>
    {% endif %}
{% endif %}

{# List of Speakers #}
<h3>{% trans "List of speakers" %} {% if item.speaker_list_closed %}<span class="label label-important">{% trans 'closed' %}</span>{% endif %}</h3>
<p>
{% if perms.agenda.can_manage_agenda %}
    {% if item.speaker_list_closed %}
        <a href="{% url 'agenda_speaker_reopen' item.pk %}" class="btn btn-mini btn-danger">{% trans 'Open list' %}</a>
    {% else %}
        <a href="{% url 'agenda_speaker_close' item.pk %}" class="btn btn-mini btn-danger">{% trans 'Close list' %}</a>
    {% endif %}
{% endif %}
{% if perms.projector.can_manage_projector %}
    <a href="{% url 'projector_activate_slide' item.sid 'show_list_of_speakers' %}"
        class="activate_link btn btn-mini {% if item.active and show_list %}btn-primary{% endif %}"<commit_msg>Fixed #652: Button for ageda item with related sid.<commit_after>{% extends "base.html" %}

{% load i18n %}
{% load tags %}
{% load staticfiles %}

{% block title %}{{ block.super }} – {{ item }}{% endblock %}

{% block header %}
    <link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/agenda.css' %}" />
    <link rel="stylesheet" href="{% static 'styles/jquery-ui/jquery-ui.custom.min.css' %}" />
{% endblock %}

{% block javascript %}
    <script type="text/javascript" src="{% static 'javascript/jquery-ui.custom.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'javascript/agenda.js' %}"></script>
{% endblock %}

{% block content %}
<h1>
    {{ item }}
    <small class="pull-right">
    <a href="{% url 'item_overview' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
    {% if perms.projector.can_manage_projector %}
        <a href="{% url 'projector_activate_slide' item.sid  %}"
            class="activate_link btn btn-mini {% if item.active and not show_list %}btn-primary{% endif %}"
            rel="tooltip" data-original-title="{% trans 'Show item' %}">
            <i class="icon icon-facetime-video {% if item.active and not show_list %}icon-white{% endif %}"></i>
        </a>
    {% endif %}
    {% if perms.agenda.can_manage_agenda %}
    <div class="btn-group">
        <a data-toggle="dropdown" href="#" class="btn btn-mini dropdown-toggle">
            {% trans 'More actions' %}
            <span class="caret"></span>
        </a>
        <ul class="dropdown-menu pull-right">
            <li><a href="{% model_url item 'update' %}"><i class="icon-pencil"></i> {% trans 'Edit item' %}</a></li>
            <li><a href="{% model_url item 'delete' %}"><i class="icon-remove"></i> {% trans 'Delete item' %}</a></li>
        </ul>
    {% endif %}
    </div>
    </small>
</h1>
<p>
    {% if not item.related_sid %}
        {{ item.text|safe|linebreaks }}
    {% else %}
        <a href="{% model_url item.get_related_slide %}" class="btn btn-small">{% trans item.get_related_type %} {{ item.get_related_slide }}</a>
    {% endif %}
</p>

{% if perms.agenda.can_manage_agenda %}
    {% if item.comment %}
        <h3>{% trans "Comment" %}</h3>
        <p>{{ item.comment|linebreaks }}</p>
    {% endif %}
{% endif %}

{# List of Speakers #}
<h3>{% trans "List of speakers" %} {% if item.speaker_list_closed %}<span class="label label-important">{% trans 'closed' %}</span>{% endif %}</h3>
<p>
{% if perms.agenda.can_manage_agenda %}
    {% if item.speaker_list_closed %}
        <a href="{% url 'agenda_speaker_reopen' item.pk %}" class="btn btn-mini btn-danger">{% trans 'Open list' %}</a>
    {% else %}
        <a href="{% url 'agenda_speaker_close' item.pk %}" class="btn btn-mini btn-danger">{% trans 'Close list' %}</a>
    {% endif %}
{% endif %}
{% if perms.projector.can_manage_projector %}
    <a href="{% url 'projector_activate_slide' item.sid 'show_list_of_speakers' %}"
        class="activate_link btn btn-mini {% if item.active and show_list %}btn-primary{% endif %}"
{'fraction_non_alphanumeric': 0.21094382386271654, 'fraction_numerical': 0.0030759268253197345, 'mean_word_length': 3.2548209366391183, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '243198', 'n_tokens_mistral': 2306, 'n_tokens_neox': 2053, 'n_words': 494}