allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [11/35] allura git commit: [#7924] ticket:853 Update icons for repository tree browser
Date Wed, 28 Oct 2015 16:28:13 GMT
[#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/master
Commit: ff94c41f516f67c1aead24df99602284799522b2
Parents: 446a0b8
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Oct 23 16:41:48 2015 +0300
Committer: Igor Bondarenko <jetmind2@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>


Mime
View raw message