projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
starting to work...
[freeside.git]
/
rt
/
share
/
html
/
Widgets
/
TitleBox
diff --git
a/rt/share/html/Widgets/TitleBox
b/rt/share/html/Widgets/TitleBox
index
703e2a8
..
3c044b6
100644
(file)
--- a/
rt/share/html/Widgets/TitleBox
+++ b/
rt/share/html/Widgets/TitleBox
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
1
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-46,9
+46,13
@@
%#
%# END BPS TAGGED BLOCK }}}
<div class="<% $class %>">
%#
%# END BPS TAGGED BLOCK }}}
<div class="<% $class %>">
- <& TitleBoxStart, %ARGS &><% $
m->
content | n %><& TitleBoxEnd &>
+ <& TitleBoxStart, %ARGS &><% $content | n %><& TitleBoxEnd &>
</div>
<%ARGS>
$class => ''
</div>
<%ARGS>
$class => ''
+$hide_empty => 0
</%ARGS>
</%ARGS>
-
+<%INIT>
+my $content = $m->content;
+return if $hide_empty && $content =~ /^\s*$/s;
+</%INIT>