srchub

srchub Commit Details


Date:2016-01-24 21:50:21 (8 years 10 months ago)
Author:Natalie Adams
Branch:master
Commit:57927abcc2700be0dff1d2d0d1bfac12003c4dbb
Parents: c23553c16a9fc9a3ce99ae57ae80c4411d548a6c
Message:Issue 116: Add project size on project page

Changes:

File differences

indefero/src/IDF/templates/idf/admin/summary.html
110110
111111
112112
113
114
115
116
117
118
119
120
121
122
123
124
113125
<p><strong>Download Project</strong></p>
<p>A copy of the project can be downloaded here: <a href="{url 'IDF_Views_Project::backup', array($project.shortname)}">Download</a></p>
</div>
{assign $stats = $project.getStats()}
<div class="issue-submit-info">
<p><strong>Project Stats</strong></p>
<dl class="statistics smaller">
<dt>Size:</dt> <dd>{$project.getRepositorySize()|size}</dd>
<dt>Downloads:</dt> <dd>{$stats["downloads"]}</dd>
<dt>Reviews:</dt> <dd>{$stats["reviews"]}</dd>
<dt>Commits:</dt> <dd>{$stats["commits"]}</dd>
<dt>Issues:</dt> <dd>{$stats["issues"]}</dd>
<dt>Documentations:</dt> <dd>{$stats["docpages"]}</dd>
</dl>
</div>
{/block}
indefero/src/IDF/templates/idf/project/home.html
3737
3838
3939
40
41
42
43
44
45
46
47
4048
4149
4250
<span class="label"><a class="label" href="{$url}">{$member}</a></span><br />
{/foreach}
{/if}
{assign $stats = $project.getStats()}
<dl class="statistics smaller">
<dt>Downloads:</dt> <dd>{$stats["downloads"]}</dd>
<dt>Reviews:</dt> <dd>{$stats["reviews"]}</dd>
<dt>Commits:</dt> <dd>{$stats["commits"]}</dd>
<dt>Issues:</dt> <dd>{$stats["issues"]}</dd>
<dt>Documentations:</dt> <dd>{$stats["docpages"]}</dd>
</dl>
</p>
<p>
{if $project.enableads}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.07374s using 20 queries.