You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/10/23 16:49:25 UTC
[25/28] allura git commit: [#7924] ticket:853 Update icons for
repository tree browser
[#7924] ticket:853 Update icons for repository tree browser
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/fdb13c20
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/fdb13c20
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/fdb13c20
Branch: refs/heads/ib/7924
Commit: fdb13c20f8d1744f13276b515e716c502f2403eb
Parents: c6be655
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri Oct 23 16:41:48 2015 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Fri Oct 23 16:41:48 2015 +0300
----------------------------------------------------------------------
Allura/allura/templates/widgets/repo/tree_widget.html | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/fdb13c20/Allura/allura/templates/widgets/repo/tree_widget.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/widgets/repo/tree_widget.html b/Allura/allura/templates/widgets/repo/tree_widget.html
index 957ec11..c65ab51 100644
--- a/Allura/allura/templates/widgets/repo/tree_widget.html
+++ b/Allura/allura/templates/widgets/repo/tree_widget.html
@@ -44,8 +44,13 @@
<tr>
<td class="nowrap">
<a href="{{h.urlquote(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>
+ {% if dirent.kind == 'DIR' %}
+ {% set icon_name = 'folder' %}
+ {% else %}
+ {% set icon_name = 'table' %}
+ {% endif %}
+ {{ g.icons[icon_name].render(tag='b', title=h.really_unicode(dirent.name)) }}
+ <span>{{ h.really_unicode(dirent.name) }}</span>
</a>
</td>
<td class="nowrap">{{lib.abbr_date(dirent.last_commit.date)}}</td>