[opw-web] Rename rank_projects to manage_projects



commit ffba99bccf946bd282c57f4b179a4d8e2dddab39
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Mar 10 12:19:38 2014 -0400

    Rename rank_projects to manage_projects
    
    Use a more general name. Refer to it in link/header as "View applications", which
    is right for OPW.

 classes/class_module.php                           |    2 +-
 lang/en-gb.php                                     |    6 +++---
 ...d_rank_projects.php => mod_manage_projects.php} |    6 +++---
 skins/easterngreen/html/tpl_header.html            |    4 ++--
 ...rank_projects.html => tpl_manage_projects.html} |    0
 ...cts_item.html => tpl_manage_projects_item.html} |    0
 6 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/classes/class_module.php b/classes/class_module.php
index a160cf0..5659def 100644
--- a/classes/class_module.php
+++ b/classes/class_module.php
@@ -22,7 +22,7 @@ class module
             array('name' => 'user_profile',      'access' => 'u'),
             array('name' => 'view_programs',     'access' => 'g'),
             array('name' => 'view_projects',     'access' => 'u'),
-            array('name' => 'rank_projects',     'access' => 'u'),
+            array('name' => 'manage_projects',   'access' => 'u'),
             array('name' => 'program_home',      'access' => 'g'),
             array('name' => 'approve_mentors',   'access' => 'a'),
             array('name' => 'view_participants', 'access' => 'a'),
diff --git a/lang/en-gb.php b/lang/en-gb.php
index b71fee0..04d8e5f 100644
--- a/lang/en-gb.php
+++ b/lang/en-gb.php
@@ -137,12 +137,12 @@ $lang_data = array(
     'mentor_dl_info'        => 'Selection decisions posted: [[dl_mentor]]',
     'to'                    => 'to',
 
-    /* Module: rank_projects */
-    'rank_projects'         => 'Rank applications',
+    /* Module: manage_projects */
+    'manage_projects'       => 'View applications',
     'go'                    => 'Go',
     'no_projects_for_organization' => 'No projects were found for this organization',
     'applicant'             => 'Applicant',
-    'rank'                  => 'Rank',
+    'manage'                => 'Rank',
     'status'                => 'Status',
     'opinion_n'             => 'No contribution',
     'opinion_c'             => 'Contribution, under review',
diff --git a/modules/mod_rank_projects.php b/modules/mod_manage_projects.php
similarity index 97%
rename from modules/mod_rank_projects.php
rename to modules/mod_manage_projects.php
index db10eda..85a0b3b 100644
--- a/modules/mod_rank_projects.php
+++ b/modules/mod_manage_projects.php
@@ -168,10 +168,10 @@ foreach ($list_data as &$row)
                                    "&amp;p={$row['id']}&amp;r={$return_url}",
     ));
 
-    $projects_list .= $skin->output('tpl_rank_projects_item');
+    $projects_list .= $skin->output('tpl_manage_projects_item');
 }
 
-$title = $lang->get('rank_projects');
+$title = $lang->get('manage_projects');
 
 // Assign final skin data
 $skin->assign(array(
@@ -186,6 +186,6 @@ $skin->assign(array(
 
 // Output the module
 $module_title = $title;
-$module_data = $skin->output('tpl_rank_projects');
+$module_data = $skin->output('tpl_manage_projects');
 
 ?>
diff --git a/skins/easterngreen/html/tpl_header.html b/skins/easterngreen/html/tpl_header.html
index 62d332a..34059b3 100644
--- a/skins/easterngreen/html/tpl_header.html
+++ b/skins/easterngreen/html/tpl_header.html
@@ -100,8 +100,8 @@ ocalization variable
                                 <li class="divider [[mentor_visibility]]"></li>
 
                                 <li class="[[mentor_visibility]]">
-                                    <a href="?q=rank_projects&amp;prg=[[program_id]]">
-                                        {{rank_projects}}
+                                    <a href="?q=manage_projects&amp;prg=[[program_id]]">
+                                        {{manage_projects}}
                                     </a>
                                 </li>
 
diff --git a/skins/easterngreen/html/tpl_rank_projects.html b/skins/easterngreen/html/tpl_manage_projects.html
similarity index 100%
rename from skins/easterngreen/html/tpl_rank_projects.html
rename to skins/easterngreen/html/tpl_manage_projects.html
diff --git a/skins/easterngreen/html/tpl_rank_projects_item.html 
b/skins/easterngreen/html/tpl_manage_projects_item.html
similarity index 100%
rename from skins/easterngreen/html/tpl_rank_projects_item.html
rename to skins/easterngreen/html/tpl_manage_projects_item.html


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