moin-2.0 / MoinMoin / templates / show.html

{% extends theme("layout.html") %}
{% import "utils.html" as utils %}

{% block head_links %}
    {{ super() }}
    <link rel="alternate" title="{{ item_name }} changes" href="{{ url_for('feed.atom', item_name=item_name) }}" type="application/atom+xml" />
    {# universal edit button support #}
    {%- if user.may.write(item_name) and 'frontend.modify_item' not in cfg.endpoints_excluded -%}
    <link rel="alternate" type="application/wiki" title="{{ _('Modify') }}" href="{{ url_for('frontend.modify_item', item_name=item_name) }}" />
    {%- endif %}
{% endblock %}

{% import "itemviews.html" as itemviews with context %}

{% block header_itemviews %}
    {{ itemviews }}
{% endblock %}

{% macro rev_navigation(view='frontend.show_item') %}
    <ul id="moin-rev-navigation">
        <li class="moin-rev-navigation-older">
        {% if rev.revid != 'current' -%}
            <a href="{{ url_for(view, rev=rev.revno-1, item_name=item_name) }}">&lt;-- {{ _('older') }}</a>
        {%- else -%}
            <span class="moin-disabled">{{ _('no older revision') }}</span>
        {%- endif %}
        </li>
        <li class="moin-rev-navigation-current">rev {{ rev.revid }}</li>
        <li class="moin-rev-navigation-newer">
            {% if rev.revno < last_rev_no -%}
                <a href="{{ url_for(view, rev=rev.revno+1, item_name=item_name) }}">{{ _('newer') }} --&gt;</a>
            {%- else -%}
                <span class="moin-disabled">{{ _('no newer revision') }}</span>
            {%- endif %}
        </li>
    </ul>
{% endmacro %}

{% block subitem_navigation %}
    {{ utils.render_subitem_navigation(item_name, False) }}
{% endblock %}

{% block content %}
    {% if show_navigation %}
        {% block rev_navigation %}
            {{ rev_navigation(view='frontend.show_item') }}
        {% endblock %}
    {% endif %}

    {% block headline %}
    {# <h1>{{ rev.item.name }} {% if show_revision %}(Revision {{ rev.revid }}){% endif %}</h1> #}
    {% endblock %}
    {% block content_data %}
    {% if data_rendered %}
    <div id="moin-content-data">
        {{ data_rendered }}
    </div>
    {% endif %}
    {% endblock %}
{% endblock %}

{% block footer_hr %}{% endblock %}

{% block footer_itemviews %}
    {{ itemviews }}
{% endblock %}

{% block footer_meta %}
    {% if rev %}
    <p id="moin-pageinfo" lang="{{ theme_supp.ui_lang }}" dir="{{ theme_supp.ui_dir }}">
        {% if cfg.show_interwiki %}{{ cfg.interwikiname }}:{% endif %}{{ item_name }} (rev {{rev.revid | shorten_id}}),
        {{ _("modified") }} {{ rev.meta['mtime']|datetimeformat }}
        {{ _("by") }} {{ utils.editor_info(rev.meta) }}{% if rev.tags %},
        {{ _("tagged") }}
        {% for tag in rev.tags -%}
        <a href="{{ url_for('frontend.tagged_items', tag=tag) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
        {%- endfor -%}
    {%- endif -%}.
    </p>
    {% endif %}
{% endblock %}

{% block options_for_javascript %}
{%- if item_name and user.edit_on_doubleclick and user.may.write(item_name) -%}
    <br id="moin-edit-on-doubleclick" />
{%- endif %}
{%- if user.show_comments -%}
    <br id="moin-show-comments" />
{%- endif %}
{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.