Permalink
Browse files

Keep verify page format from changing other pages

  • Loading branch information...
1 parent f3d555e commit 67098e65b01298d93963b8fce4d0036c6493b717 @austein austein committed with Mar 26, 2007
Showing with 21 additions and 1 deletion.
  1. +9 −1 lib/AuthMitEdu/View.pm
  2. +10 −0 share/web/static/css/app-base.css
  3. +2 −0 share/web/static/css/keybindings.css
View
@@ -36,7 +36,13 @@ template 'index.html' => page {
hyperlink(url => 'http://doxory.com',
label => 'Doxory');
outs(") Enter ");
- tt{"http://auth.mit.edu/your_username_here"};
+
+ my $u = Jifty->web->current_user->username;
+ if ($u) {
+ tt{"http://auth.mit.edu/$u"};
+ } else {
+ tt{"http://auth.mit.edu/your_username_here"};
+ }
outs(q{ into the OpenID login box. If your browser has MIT
certificates installed, you should be prompted if you want to
@@ -68,6 +74,7 @@ template setup => page {
my $root = get 'trust_root';
my $identity = get 'identity';
my $action = Jifty->web->new_action(class => 'SetupAuth');
+ div {{id is "verify_page"}
p {
outs("Would you like to allow");
div {{id is "trust_root"}
@@ -96,6 +103,7 @@ template setup => page {
render_param($action => 'remember');
}
+ }
};
template '/error/no_cert' => page {
@@ -1,7 +1,17 @@
body {
background: white repeat-y center;
+ #text-align: center;
+ #width: 400px;
+}
+
+#salutation {
+ width: 400px;
text-align: center;
+}
+
+#verify_page {
width: 400px;
+ text-align: center;
}
#trust_root {
@@ -1,6 +1,8 @@
div#keybindings {
color: #666666;
margin-top: 0.5em;
+ text-align: center;
+ width: 400px;
}

0 comments on commit 67098e6

Please sign in to comment.