/etc/dicoweb/templates/index.html is in dicoweb 2.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | {% extends 'base.html' %}
{% load i18n %}
{% load dictlookup %}
{% block search %}
<div id="searchform">
<form id="form" method="get" action="">
<table>
<tbody>
<tr>
<td align="right" class="label">{% trans "Search term:" %}</td>
<td>
<input type="text" id="q" name="q" size="35" value="{{ q|escape }}" />
<a href="./#" id="toggle_options">{% trans "more options" %}</a>
</td>
</tr>
</tbody>
<tbody id="options" class="hidden">
{% if selects.sv %}
<tr>
<td align="right">{% trans "DICT server:" %}</td>
<td>
<select name="server">
{{ selects.sv.html|safe }}
</select>
</td>
</tr>
{% endif %}
<tr>
<td align="right">{% trans "Database:" %}</td>
<td>
<select name="db" style="width:350px">
{{ selects.db.html|safe }}
</select>
</td>
</tr>
<tr>
<td align="right">{% trans "Match strategy:" %}</td>
<td>
<select name="strategy" style="width:350px">
{{ selects.st.html|safe }}
</select>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td id="action-pad"></td>
<td id="action" colspan="2">
<input type="submit" name="search" value="{% trans "Search" %}" />
<input type="submit" name="define" value="{% trans "Define (I'm feeling lucky)" %}" />
</td>
</tr>
</tbody>
</table>
</form>
</div>
{% endblock %}
{% block results %}
{% if result.error %}
<div class="derror">
{{ result.msg }}
</div>
{% else %}
{% if result.definitions %}
<div class="definition results">
{% if mtc.matches %}
<a href="#match-results" class="link-lmr">{% trans "last match results" %}</a>
{% endif %}
<h3>
{% blocktrans count result.count as rc %}Found one definition{% plural %}Found {{ rc }} definitions{% endblocktrans %}
</h3>
{% for df in result.definitions %}
<pre>
{% trans "From" %} <a href="?q={{ df.db|urlencode }}&db=dbinfo">{% firstof df.db_fullname df.db %}</a>:
<br /><br />
{% if df.format_html %}
{{ df.desc|safe }}
{% else %}
{{ df.desc|safe|linebreaksbr }}
{% endif %}
</pre>
{% endfor %}
</div>
{% else %}
{% if result.desc %}
<div class="results">
<pre>
{{ result.desc|linebreaksbr }}
</pre>
</div>
{% endif %}
{% endif %}
{% if mtc.matches %}
<div class="match results">
<h3><a name="match-results"></a>{% trans "Last match results" %}</h3>
<ul>
{% for mt in mtc.matches.items %}
<li>
<span class="dbname-short" title="{{ mtc.dbnames|dictlookup:mt.0 }}">{{ mt.0 }}</span>:
{% for term in mt.1 %}
<a href="?q={{ term|urlencode }}&db={{ mt.0|urlencode }}&define=1" title="{% blocktrans %}Define {{ term }}{% endblocktrans %}">{{ term }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endif %}
<script type="text/javascript">
var gettext_msg = {
'more options': '{% trans "more options" %}',
'less options': '{% trans "less options" %}'
};
</script>
{% endblock %}
|