Changeset View
Changeset View
Standalone View
Standalone View
swh/web/ui/templates/search.html
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | <table class="table table-striped search-res"> | ||||
{% for res in search_res %} | {% for res in search_res %} | ||||
<tr> | <tr> | ||||
{% if res['filename'] is not none %} | {% if res['filename'] is not none %} | ||||
<td>{{ res['filename'] }}</td> | <td>{{ res['filename'] }}</td> | ||||
{% else %} | {% else %} | ||||
<td>From text input</td> | <td>From text input</td> | ||||
{% endif %} | {% endif %} | ||||
{% if res['found'] %} | {% if res['found'] %} | ||||
<td><a href="{{ url_for('browse_content') }}sha1:{{ res['sha1'] }}">{{ res['sha1'] }}</a></td> | <td><a href="{{ url_for('browse_content', q=res['sha1']) }}">{{ res['sha1'] }}</a></td> | ||||
<td><span class="glyphicon glyphicon-ok file-found"></span></td> | <td><span class="glyphicon glyphicon-ok file-found"></span></td> | ||||
{% else %} | {% else %} | ||||
<td>{{ res['sha1'] }}</td> | <td>{{ res['sha1'] }}</td> | ||||
<td><span class="glyphicon glyphicon-remove file-notfound"></span></td> | <td><span class="glyphicon glyphicon-remove file-notfound"></span></td> | ||||
{% endif %} | {% endif %} | ||||
</tr> | </tr> | ||||
{% endfor %} | {% endfor %} | ||||
</table> | </table> | ||||
{% endif %} | {% endif %} | ||||
{% if message is not none and message != '' %} | {% if message is not none and message != '' %} | ||||
<div class="span8">{{ message | safe }}</div> | <div class="span8">{{ message | safe }}</div> | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
{% endblock %} | {% endblock %} |