[Rt-commit] r3382 - in rt/branches/3.5-TESTING: . html/Elements
trs at bestpractical.com
trs at bestpractical.com
Mon Jul 4 16:33:24 EDT 2005
Author: trs
Date: Mon Jul 4 16:33:23 2005
New Revision: 3382
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/html/Elements/PageLayout
Log:
r4796 at wintermute: tom | 2005-07-04 16:31:28 -0400
Fixed conditional display of actions-menu
Modified: rt/branches/3.5-TESTING/html/Elements/PageLayout
==============================================================================
--- rt/branches/3.5-TESTING/html/Elements/PageLayout (original)
+++ rt/branches/3.5-TESTING/html/Elements/PageLayout Mon Jul 4 16:33:23 2005
@@ -72,7 +72,7 @@
% my $count = 0;
% my $class = { };
%
- <ul id="page-menu"<% ($actions || $subactions) && q[ class="actions-present"] | n %>>
+ <ul id="page-menu"<% (($actions && %$actions) || ($subactions && %$subactions)) && q[ class="actions-present"] | n %>>
<div><div><div>
% if ($page_tabs) {
% foreach my $tab (sort keys %{$page_tabs}) {
@@ -115,7 +115,7 @@
</div></div></div>
</ul>
-% if ($actions or $subactions) {
+% if (($actions && %$actions) || ($subactions && %$subactions)) {
<ul id="actions-menu">
<div><div><div>
% $sep = 0;
@@ -125,7 +125,7 @@
%
% for my $type ($actions, $subactions) {
%
-% if ($type) {
+% if ($type && %$type) {
% foreach my $action (sort keys %{$type}) {
% $count++;
%
More information about the Rt-commit
mailing list