[Rt-commit] r5288 - in rtfm/branches/2.1-TESTING: .

ruz at bestpractical.com ruz at bestpractical.com
Tue May 23 23:06:51 EDT 2006


Author: ruz
Date: Tue May 23 23:06:48 2006
New Revision: 5288

Modified:
   rtfm/branches/2.1-TESTING/   (props changed)
   rtfm/branches/2.1-TESTING/html/RTFM/Article/PreCreate.html

Log:
 r257 at cubic-pc:  cubic | 2006-05-24 04:30:32 +0400
 * tabs highlighting
 * when we have no classes or have no rights page witout
   any content is very confusing, add some description


Modified: rtfm/branches/2.1-TESTING/html/RTFM/Article/PreCreate.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Article/PreCreate.html	(original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Article/PreCreate.html	Tue May 23 23:06:48 2006
@@ -1,29 +1,35 @@
 %# BEGIN LICENSE BLOCK
-%# 
+%#
 %#  Copyright (c) 2002-2003 Jesse Vincent <jesse at bestpractical.com>
-%#  
+%#
 %#  This program is free software; you can redistribute it and/or modify
-%#  it under the terms of version 2 of the GNU General Public License 
+%#  it under the terms of version 2 of the GNU General Public License
 %#  as published by the Free Software Foundation.
-%# 
+%#
 %#  A copy of that license should have arrived with this
 %#  software, but in any event can be snarfed from www.gnu.org.
-%# 
+%#
 %#  This program is distributed in the hope that it will be useful,
 %#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 %#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 %#  GNU General Public License for more details.
-%# 
+%#
 %# END LICENSE BLOCK
 
-<& /RTFM/Article/Elements/Tabs, current_tab => "RTFM/Topics.html",
-Title => loc('Create an article in class...') &>
-<ul>                                                                            
-% my $Classes = RT::FM::ClassCollection->new($session{'CurrentUser'});          
+<& /RTFM/Article/Elements/Tabs,
+    current_tab => "RTFM/Article/PreCreate.html",
+    Title => loc('Create an article in class...'),
+&>
+<ul>
+% my $Classes = RT::FM::ClassCollection->new($session{'CurrentUser'});
 % $Classes->LimitToEnabled();
-% while (my $Class = $Classes->Next) {                                          
+% my $have_classes = 0;
+% while (my $Class = $Classes->Next) {
+% $have_classes++;
 % my $qs = $m->comp("/Elements/QueryString", %ARGS, Class=> $Class->Id);
-<li><a href="Edit.html?<% $qs|n %>"><&|/l, $Class->Name&>in class [_1]</&></a></li>
-% }                                                                             
-                                                                                
-</ul>                                                                           
+<li><a href="Edit.html?<% $qs|n %>"><&|/l, $Class->Name &>in class [_1]</&></a></li>
+% }
+</ul>
+% unless ( $have_classes ) {
+<span><&|/l&>No classes you have access to...</&></span>
+% }


More information about the Rt-commit mailing list