<tr [% "class='invert'" IF loop.count % 2 %]>
<td>[% loop.count %]</td>
<td><a href="[% repos_link %]/shortlog"><strong>[% p.name %]</strong></a></td>
- <td><span title="[% p.description %]">[% abridged_description(p.description) %]</span></td>
+ <td class="description"><div title="[% p.description %]">[% abridged_description(p.description) IF p.description != "Unnamed repository; edit this file to name it for gitweb." %]</div></td>
<td class="time-since">[% time_since(p.last_change) %]</td>
<td>[% p.owner %]</td>
<td class="action-list">
#debug_holder{
- adisplay:none;
+ display:none;
clear:both;
padding-top:30px;
vertical-align:top;
padding:9px 5px 9px 10px;
}
+
+/*
+
+puts the repo description on one line which gets truncated if the repo name is too long
+BUT the final width needs to be set with javascript based on the parent element (td) width
+
+.description{
+ white-space:nowrap;
+ overflow:hidden;
+}
+.description div{
+ position:absolute;
+ white-space:nowrap;
+ overflow:hidden;
+ width:200px;
+}
+*/
+
.action-list{
width:120px;
}
<div id="footer_holder">
<div id="footer" class="sub_holder">
- <p>[% IF Repository; Repository.description | html; END; %]</p>
+ <p>[% IF Repository; Repository.description | html IF Repository.description != "Unnamed repository; edit this file to name it for gitweb." ; END; %]</p>
<a title="git homepage" href="http://git-scm.org"><img src="[% c.uri_for('/logo.png') %]" id="git_logo" alt="git" /></a>