[interchange-cvs] interchange - racke modified dist/lib/UI/pages/admin/content_templates.html

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Jan 28 12:54:17 EST 2004


User:      racke
Date:      2004-01-28 17:54:17 GMT
Modified:  dist/lib/UI/pages/admin content_templates.html
Log:
display an error message if for whatever reason the regions directory is
empty, close </b> on error message, l'ize error label

Revision  Changes    Path
2.3       +6 -2      interchange/dist/lib/UI/pages/admin/content_templates.html


rev 2.3, prev_rev 2.2
Index: content_templates.html
===================================================================
RCS file: /anon_cvs/repository/interchange/dist/lib/UI/pages/admin/content_templates.html,v
retrieving revision 2.2
retrieving revision 2.3
diff -u -r2.2 -r2.3
--- content_templates.html	31 Oct 2003 16:49:57 -0000	2.2
+++ content_templates.html	28 Jan 2004 17:54:17 -0000	2.3
@@ -19,6 +19,10 @@
 [/if]
 
 [calc]
+	unless (keys %{$Config->{DirConfig}->{Variable}}) {
+		$Tag->error({name => 'Content Editor',
+					 set => '[L]No region variables found, template edit will fail.[/L]'});
+	}
 	$cwd = $Session->{ui_cwd};
 	sub tmp_display_in_progress {
 		my ($type) = shift;
@@ -57,10 +61,10 @@
 [warnings auto=1]
 
 [if type=explicit compare="[error all=1 show_var=1 keep=1]"]
-<B>There were errors:<br>
+<B>[L]There were errors:[/L]<br>
 <blockquote class=cerror>
 	[error all=1 keep=1 show_error=1 show_label=1 joiner="<br>"]
-</blockquote>
+</blockquote></B>
 [/if]
 
 <div class=titlebox>[L]Edit templates[/L]</div>








More information about the interchange-cvs mailing list