[Bps-public-commit] RT-Extension-rt_cpan_org branch, rt4, updated. 85296908d025391bc423be10abb84ead6b7a9e02

Thomas Sibley trs at bestpractical.com
Wed Feb 27 23:34:08 EST 2013


The branch, rt4 has been updated
       via  85296908d025391bc423be10abb84ead6b7a9e02 (commit)
      from  d38d9517c9d74f6dc81b9f632b190cde197eed59 (commit)

Summary of changes:
 html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged | 14 +++++++++++++-
 html/NoAuth/RT/CPAN/About.html                      |  6 +++++-
 html/NoAuth/RT/CPAN/Usage.html                      |  6 +++++-
 3 files changed, 23 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 85296908d025391bc423be10abb84ead6b7a9e02
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Feb 27 20:33:29 2013 -0800

    Improve the "About rt.cpan.org" menu
    
    Logged in users don't lose the main menu when reading about the service
    now.

diff --git a/html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged b/html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged
index 71ad891..8c767bb 100644
--- a/html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged
+++ b/html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged
@@ -1,4 +1,6 @@
 <%init>
+use utf8;
+
 if (my $actions = PageMenu->child("actions")) {
     $actions->delete("comment");
 }
@@ -6,9 +8,19 @@ if (my $actions = PageMenu->child("actions")) {
 Menu->child("search")->title(loc("Search Tickets"));
 Menu->delete("tools");
 
-Menu->child(
+my $about = Menu->child(
     "about",
     title   => loc("About rt.cpan.org"),
     path    => "/NoAuth/RT/CPAN/About.html",
 );
+$about->child(
+    "usage",
+    title   => loc("How do I…?"),
+    path    => "/NoAuth/RT/CPAN/Usage.html",
+);
+$about->child(
+    "about",
+    title   => loc("About"),
+    path    => "/NoAuth/RT/CPAN/About.html",
+);
 </%init>
diff --git a/html/NoAuth/RT/CPAN/About.html b/html/NoAuth/RT/CPAN/About.html
index 4340379..bdc7b63 100644
--- a/html/NoAuth/RT/CPAN/About.html
+++ b/html/NoAuth/RT/CPAN/About.html
@@ -1,6 +1,10 @@
 <& /Elements/Header, Title => loc('About rt.cpan.org'), RichText => 0 &>
-
+% if ($session{CurrentUser} and $session{CurrentUser}->id) {
+<& /Elements/Tabs &>
+% } else {
 <div id="body">
+% }
+
   <div id="rtcpan-about">
  
     <h2 style="margin-top: 0">What is this all about?</h2>
diff --git a/html/NoAuth/RT/CPAN/Usage.html b/html/NoAuth/RT/CPAN/Usage.html
index 7e678b0..ab46743 100644
--- a/html/NoAuth/RT/CPAN/Usage.html
+++ b/html/NoAuth/RT/CPAN/Usage.html
@@ -1,4 +1,8 @@
 <& /Elements/Header, Title => loc('How to use rt.cpan.org'), RichText => 0 &>
-
+% if ($session{CurrentUser} and $session{CurrentUser}->id) {
+<& /Elements/Tabs &>
+% } else {
 <div id="body">
+% }
+
 <& /Elements/Instructions &>

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list