Source

moin-2.0 / MoinMoin / templates / lookup.html

{% extends theme("layout.html") %}
{% import "utils.html" as utils %}
{% import "forms.html" as forms %}
{% block content %}
    {% if results is not defined %}
    <h1>{{ _("Lookup") }}</h1>
    {{ gen.form.open(lookup_form, id='moin-lookup-form', method='get', action=url_for('frontend.lookup')) }}
        {{ forms.render_errors(lookup_form) }}
        <dl>
            {% for e in [
                'name',
                'name_exact',
                'itemid',
                'revid',
                'userid',
                'language',
                'itemlinks',
                'itemtransclusions',
                'refs',
                'tags',
                'history',
                ] %}
                {{ forms.render(lookup_form[e]) }}
            {% endfor %}
        </dl>
        {{ forms.render_submit(lookup_form) }}
    {{ gen.form.close() }}
    {% else %}
    {% if not results %}
    <h1>{{ _("No results") }}</h1>
    {% else %}
    <h1>{{ _("More than one result") }}</h1>
    <div class="lookupresults">
        <table>
            {% for result in results %}
                {% if result['wikiname'] == cfg.interwikiname %}
                    <tr>
                        <td class="moin-wordbreak">{{ loop.index }}
                        <a href="{{ url_for_item(item_name=result.name, wiki_name='Self', rev=result.revid) }}"><b>{{ result.name }}</b></a>
                        </td>
                    </tr>
                {% else %}
                    <tr>
                        <td class="moin-wordbreak">{{ loop.index }}
                        <a class="moin-interwiki" href="{{ url_for_item(item_name=result.name, wiki_name=result.wikiname, rev=result.revid) }}"><b>{{ "%s:%s" % (result.wikiname, result.name) }}</b></a>
                        </td>
                    </tr>
                {% endif %}
            {% endfor %}
        </table>
    </div>
    {% endif %}
    {% 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.