[Bps-public-commit] RT-Authen-PAUSE branch, rt4, updated. 0.11-6-ge2f6a23

Thomas Sibley trs at bestpractical.com
Mon Mar 11 19:54:56 EDT 2013


The branch, rt4 has been updated
       via  e2f6a23d64d795f3f477e3366f2e07e772bb0773 (commit)
      from  4892f91dbfbfe0b04a9d9a056f31101852a71baf (commit)

Summary of changes:
 html/Callbacks/PAUSE/Elements/Login/Default        |  2 +-
 .../Login => m/_elements/login}/BeforeForm         |  3 ++
 patches/4.0.10-mobile-login-callbacks.patch        | 51 ++++++++++++++++++++++
 3 files changed, 55 insertions(+), 1 deletion(-)
 copy html/Callbacks/PAUSE/{Elements/Login => m/_elements/login}/BeforeForm (63%)
 create mode 100644 patches/4.0.10-mobile-login-callbacks.patch

- Log -----------------------------------------------------------------
commit e2f6a23d64d795f3f477e3366f2e07e772bb0773
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Mar 11 16:54:22 2013 -0700

    Note that the mobile UI will only work for PAUSE authors
    
    Relies on 4.0.10-mobile-login-callbacks.patch which is from an RT
    branch.

diff --git a/html/Callbacks/PAUSE/Elements/Login/Default b/html/Callbacks/PAUSE/Elements/Login/Default
index 353ade4..40d5c1e 100644
--- a/html/Callbacks/PAUSE/Elements/Login/Default
+++ b/html/Callbacks/PAUSE/Elements/Login/Default
@@ -1 +1 @@
-<h3><&|/l&>For Guests</&></h3>
+<h3 id="for-guests"><&|/l&>For Guests</&></h3>
diff --git a/html/Callbacks/PAUSE/m/_elements/login/BeforeForm b/html/Callbacks/PAUSE/m/_elements/login/BeforeForm
new file mode 100644
index 0000000..d61c84f
--- /dev/null
+++ b/html/Callbacks/PAUSE/m/_elements/login/BeforeForm
@@ -0,0 +1,17 @@
+<div id="for-authors">
+<h3><% loc('For CPAN authors') %></h3>
+<p>
+<% loc('You can use the form below to log in with your PAUSE userid and password.') %>
+</p>
+<p>
+<&|/l_unsafe, '<a href="'. RT->Config->Get("WebPath") .'/?NotMobile=1#for-guests">', '</a>' &>If you are not a PAUSE author, you must use the [_1]full-site[_2].  The mobile version of RT is only available to PAUSE authors at this time.</&>
+</p>
+</div>
+<script type="text/javascript">
+jQuery(function() {
+    var authors = document.getElementById("for-authors");
+    var login = document.getElementById("login");
+    authors.parentNode.removeChild(authors);
+    login.insertBefore(authors, login.firstChild);
+});
+</script>
diff --git a/patches/4.0.10-mobile-login-callbacks.patch b/patches/4.0.10-mobile-login-callbacks.patch
new file mode 100644
index 0000000..58d3512
--- /dev/null
+++ b/patches/4.0.10-mobile-login-callbacks.patch
@@ -0,0 +1,51 @@
+From 04387ee2c6b2232df41d8ea0986e26edee74fa0c Mon Sep 17 00:00:00 2001
+From: Thomas Sibley <trs at bestpractical.com>
+Date: Mon, 11 Mar 2013 16:35:43 -0700
+Subject: [PATCH] Add callbacks for the mobile login form equivalent to the
+ non-mobile form
+
+---
+ share/html/m/_elements/login | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/share/html/m/_elements/login b/share/html/m/_elements/login
+index 5fbdb9a..f6213d0 100644
+--- a/share/html/m/_elements/login
++++ b/share/html/m/_elements/login
+@@ -45,6 +45,7 @@
+ %# those contributions and any derivatives thereof.
+ %#
+ %# END BPS TAGGED BLOCK }}}
++% $m->callback( %ARGS, CallbackName => 'Header' );
+ <&| /m/_elements/wrapper, show_home_button => 0 &>
+ <style>
+ <& /m/_elements/raw_style &>
+@@ -58,6 +59,8 @@
+     actions     => $actions,
+ &>
+ 
++% $m->callback( %ARGS, CallbackName => 'BeforeForm' );
++
+ <div id="login-box">
+ <&| /Widgets/TitleBox, title => loc('Login'), hideable => 0 &>
+ 
+@@ -87,10 +90,16 @@ if (window.location.hash) {
+     }
+ }
+ </script>
++
++% $m->callback( %ARGS );
++
+ </form>
+ % }
+ </&>
+ </div><!-- #login-box -->
++
++% $m->callback( %ARGS, CallbackName => 'AfterForm' );
++
+ </div><!-- #login-body -->
+ <& /m/_elements/full_site_link &>
+ </&>
+-- 
+1.7.11.3
+

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



More information about the Bps-public-commit mailing list