2008-11-18 09:15:02 +01:00
|
|
|
{extends "idf/base-simple.html"}
|
2011-02-23 14:29:01 +01:00
|
|
|
{block docclass}yui-t2{/block}
|
2008-12-01 00:36:27 +01:00
|
|
|
{block tabhome} class="active"{/block}
|
|
|
|
{block subtabs}<a href="{url 'IDF_Views::index'}" class="active">{trans 'Projects'}</a>{/block}
|
2008-07-25 10:26:05 +02:00
|
|
|
{block body}
|
|
|
|
{if $projects.count() == 0}
|
|
|
|
<p>{trans 'No projects managed with InDefero were found.'}</p>
|
2008-12-02 13:22:01 +01:00
|
|
|
{if $isAdmin}
|
|
|
|
{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}
|
2008-07-25 10:26:05 +02:00
|
|
|
{else}
|
2011-04-01 14:14:30 +02:00
|
|
|
{foreach $projects as $p}
|
2011-12-24 01:07:25 +01:00
|
|
|
<div class="p-list-prj">
|
|
|
|
<div class="logo">
|
2011-04-06 15:33:26 +02:00
|
|
|
<a href="{url 'IDF_Views_Project::home', array($p.shortname)}">
|
2011-12-24 01:07:25 +01:00
|
|
|
<img src="{url 'IDF_Views_Project::logo', array($p.shortname)}" alt="{trans 'Project logo'}" />
|
2011-04-06 15:33:26 +02:00
|
|
|
</a>
|
2011-12-24 01:07:25 +01:00
|
|
|
{if $p.private}
|
|
|
|
<div class="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}
|
|
|
|
{if $p.current_activity_value}
|
|
|
|
<div class="activity" title="{trans 'Project activity'}"><div class="bar" style="width: {$p.current_activity_value * 100}%"></div></div>
|
|
|
|
{/if}
|
2011-04-06 15:33:26 +02:00
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<a href="{url 'IDF_Views_Project::home', array($p.shortname)}"><strong>{$p}</strong></a>
|
2011-09-25 01:27:36 +02:00
|
|
|
{assign $url = $p.external_project_url}
|
|
|
|
{if $url != ''}
|
|
|
|
<a href="{$url}" target="_blank" class="external-link" title="{trans 'External link to project'}" /> </a>
|
|
|
|
{/if}
|
2011-12-24 01:07:25 +01:00
|
|
|
{if $p.private} - <span class="smaller">{trans 'Private project'}</span>{/if}
|
|
|
|
</p>
|
|
|
|
<p class="smaller">{$p.shortdesc}</p>
|
|
|
|
<p class="smaller">{trans 'Labels:'}
|
|
|
|
{assign $tags = $p.get_tags_list()}
|
|
|
|
{if count($tags) == 0}{trans 'n/a'}{else}
|
|
|
|
{foreach $p.get_tags_list() as $idx => $tag}
|
|
|
|
{if $idx != 0}, {/if}
|
|
|
|
<a class="label" href="{url 'IDF_Views::listProjects', array($tag->id)}">{$tag}</a>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
2011-04-06 15:33:26 +02:00
|
|
|
</p>
|
2011-04-01 14:14:30 +02:00
|
|
|
</div>
|
|
|
|
{/foreach}
|
2008-07-25 10:26:05 +02:00
|
|
|
{/if}
|
|
|
|
{/block}
|
|
|
|
{block context}
|
2011-02-23 14:29:01 +01:00
|
|
|
<div id="stats" class="issue-submit-info">
|
2011-03-09 13:54:16 +01:00
|
|
|
<h3 class="a-c">{trans 'Forge statistics'}</h3>
|
2011-02-23 14:29:01 +01:00
|
|
|
<table>
|
|
|
|
<tr><td class="right">{trans 'Projects:'}</td><td>{$stats.projects}</td></tr>
|
|
|
|
<tr><td class="right">{trans 'Members:'}</td><td>{$stats.members}</td></tr>
|
|
|
|
<tr><td class="right">{trans 'Issues:'}</td><td>{$stats.issues}</td></tr>
|
|
|
|
<tr><td class="right">{trans 'Commits:'}</td><td>{$stats.commits}</td></tr>
|
|
|
|
<tr><td class="right">{trans 'Documentations:'}</td><td>{$stats.docpages}</td></tr>
|
|
|
|
<tr><td class="right">{trans 'Downloads:'}</td><td>{$stats.downloads}</td></tr>
|
|
|
|
<tr><td class="right">{trans 'Code reviews:'}</td><td>{$stats.reviews}</td></tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2008-07-25 10:26:05 +02:00
|
|
|
{/block}
|
2008-11-30 10:26:05 +01:00
|
|
|
{block foot}<div id="branding">Powered by <a href="http://www.indefero.net" title="InDefero, bug tracking and more">InDefero</a>,<br />a <a href="http://www.ceondo.com">Céondo Ltd</a> initiative.</div>{/block}
|