[9151c9]: Allura / allura / templates / widgets / repo / tree_widget.html  Maximize  Restore  History

Download this file

52 lines (51 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% import 'jinja_master/lib.html' as lib with context %}
<table>
{% set ls = list(tree.ls()) %}
<thead>
<tr>
<th>File</th>
<th>Date</th>
<th>Author</th>
<th>Commit</th>
</tr>
</thead>
<tbody>
{% if tree._parent %}
<tr>
<td></td>
<td><a href="..">[Up one dir]</a></td>
<td></td>
<td></td>
<td></td>
</tr>
{% endif %}
{% if not ls %}
<tr><td colspan="5">&mdash; No files &mdash;</td></tr>
{% endif %}
{% for dirent in tree.ls() %}
<tr>
<td>
<a href="{{h.really_unicode(dirent.href)}}">
<b data-icon="{{dirent.kind == 'DIR' and 'o' or 'n'}}" class="ico {{dirent.kind == 'DIR' and 'folder' or 'table'}}"></b>
<span>{{h.really_unicode(dirent.name)}}</span>
</a>
</td>
<td>{{h.ago(dirent.last_commit.date)}}</td>
<td>
{% if dirent.last_commit.author_url %}
<a href="{{dirent.last_commit.author_url}}">{{lib.email_gravatar(dirent.last_commit.author_email, title=h.really_unicode(dirent.last_commit.author), size=16)}}</a>
<a href="{{dirent.last_commit.author_url}}">{{h.really_unicode(dirent.last_commit.author)}}</a>
{% else %}
{{lib.email_gravatar(dirent.last_commit.author_email, title=h.really_unicode(dirent.last_commit.author), size=16)}} {{h.really_unicode(dirent.last_commit.author)}}
{% endif %}
</td>
<td>
<a href="{{dirent.last_commit.href}}">
{{dirent.last_commit.shortlink}}
{{dirent.last_commit.summary}}
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks