[dev] Nag: Add navbar before task body

John Morrissey jwm at horde.net
Wed Jan 1 12:27:35 PST 2003


Some of my task info in Nag can get long; I found it useful to also have the
navbar displayed above the task body. The attached patch does that.

FWIW, templates/view/footer.inc is a new file; there was a trailing <br />
in navbar.inc that I figured should be kept at the bottom of the page.

john
-- 
John Morrissey          _o            /\         ----  __o
jwm at horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__
-------------- next part --------------
Index: view.php
===================================================================
RCS file: /repository/nag/view.php,v
retrieving revision 1.19
diff -u -u -r1.19 view.php
--- view.php	12 Dec 2002 20:01:31 -0000	1.19
+++ view.php	1 Jan 2003 17:21:51 -0000
@@ -55,10 +55,14 @@
     require NAG_TEMPLATES . '/view/no-task.inc';
 } else {
     require NAG_TEMPLATES . '/view/headers.inc';
+    if (!$print_view) {
+        require NAG_TEMPLATES . '/view/navbar.inc';
+    }
     require NAG_TEMPLATES . '/view/description.inc';
     if (!$print_view) {
         require NAG_TEMPLATES . '/view/navbar.inc';
     }
+    require NAG_TEMPLATES . '/view/footer.inc';
 }
 
 require NAG_TEMPLATES . '/common-footer.inc';
Index: templates/view/navbar.inc
===================================================================
RCS file: /repository/nag/templates/view/navbar.inc,v
retrieving revision 1.10
diff -u -u -r1.10 navbar.inc
--- templates/view/navbar.inc	12 Dec 2002 20:01:42 -0000	1.10
+++ templates/view/navbar.inc	1 Jan 2003 17:21:51 -0000
@@ -21,4 +21,3 @@
   </td>
 </tr>
 </table>
-<br />
--- templates/view/footer.inc	Wed Jan  1 12:22:18 2003
+++ templates/view/footer.inc	Wed Jan  1 12:20:25 2003
@@ -0,0 +1 @@
+<br />


More information about the dev mailing list