Remove the description if it is the default "Unnamed repo..."
Foxtons Web Design [Fri, 9 Apr 2010 16:56:42 +0000 (17:56 +0100)]
root/fragment/collectionofrepositories.tt2
root/static/css/core.css
root/wrapper.tt2

index afcc4fd..2b153d3 100755 (executable)
@@ -4,7 +4,7 @@
 <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">
index 37e4762..001b995 100755 (executable)
@@ -1,6 +1,6 @@
 #debug_holder{
        
-       adisplay:none;
+       display:none;
        
        clear:both;
        padding-top:30px;
@@ -350,6 +350,24 @@ table.listing{
        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;
 }
index 27abff8..f252e13 100755 (executable)
 <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>