aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/web/templates/base.html
diff options
context:
space:
mode:
authorChris Ball <cjb@t60>2010-06-20 19:25:59 -0400
committerChris Ball <cjb@t60>2010-06-20 19:25:59 -0400
commit3ded6cc157a4145370cef50e7d15b8a07441042e (patch)
tree04a1dc277c65cf1396487fe14eddd98a2b4e1047 /interfaces/web/templates/base.html
parent0df4bd7ae194bb07f36a2a69a0549037de01cb52 (diff)
parent2a8eb1f87a2c3f92d9113419ff125afb98b2e4ed (diff)
downloadbugseverywhere-3ded6cc157a4145370cef50e7d15b8a07441042e.tar.gz
Merge Steve Losh's cfbe tree, from:
http://bitbucket.org/sjl/cherryflavoredbugseverywhere/
Diffstat (limited to 'interfaces/web/templates/base.html')
-rw-r--r--interfaces/web/templates/base.html106
1 files changed, 106 insertions, 0 deletions
diff --git a/interfaces/web/templates/base.html b/interfaces/web/templates/base.html
new file mode 100644
index 0000000..8f22d73
--- /dev/null
+++ b/interfaces/web/templates/base.html
@@ -0,0 +1,106 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html>
+ <head>
+ <title>Cherry Flavored Bugs Everywhere!</title>
+
+ <link rel="stylesheet" type="text/css" media="screen"
+ href="/static/style/aal.css" />
+ <link rel="stylesheet" type="text/css" media="screen"
+ href="/static/style/cfbe.css" />
+
+ <script type="text/javascript"
+ src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
+ </script>
+
+ <script type="text/javascript"
+ src="/static/scripts/jquery.corners.min.js">
+ </script>
+
+ <script type="text/javascript">
+ $(function() {
+ $('#filter-assignee').click(function(e) {
+ $('#filter-pane').html($('#assignees').html());
+ $('#filter-pane').fadeIn('fast');
+ e.preventDefault();
+ });
+
+ $('#filter-target').click(function(e) {
+ $('#filter-pane').html($('#targets').html());
+ $('#filter-pane').fadeIn('fast');
+ e.preventDefault();
+ });
+
+ $('#create-bug').click(function(e) {
+ $('#create-bug').hide();
+ $('#create-form').fadeIn('fast');
+ e.preventDefault();
+ });
+
+ $('table tr:odd').addClass('stripe');
+ });
+ </script>
+
+ {% block script %}{% endblock %}
+ </head>
+
+ <body>
+ <div id="main-pane">
+ <div id="header" class="inside-main-pane">
+ <h1>{{ repository_name }}</h1>
+ </div>
+ <div id="navigation" class="inside-main-pane">
+ <span id="filters">
+ <a href="/">Open</a>
+ <a href="/?status=closed">Closed</a>
+ <a href="" id="filter-assignee">Assigned to...</a>
+ <a href="" id="filter-target">Scheduled for...</a>
+ </span>
+ <span id="create">
+ <a href="" id="create-bug">&#43; Create a new bug</a>
+ </span>
+ <span id="create-form">
+ <form action="/create" method="post">
+ <fieldset>
+ <input type="text"
+ id="create-summary" name="summary" />
+ <button id="create-button"
+ type="submit">Create</button>
+ </fieldset>
+ </form>
+ </span>
+ </div>
+ <div id="filter-pane" class="inside-main-pane"></div>
+ <div id="content-pane" class="inside-main-pane">
+ <h2>{% block page_title %}&nbsp;{% endblock %}</h2>
+ {% block content %}{% endblock %}
+ </div>
+ <div id="footer" class="inside-main-pane">
+ <p>
+ <a href="">Cherry Flavored Bugs Everywhere</a>
+ was created by <a href="http://stevelosh.com">Steve Losh</a> and a very nice <a href="http://fecklessmind.com/2009/01/20/aardvark-css-framework/">aardvark</a>
+ using <a href="http://cherrypy.org">CherryPy</a>,
+ <a href="http://jinja.pocoo.org/2/">Jinja2</a>,
+ and <a href="http://jquery.com">jQuery</a>.
+ </p>
+ </div>
+ </div>
+ <div id="assignees">
+ <ul class="filter-items">
+ <li><a href="/?assignee=None">Unassigned</a></li>
+ {% for assignee in assignees %}
+ <li><a href="/?assignee={{ assignee|e }}">{{ assignee|e }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div id="targets">
+ <ul class="filter-items">
+ <li><a href="/?target=None">Unscheduled</a></li>
+ {% for target in targets %}
+ <li><a href="/?target={{ target }}">{{ target }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ </body>
+</html>