]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/base.mako
Removed 'Delete' links from lists of expenditures / transfers
[bluechips.git] / bluechips / templates / base.mako
index 49476f16bbb8d8cda609071b3a298b24874e91fb..888255cbb085affec730b973cd462278eb439625 100644 (file)
@@ -4,9 +4,18 @@
   <head>
     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     <title>${self.title()}</title>
-    ${h.stylesheet_link('/css/main.css')}
+    ${h.stylesheet_link('%s/css/main.css' % request.script_name)}
+    ${h.stylesheet_link('//ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/flick/jquery-ui.css')}
+    ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
+    ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js')}
+    ${h.javascript_link('%s/js/admin.js' % request.script_name)}
   </head>
   <body>
+    % if c.mobile_client:
+      <div id="mobile">
+        <a href="${h.url_for(request.url, use_non_mobile='no')}">Use mobile interface</a>
+      </div>
+    % endif
     <div id="nav" class="block">
       <table>
         <tr>
             </h1>
           </td>
           <td>
-            <a href="${h.url_for(controller='status', action='index', id=None)}">
-              <img src="/icons/dashboard.png" alt="">
+            <a href="${h.url_for(controller='status', action='index')}">
+              <img src="${request.script_name}/icons/status.png" alt="">
               <span>Dashboard</span>
             </a>
           </td>
           <td>
-            <a href="${h.url_for(controller='spend', action='index', id=None)}">
-              <img src="/icons/spend.png" alt="">
+            <a href="${h.url_for(controller='spend', action='index')}">
+              <img src="${request.script_name}/icons/spend.png" alt="">
               <span>Expense</span>
             </a>
           </td>
           <td>
-            <a href="${h.url_for(controller='transfer', action='index', id=None)}">
-              <img src="/icons/transfer.png" alt="">
+            <a href="${h.url_for(controller='transfer', action='index')}">
+              <img src="${request.script_name}/icons/transfer.png" alt="">
               <span>Transfer</span>
             </a>
           </td>
           <td>
-            <a href="${h.url_for(controller='history', action='index', id=None)}">
-              <img src="/icons/history.png" alt="">
+            <a href="${h.url_for(controller='history', action='index')}">
+              <img src="${request.script_name}/icons/history.png" alt="">
               <span>History</span>
             </a>
           </td>
+          <td>
+            <a href="${h.url_for(controller='user', action='index')}">
+              <img src="${request.script_name}/icons/user.png" alt="">
+              <span>User</span>
+            </a>
+          </td>
         </tr>
       </table>
     </div>
     % for message in h.flash.pop_messages():
-      <div class="flash">${message | n}</div>
+      <div class="flash">${str(message) | n}</div>
     % endfor
     <div id="content">
       ${next.body()}