view src/ltpdarepo/templates/database.html @ 104:dcb2f0a97147

Split activity view into its own blueprint. Do not wire it up yet.
author Daniele Nicolodi <daniele@grinta.net>
date Tue, 23 Aug 2011 14:34:07 +0200
parents cd4a15072c97
children 57dbb265a02a
line wrap: on
line source

{% extends "layout.html" %}
{% block title %}{{ database.id }}{% endblock %}
{% block body %}
<h2>Database &#x00AB;{{ database.id }}&#x00BB;</h2>
<p class="discrete">{{ database.description }}</p>
<ul class="actions">
  <li><a href="{{ url_for('browse.browse', database=database.id) }}">Browse</a></li>
  {# <li><a href="{{ url_for('browse.activity', database=database.id) }}">Show activity</a></li> #}
  <li><a href="{{ url_for('browse.query', database=database.id) }}">Advanced search</a></li>
  <li><a href="{{ url_for('browse.timeseries', database=database.id) }}">Timeseries search</a></li>
</ul>
<h2>Quick search</h2>
<p class="discrete">Search objects by name:</p>
<form method="GET" action="{{ url_for('browse.search', database=database.id) }}" class="search">
  <input type="text" name="q" />
  <input type="submit" value="search" />
</form>
{% if queries %}
<h2>Named queries</h2>
<p class="discrete">Named queries that apply to this database:</p>
<ul>
  {% for query in queries %}
  <li><a href="{{ url_for('browse.namedquery', database=database.id, id=query.id) }}">{{ query.title }}</a></li>
  {% endfor %}
</ul>
{% endif %}
{% endblock %}