diff static/tpl/nav.html @ 60:8250c977bc50

Moved static files to the root directory.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 05 Feb 2013 14:49:34 -0800
parents wikked/static/tpl/nav.html@30ae685b86df
children 130eccd396d8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/static/tpl/nav.html	Tue Feb 05 14:49:34 2013 -0800
@@ -0,0 +1,17 @@
+<nav class="row">
+    <div class="span12">
+        {{#ifneq action to='read'}}<a href="{{url_read}}">Read</a>{{/ifneq}}
+        {{#ifneq action to='edit'}}<a href="{{url_edit}}">Edit</a>{{/ifneq}}
+        {{#ifneq action to='history'}}<a href="{{url_hist}}">History</a>{{/ifneq}}
+        <form id="search" class="search">
+            <input type="text" name="q" class="input-medium search-query" placeholder="Search...">
+            <button type="submit" class="btn">Search</button>
+        </form>
+        {{#if username}}
+        <a href="{{url_profile}}">{{username}}</a>
+        <a href="{{url_logout}}">Logout</a>
+        {{else}}
+        <a href="{{url_login}}">Login</a>
+        {{/if}}
+    </div>
+</nav>