diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-05-14 12:50:36 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-05-14 12:50:36 +0200 |
commit | 9f5d3eb02c6af92d386bfbf36b8bc56bc1d3f7a9 (patch) | |
tree | 179f777dab16f5d007ff5bc799aa5822cb92d5ff /templates | |
parent | 0a2ed52efaf75405928644b04093f34dc5fff9d8 (diff) | |
download | klausuren-9f5d3eb02c6af92d386bfbf36b8bc56bc1d3f7a9.tar.gz klausuren-9f5d3eb02c6af92d386bfbf36b8bc56bc1d3f7a9.tar.bz2 klausuren-9f5d3eb02c6af92d386bfbf36b8bc56bc1d3f7a9.zip |
simple css customization
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.html | 55 |
1 files changed, 38 insertions, 17 deletions
diff --git a/templates/layout.html b/templates/layout.html index f97af39..61f56b7 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -20,28 +20,49 @@ </div> <div id="content"> - <ul class="flashes"> - {% with messages = get_flashed_messages() %} - {% for message in messages %} - <li>{{ message }}</li> - {% endfor %} - {% endwith %} - </ul> - - <div id="container"> - <h2>Upload</h2> - <form id="upload-form" method="POST" enctype="multipart/form-data" action="/"> - <input type="file" name="file" /> - <input type="text" name="tags" /> - <input type="submit" /> - </form> - - <ul id="filelist"><li>No runtime found.</li></ul> + + <div id="sub-header"> + {% with url = url_for('list') %} + <p id="all-files" > + {% if not request.base_url.endswith(url) %} + <a href="{{url_for('list')}}">view all files</a> + {% else %} + <a href="{{url_for('index')}}">view all tags</a> + {% endif %} + </p> + {% endwith %} + + <ul class="flashes"> + {% with messages = get_flashed_messages() %} + {% for message in messages %} + <li>{{ message }}</li> + {% endfor %} + {% endwith %} + </ul> + + <div id="container"> + <h2>Upload</h2> + <form id="upload-form" method="POST" enctype="multipart/form-data" action="/"> + <input type="file" name="file" /> + <input type="text" name="tags" /> + <input type="submit" /> + </form> + + <ul id="filelist"><li>No runtime found.</li></ul> + </div> </div> {% block body %}{% endblock %} </div> + + <footer> + <a href="https://github.com/libgit2/libgit2">libgit2</a> + | + <a href="https://spit.spline.de/home/cholin/fit">Fit</a> + | + <a href="https://github.com/libgit2/pygit2">pygit2</a> + </footer> </body> </html> |