Update the index template

This commit is contained in:
William MARTIN 2011-04-01 14:14:30 +02:00
parent d04ecd60c4
commit 587aa11cda
2 changed files with 38 additions and 3 deletions

View File

@ -9,9 +9,23 @@
{aurl 'url', 'IDF_Views_Admin::projectCreate'} {aurl 'url', 'IDF_Views_Admin::projectCreate'}
<p><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/add.png'}" alt="+" align="bottom" /></a> <a href="{$url}">{trans 'Create Project'}</a></p>{/if} <p><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/add.png'}" alt="+" align="bottom" /></a> <a href="{$url}">{trans 'Create Project'}</a></p>{/if}
{else} {else}
<ul>{foreach $projects as $p} {foreach $projects as $p}
<li>{if $p.private}<img style="vertical-align: text-bottom;" src="{media '/idf/img/lock.png'}" alt="{trans 'Private project'}" /> {/if}<a href="{url 'IDF_Views_Project::home', array($p.shortname)}">{$p}</a>{if $p.shortdesc}, {$p.shortdesc}{/if}</li> <div class="p-list-img">
{/foreach}</ul> <a href="{url 'IDF_Views_Project::home', array($p.shortname)}">
{if $p.logo != 0}
<img src="{$p.logo}" alt="{trans 'Project logo'}" />
{else}
<img src="{media '/idf/img/no_logo.png'}" alt="{trans 'Project logo'}" />
{/if}
</a>
{if $p.private}<div class="p-list-private"><a href="{url 'IDF_Views_Project::home', array($p.shortname)}"><img style="float:right" src="{media '/idf/img/lock.png'}" alt="{trans 'Private project'}" /></a></div>{/if}
</div>
<div class="p-list-prj">
<p><a href="{url 'IDF_Views_Project::home', array($p.shortname)}"><strong>{$p}</strong></a>{if $p.private} - {trans 'Private project'}</p>{/if}</p>
{if $p.shortdesc}<p>{$p.shortdesc}</p>{/if}
</div>
<div style="clear: both"></div>
{/foreach}
{/if} {/if}
{/block} {/block}
{block context} {block context}

View File

@ -1043,3 +1043,24 @@ span.scm-action.property-changed {
#stats td { #stats td {
padding: .2em; 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;
}