Mercurial > hg > bts-webui
view bts_webui/amancay/templates/base.html @ 144:c93c594f1f98 draft
toolbox: convert the toolbox into a template tag
This is a *huge* improvement to how the code is organized right now.
Specifically this gives us complete control over how stuff is loaded from the
sidebar and makes more evident which are the paths taken by the code to
actually do stuff. A concrete example is how loading of links happen.
amancay_interface.js has been disabled to implement/move its functionality to
other places.
author | diegoe-guest |
---|---|
date | Mon, 10 Aug 2009 23:42:03 +0000 |
parents | c7623fe03f65 |
children | ddeb2ac3d828 |
line wrap: on
line source
{% comment %} vim: set sw=4 ts=4 sts=4 noet: {% endcomment %} <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>amancay 0.2.0</title> <link rel="icon" type="image/png" href="/static/icon.png"/> <link rel="stylesheet" type="text/css" href="/static/amancay.css"/> <script type="text/javascript" src="/static/MochiKit/MochiKit.js"></script> {% block extrajs %} {% endblock %} <script type="text/javascript" language="javascript" charset="utf-8"> function dismiss_notification() { fade(document.getElementById('notification')); } function pop_notification() { appear(document.getElementById('notification')); } </script> </head> <body> <div id="header"> <h1 id="main_title"><a href="/"><img src="/static/spiral.png"/>Amancay!</a></h1> </div> <div class="colmask leftmenu"> <div class="colleft"> <div class="col1"> <!-- Column 1 start --> <div id="navbar"> {% block navbar %} <a href="/">Home</a> • {% if user.is_authenticated %} <a href="/accounts/settings">Settings</a> • <a href="/accounts/logout">Logout</a> • {% else %} <a href="/accounts/login">Login</a> • {% endif %} <a href="/accounts/settings">Help</a> • {% endblock %} <!-- <br/> --> <span style="font-size: smaller;"> <a href="/join">rel tasks</a> </span> </div> {% if info_to_user %} <div id="notification" class="info"><a href="javascript:dismiss_notification()">[x]</a> {{ info_to_user }}</div> {% endif %} {% block main_content %}{% endblock %} <div class="loading" id="loading"></div> <!-- Column 1 end --> </div> <div class="col2"> <!-- Column 2 start --> <h3 class="sidebar_title">Bugs</h3> • <a id="search_link" href="/search">Search</a><br/> • <a id="selected_bugs_link" href="/selected_bugs">Selected</a><br/> • <a id="tagged_bugs_link" href="/tagged_bugs">Tagged</a><br/> • <a id="submitted_bugs_link" href="/submitted_bugs">Latest Submitted</a><br/> • <a id="received_bugs_link" href="/received_bugs">Latest Received</a><br/> • <a id="package_bugs_link" href="/package_bugs">Selected Packages</a><br/> {% block sidebar %} {% endblock %} <div id="toolbox" class="toolbox"> {% block toolbox %} {% load toolbox %} {% toolbox_widget %} {% endblock %} </div> <!-- Column 2 end --> </div> </div> </div> <div id="footer"> <p>Copyright © 2009 - The Amancay authors.<br/> </div> </body> </html>