[Jifty-commit] r6999 - wifty/trunk/lib/Wifty
Jifty commits
jifty-commit at lists.jifty.org
Tue May 12 02:38:14 EDT 2009
Author: ruz
Date: Tue May 12 02:38:13 2009
New Revision: 6999
Modified:
wifty/trunk/lib/Wifty/View.pm
Log:
* move page_not_found error into /error/... space
Modified: wifty/trunk/lib/Wifty/View.pm
==============================================================================
--- wifty/trunk/lib/Wifty/View.pm (original)
+++ wifty/trunk/lib/Wifty/View.pm Tue May 12 02:38:13 2009
@@ -90,19 +90,6 @@
};
};
-template no_such_page => page {
- my ($page) = get(qw(page));
-
- page_title is _("No '%1' page", $page);
-
- p {
- q{Unfortunately, you've tried to reach a page that doesn't exist }
- . q{yet, and you don't have permissions to create pages. If you }
- . tangent( url => '/login', label => 'login' )
- . q{, you'll be able to create new pages of your own.}
- }
-};
-
template history => page {
my ( $page, $revisions ) = get(qw(page revisions));
$revisions->do_search; # avoid count+fetch
@@ -353,5 +340,26 @@
hr {}
};
+template 'error/create/require_auth' => page {
+ my ($page) = get(qw(page));
+
+ page_title is _("No '%1' page", $page);
+
+ p {
+ q{Unfortunately, you've tried to reach a page that doesn't exist }
+ . q{yet, and you don't have permissions to create pages. If you }
+ . tangent( url => '/login', label => 'login' )
+ . q{, you'll be able to create new pages of your own.}
+ }
+};
+
+template 'error/black_ip' => page {
+ page_title is _("You're blacklisted");
+
+ p {
+ q{Unfortunately, your IP address has been blocked.}
+ .q{ You can not change any content on this wiki.}
+ }
+};
1;
More information about the Jifty-commit
mailing list