summaryrefslogtreecommitdiff
path: root/themes/default/views/login_page.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-16 04:33:45 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-16 04:33:45 +0000
commit736d74d05f70be5b72e44eafe2cc8efae52b0af7 (patch)
tree31cda57354967ecb717026f3f631daaa54801aec /themes/default/views/login_page.html.php
parentcbc7c870fa8b54c2c320fedaf02b5b6010c55277 (diff)
Clean up the login, maintenance login and required-top-level-login code.
We now have two clear and separate login approaches: login/ajax login/html Choose the one that's appropriate. Totally simplified the maintenance page to be separate from the theme and dead simple, and use login/html approach there. Totally simplified the top level login (login_page.html.php) to just be a login page, not the rest of the chrome on the page and use the login/ajax approach there. Don't use access::required in albums and then catch the exception, instead use access::can and check the return code. Improve the text for maintenance mode.
Diffstat (limited to 'themes/default/views/login_page.html.php')
-rw-r--r--themes/default/views/login_page.html.php24
1 files changed, 1 insertions, 23 deletions
diff --git a/themes/default/views/login_page.html.php b/themes/default/views/login_page.html.php
index ffe1762b..1bd76c18 100644
--- a/themes/default/views/login_page.html.php
+++ b/themes/default/views/login_page.html.php
@@ -26,7 +26,6 @@
<script src="<?= url::file("lib/gallery.dialog.js") ?>" type="text/javascript"></script>
<script src="<?= url::file("lib/superfish/js/superfish.js") ?>" type="text/javascript"></script>
<script src="<?= $theme->url("js/ui.init.js") ?>" type="text/javascript"></script>
- <?= $theme->head() ?>
<script>
$("#gLoginLink").ready(function() {
$("#gLoginLink").click();
@@ -35,27 +34,6 @@
</head>
<body>
- <?= $theme->page_top() ?>
- <div id="doc4" class="yui-t5 gView">
- <div id="hd">
- <div id="gHeader">
- <?= $theme->display("header.html") ?>
- </div>
- </div>
- <div id="bd">
- <div id="yui-main">
- <div class="yui-b">
- <div id="gContent" class="yui-g">&nbsp; </div>
- </div>
- </div>
- <div id="gSidebar" class="yui-b">&nbsp;</div>
- </div>
- <div id="ft">
- <div id="gFooter">
- <?= $theme->display("footer.html") ?>
- </div>
- </div>
- </div>
- <?= $theme->page_bottom() ?>
+ <a id="gLoginLink" href="<?= url::site("login/ajax") ?>">Log in</a>
</body>
</html>