* Put the release sets in the navbar.

This commit is contained in:
Eelco Dolstra 2008-11-29 13:40:15 +00:00
parent 0d84d6c166
commit 5105d15636
4 changed files with 48 additions and 1 deletions

View file

@ -102,6 +102,20 @@
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'jobstatus') title = "Job status" %] [% INCLUDE makeLink uri = c.uri_for('/project' project.name 'jobstatus') title = "Job status" %]
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'all') title = "All builds" %] [% INCLUDE makeLink uri = c.uri_for('/project' project.name 'all') title = "All builds" %]
[% INCLUDE makeLink uri = c.uri_for('/releasesets' project.name) title = "Releases" %] [% INCLUDE makeLink uri = c.uri_for('/releasesets' project.name) title = "Releases" %]
[% IF project.releasesets.size > 0 %]
<ul class="subsubsubmenu">
[% FOREACH releaseset IN project.releasesets %]
[% myUri = c.uri_for('/releases' project.name releaseset.name) %]
<li [% IF curUri == myUri %]class="active"[% END %]>
<div class="title"><a href="[% myUri %]">
[% HTML.escape(releaseset.description ? releaseset.description : releaseset.name) %]
</a></div>
</li>
[% END %]
</ul>
[% END %]
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'edit') title = "Edit" %] [% INCLUDE makeLink uri = c.uri_for('/project' project.name 'edit') title = "Edit" %]
</ul> </ul>
[% END %] [% END %]

View file

@ -4,6 +4,8 @@
<h1>Release Set <tt>[% releaseSet.project.name %]:[% releaseSet.name %]</tt></h1> <h1>Release Set <tt>[% releaseSet.project.name %]:[% releaseSet.name %]</tt></h1>
<p>[<a href="[% c.uri_for('/releases' curProject.name releaseSet.name "edit") %]">Edit</a>]</p>
<table class="tablesorter"> <table class="tablesorter">
<thead> <thead>
<tr> <tr>

View file

@ -11,7 +11,7 @@
[% FOREACH releaseSet IN releaseSets %] [% FOREACH releaseSet IN releaseSets %]
<li> <li>
<a href="[% c.uri_for('/releases' curProject.name releaseSet.name) %]"><tt>[% releaseSet.name %]</tt></a> <a href="[% c.uri_for('/releases' curProject.name releaseSet.name) %]"><tt>[% releaseSet.name %]</tt></a>
(<a href="[% c.uri_for('/releases' curProject.name releaseSet.name "edit") %]">edit</a>) [<a href="[% c.uri_for('/releases' curProject.name releaseSet.name "edit") %]">Edit</a>]
</li> </li>
[% END %] [% END %]
</ul> </ul>

View file

@ -377,6 +377,37 @@ h1 {
color: #606060; color: #606060;
} }
#leftnavbar ul.subsubsubmenu {
padding-left: 0;
}
#leftnavbar ul.subsubsubmenu > li {
font-size: 80%;
list-style: none;
margin: 0 0 0 0;
padding: 0 0 0 0;
border-width: 0px;
border-top-width: 1px;
border-style: solid;
border-color: #c0c0c0;
}
#leftnavbar ul.subsubsubmenu > li > div.title {
padding-left: 5.3em;
padding-top: 0.5em;
padding-bottom: 0.5em;
background-image: url(/static/images/arrow-right.gif);
background-repeat: no-repeat;
background-position: 4.3em center;
}
#leftnavbar ul.subsubsubmenu > li.active > div.title {
background-image: url(/static/images/arrow-right-active.gif);
background-color: #eef2ff;
font-weight: bold;
color: #606060;
}
#footer { #footer {
font-size: 80%; font-size: 80%;
} }