1. Alex Willmer
  2. trac-ticketlinks

Commits

daniel  committed 1d0d8ed

Merged [657] to 0.7-stable.

  • Participants
  • Parent commits 18980ef
  • Branches 0.7-stable

Comments (0)

Files changed (2)

File htdocs/css/trac.css

View file
 .subheader-links li, .menulist li {
   display: inline;
   border-right: 1px solid #d7d7d7;
-  padding: 0 .75em;
+  padding: 0;
   white-space: nowrap;
 }
+.subheader-links > li { padding: 0 .75em; }
+.subheader-links li a, .menulist li a {
+ padding: 0 .5em;
+}
 .menulist li { float: left; }
 .subheader-links li.last,.menulist li.last { border-right: none; }
-.subheader-links  li ul, .menulist {
+.subheader-links > li > ul, .menulist {
   background: #f7f7f7;
   color: #ccc;
   border: 1px solid;
-  padding: 0 .5em;
+  padding: 0;
   display: inline;
   margin: 0;
 }
+.subheader-links > li > ul > li > a { padding: 0 1em; }
+.subheader-links > li > ul > li > a:hover { color: #fff; background: #bba; }
 .menulist {
   float: left;
   padding: 0;

File templates/report.cs

View file
   <?cs if report.edit_href || report.copy_href || report.delete_href ?>
   <li><b>This report:</b>
     <ul>
-      <?cs if report.edit_href?>
-       <li><a href="<?cs var:report.edit_href ?>">Edit</a></li>
-      <?cs /if ?>
-      <?cs if report.copy_href ?>
-       <li><a href="<?cs var:report.copy_href ?>">Copy</a></li>
-      <?cs /if ?>
-      <?cs if report.delete_href ?>
-       <li class="last"><a href="<?cs var:report.delete_href ?>">Delete</a></li>
-      <?cs /if ?>
-     </ul></li>
+      <?cs if report.edit_href
+        ?><li <?cs if !report.delete_href && !report.copy_href ?>class="last"<?cs /if
+          ?>><a href="<?cs var:report.edit_href ?>">Edit</a></li><?cs
+       /if ?><?cs
+       if report.copy_href ?><li <?cs if !report.delete_href ?>class="last"<?cs /if
+          ?>><a href="<?cs var:report.copy_href ?>">Copy</a></li><?cs /if ?><?cs
+      if report.delete_href ?><li class="last"><a href="<?cs var:report.delete_href ?>">Delete</a></li><?cs /if ?></ul></li>
   <?cs /if ?>
   <?cs if report.create_href ?>
    <li><a href="<?cs var:report.create_href ?>">New Report</a></li>