[Jifty-commit] r6165 - wifty/trunk/lib/Wifty
Jifty commits
jifty-commit at lists.jifty.org
Fri Dec 19 19:33:49 EST 2008
Author: ruz
Date: Fri Dec 19 19:33:49 2008
New Revision: 6165
Modified:
wifty/trunk/lib/Wifty/View.pm
Log:
* return back description for users that can not edit pages
Modified: wifty/trunk/lib/Wifty/View.pm
==============================================================================
--- wifty/trunk/lib/Wifty/View.pm (original)
+++ wifty/trunk/lib/Wifty/View.pm Fri Dec 19 19:33:49 2008
@@ -31,8 +31,12 @@
form { div { attr { class is 'form_wrapper' };
div { attr { class is 'inline' };
- unless ( $can_edit ) {
- }
+ unless ( $can_edit ) { p {
+ outs(_("You don't have permission to edit this page."));
+ outs(' '. _("Perhaps logging in would help."));
+ outs(' '. _("In the mean time, though, you're welcome to view and copy the source of this page."). ' ');
+ tangent(url => '/login', label => _('Login'));
+ } }
form_next_page url => '/view/'.$page->name;
render_action $viewer, ['content'];
};
More information about the Jifty-commit
mailing list