From: Foxtons Web Design Date: Fri, 9 Apr 2010 16:56:42 +0000 (+0100) Subject: Remove the description if it is the default "Unnamed repo..." X-Git-Tag: 0.000006~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=commitdiff_plain;h=8d491fb3ae118b58530bd1cabccae886f9086947;hp=71eba67cc0f4d557d942d46911f503cca73bc77f Remove the description if it is the default "Unnamed repo..." --- diff --git a/root/fragment/collectionofrepositories.tt2 b/root/fragment/collectionofrepositories.tt2 index afcc4fd..2b153d3 100755 --- a/root/fragment/collectionofrepositories.tt2 +++ b/root/fragment/collectionofrepositories.tt2 @@ -4,7 +4,7 @@ [% loop.count %] [% p.name %] - [% abridged_description(p.description) %] +
[% abridged_description(p.description) IF p.description != "Unnamed repository; edit this file to name it for gitweb." %]
[% time_since(p.last_change) %] [% p.owner %] diff --git a/root/static/css/core.css b/root/static/css/core.css index 37e4762..001b995 100755 --- a/root/static/css/core.css +++ b/root/static/css/core.css @@ -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; } diff --git a/root/wrapper.tt2 b/root/wrapper.tt2 index 27abff8..f252e13 100755 --- a/root/wrapper.tt2 +++ b/root/wrapper.tt2 @@ -147,7 +147,7 @@