[opw-web] Carry program_id through admin links



commit cb6102f33c94677cd7b9064d0672df35a12af8d9
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Mar 10 16:07:03 2014 -0400

    Carry program_id through admin links
    
    Don't lose the admin's current program when they go to a admin link
    (like approve_mentors) - even if the admin page doesn't care about
    the program.`
    
    Future fixup: Make current program part of the session instead of
    polluting links with it.

 skins/easterngreen/html/tpl_header.html |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/skins/easterngreen/html/tpl_header.html b/skins/easterngreen/html/tpl_header.html
index 1443ffe..1ef213a 100644
--- a/skins/easterngreen/html/tpl_header.html
+++ b/skins/easterngreen/html/tpl_header.html
@@ -74,7 +74,7 @@ ocalization variable
 
                             <ul class="dropdown-menu">
                                 <li>
-                                    <a href="?q=prorgam_home&amp;prg=[[program_id]]">
+                                    <a href="?q=program_home&amp;prg=[[program_id]]">
                                         {{home}}
                                     </a>
                                 </li>
@@ -108,7 +108,7 @@ ocalization variable
                                 <li class="divider [[admin_visibility]]"></li>
 
                                 <li class="[[admin_visibility]]">
-                                    <a href="?q=manage_programs">
+                                    <a href="?q=manage_programs&amp;prg=[[program_id]]">
                                         {{manage_programs}}
                                     </a>
                                 </li>
@@ -119,25 +119,25 @@ ocalization variable
                                     </a>
                                 </li>
                                 <li class="[[admin_visibility]]">
-                                    <a href="?q=edit_templates">
+                                    <a href="?q=edit_templates&amp;prg=[[program_id]]">
                                         {{edit_templates}}
                                     </a>
                                 </li>
 
                                 <li class="[[admin_visibility]]">
-                                    <a href="?q=notifications">
+                                    <a href="?q=notifications&amp;prg=[[program_id]]">
                                         {{notification_mails}}
                                     </a>
                                 </li>
 
                                 <li class="[[admin_visibility]]">
-                                    <a href="?q=approve_mentors">
+                                    <a href="?q=approve_mentors&amp;prg=[[program_id]]">
                                         {{approve_mentors}}
                                     </a>
                                 </li>
 
                                 <li class="[[admin_visibility]]">
-                                    <a href="?q=user_ban">
+                                    <a href="?q=user_ban&amp;prg=[[program_id]]">
                                         {{manage_bans}}
                                     </a>
                                 </li>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]