{# This file is part of GCIDE #} {# Copyright (C) 2012 Sergey Poznyakoff #} {# GCIDE is free software; you can redistribute it and/or modify #} {# it under the terms of the GNU General Public License as published by #} {# the Free Software Foundation; either version 3, or (at your option) #} {# any later version. #} {# GCIDE is distributed in the hope that it will be useful, #} {# but WITHOUT ANY WARRANTY; without even the implied warranty of #} {# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #} {# GNU General Public License for more details. #} {# You should have received a copy of the GNU General Public License #} {# along with GCIDE. If not, see . #} {% extends 'base.html' %} {% load dictlookup %} {% load macros %} {% load withsetting %} {% block warning %} {% withsetting DEBUG as debug %} {% if debug %}

Warning! This is a development version. It may be incomplete and contain dangling links


{% endif %} {% endwithsetting %} {% endblock %} {% block search %}
{% endblock %} {% macro matches title items %}

{{ title }}

{% endmacro %} {% block results %} {% if result.error %}
{{ result.msg }}
{% else %} {% if result.type == "define" %}
{% if result.definitions %} {% if mtc.matches %} last match results {% endif %}

{% if result.count == 1 %} Found one definition {% else %} Found {{ result.count }} definitions {% endif %}

    {% for df in result.definitions %}
  1.       {% if df.format_html %}
    {{ df.desc|safe }}
          {% else %}
    {{ df.desc|safe|linebreaksbr }}
          {% endif %}
        
  2. {% endfor %}
{% if mtc.matches %} {% usemacro matches "Last match results" mtc.matches.items %} {% endif %} {% else %} {% if result.matches %} {% usemacro matches "No exact match found. Perhaps you meant one of the following:" result.matches.items %} {% endif %}
{% endif %} {% else %} {% if result.type == "search" %} {% if mtc.matches %} {% usemacro matches "Matches" mtc.matches.items %} {% endif %} {% else %} {% if result.desc %} {% if result.type == "info" %}
       {{ result.desc }}
      
{% else %}
       {{ result.desc|linebreaksbr }}
      
{% endif %} {% else %}
{% if item %} {% include item %} {% else %} {% include "about.html" %} {% endif %}
{% endif %} {% endif %} {% endif %} {% endif %} {% endblock %} {% block license %}

This text is available under the {% if result %} GNU General Public License {% else %} Creative Commons Attribution-ShareAlike License {% endif %} .

{% endblock %}