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/27 18:07:37 UTC
[20/40] 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/ff94c41f
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/ff94c41f
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/ff94c41f
Branch: refs/heads/ib/7924
Commit: ff94c41f516f67c1aead24df99602284799522b2
Parents: 446a0b8
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri Oct 23 16:41:48 2015 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Tue Oct 27 16:22:11 2015 +0200
----------------------------------------------------------------------
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/ff94c41f/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>