From 587aa11cdaec23f2b225a126c8b0e67dd5d9a1bb Mon Sep 17 00:00:00 2001 From: William MARTIN Date: Fri, 1 Apr 2011 14:14:30 +0200 Subject: [PATCH] Update the index template --- src/IDF/templates/idf/index.html | 20 +++++++++++++++++--- www/media/idf/css/style.css | 21 +++++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/src/IDF/templates/idf/index.html b/src/IDF/templates/idf/index.html index b093e76..a2f5abd 100644 --- a/src/IDF/templates/idf/index.html +++ b/src/IDF/templates/idf/index.html @@ -9,9 +9,23 @@ {aurl 'url', 'IDF_Views_Admin::projectCreate'}

+ {trans 'Create Project'}

{/if} {else} - +{foreach $projects as $p} +
+ + {if $p.logo != 0} + {trans 'Project logo'} + {else} + {trans 'Project logo'} + {/if} + + {if $p.private}
{trans 'Private project'}
{/if} +
+
+

{$p}{if $p.private} - {trans 'Private project'}

{/if}

+ {if $p.shortdesc}

{$p.shortdesc}

{/if} +
+
+{/foreach} {/if} {/block} {block context} diff --git a/www/media/idf/css/style.css b/www/media/idf/css/style.css index c1e3356..3e92715 100644 --- a/www/media/idf/css/style.css +++ b/www/media/idf/css/style.css @@ -1043,3 +1043,24 @@ span.scm-action.property-changed { #stats td { padding: .2em; } + +/* + * Project list on index + */ +div.p-list-img { + float: left; +} + +div.p-list-prj { + float: left; + margin: 0 0 .5em 1em; +} + +div.p-list-prj p { + margin: 0px; +} + +.p-list-private { + bottom: 10px; + position: relative; +}