think that should be it, fix bar when there's no primary $page_tabs
authorivan <ivan>
Mon, 13 Jul 2009 03:24:44 +0000 (03:24 +0000)
committerivan <ivan>
Mon, 13 Jul 2009 03:24:44 +0000 (03:24 +0000)
rt/html/Elements/PageLayout

index 35e080c..3210b4e 100644 (file)
@@ -148,12 +148,12 @@ a:visited:hover.fsdarkbutton {
 
    <TABLE BGCOLOR="#000000" BORDER=0 CELLSPACING=0 CELLPADDING=0>
      <TR>
-       <TD><IMG SRC="<%$fsurl%>images/gray-black-side.png" WIDTH=13 HEIGHT=25></TD>
-       <TD>
 
 %#  <ul id="page-menu"<% (($actions && %$actions) || ($subactions && %$subactions)) && q[ class="actions-present"] | n %>>
 
 % if ($page_tabs) {
+    <TD><IMG SRC="<%$fsurl%>images/gray-black-side.png" WIDTH=13 HEIGHT=25></TD>
+      <TD>
 %     foreach my $tab (sort keys %{$page_tabs}) {
 %         next if $tab =~ /^(?:current_toptab|this)$/;
 %         $count++;
@@ -188,14 +188,16 @@ a:visited:hover.fsdarkbutton {
     <a href="<%$RT::WebPath%>/<%$page_tabs->{$tab}->{'path'}%>"<%$class->{a}|n%><% $class->{a} =~ 'selected' ? ' name="focus"' : ''|n %>><% $page_tabs->{$tab}->{'title'} %></a>
 
 %     }
-% } else {
-&nbsp;
+      </TD>
+%# } else {
+%#&nbsp;
 % }
 
 % if (($actions && %$actions) || ($subactions && %$subactions)) {
-  </TD>
-  <TD><IMG SRC="<%$fsurl%>images/black-gray-side.png" WIDTH=13 HEIGHT=25></TD>
+  <TD><IMG SRC="<%$fsurl%>images/<% $page_tabs ? 'black-gray' : 'gray-black' %>-side.png" WIDTH=13 HEIGHT=25></TD>
+% if ( $page_tabs ) {
   <TD BGCOLOR="#333333">&nbsp;&nbsp;</TD>
+% }
   <TD BGCOLOR="#333333">
 % $sep       = 0;
 % $postsep   = 0;
@@ -238,8 +240,10 @@ a:visited:hover.fsdarkbutton {
 % }
 % }
 
+  </TD>
+
 % }
-    </TD>
+
     <TD><IMG SRC="<%$fsurl%>images/black-gray-side.png" WIDTH=13 HEIGHT=25></TD>
   </TR>
 </TABLE>