aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/web/templates
diff options
context:
space:
mode:
authorIsrael Basurto <ibasurto@gmail.com>2012-03-24 13:22:11 +0100
committerW. Trevor King <wking@drexel.edu>2012-03-25 11:37:16 -0400
commit89b03d84bca6b65cf9afed3c5e2f614c23294a57 (patch)
tree015effb89eb52b80c500beec0f45f58d9881a4d6 /interfaces/web/templates
parent9425f381b58d878194e7d19629192ecb6bd948c8 (diff)
downloadbugseverywhere-89b03d84bca6b65cf9afed3c5e2f614c23294a57.tar.gz
Add tag filter on the web interface
Diffstat (limited to 'interfaces/web/templates')
-rw-r--r--interfaces/web/templates/base.html17
1 files changed, 16 insertions, 1 deletions
diff --git a/interfaces/web/templates/base.html b/interfaces/web/templates/base.html
index 9666d3e..9c7c7ed 100644
--- a/interfaces/web/templates/base.html
+++ b/interfaces/web/templates/base.html
@@ -32,6 +32,12 @@
e.preventDefault();
});
+ $('#filter-tag').click(function(e) {
+ $('#filter-pane').html($('#tags').html());
+ $('#filter-pane').fadeIn('fast');
+ e.preventDefault();
+ });
+
$('#create-bug').click(function(e) {
$('#create-bug').hide();
$('#create-form').fadeIn('fast');
@@ -56,6 +62,7 @@
<a href="/?status=closed">Closed</a>
<a href="" id="filter-assignee">Assigned to...</a>
<a href="" id="filter-target">Scheduled for...</a>
+ <a href="" id="filter-tag">Tags...</a>
</span>
<span id="create">
<a href="" id="create-bug">&#43; Create a new bug</a>
@@ -104,5 +111,13 @@
{% endfor %}
</ul>
</div>
- </body>
+ <div id="tags">
+ <ul class="filter-items">
+ <li><a href="/?tag=None">All</a></li>
+ {% for tag in tags %}
+ <li><a href="/?tag={{ tag }}">{{ tag }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ </body>
</html>