[Tracker-discuss] [issue550] Add an icon to the issue list for issues with patches

Hieu Nguyen metatracker at psf.upfronthosting.co.za
Sat Aug 2 16:01:15 CEST 2014


New submission from Hieu Nguyen:

Attached the patch to add an icon the issue list for issues with patches.

----------
assignedto: ezio.melotti
files: patch_column_improvement.diff
messages: 2891
nosy: ezio.melotti, hieu.nguyen
priority: feature
status: unread
title: Add an icon to the issue list for issues with patches

_______________________________________________________
PSF Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue550>
_______________________________________________________
-------------- next part --------------
diff --git a/html/issue.index.html b/html/issue.index.html
--- a/html/issue.index.html
+++ b/html/issue.index.html
@@ -28,7 +28,7 @@
    <th tal:condition="request/show/creation" i18n:translate="">Creation</th>
    <th tal:condition="request/show/activity" i18n:translate="">Activity</th>
    <th tal:condition="request/show/actor" i18n:translate="">Actor</th>
-   <th tal:condition="request/show/title" i18n:translate="">Title</th>
+   <th tal:condition="request/show/title" i18n:translate="" colspan="2">Title</th>
    <th tal:condition="request/show/components"  i18n:translate="">Components</th>
    <th tal:condition="request/show/versions" i18n:translate="">Versions</th>
    <th tal:condition="request/show/stage" i18n:translate="">Stage</th>
@@ -66,6 +66,10 @@
     <a tal:attributes="href string:issue${i/id}"
 		tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a>
    </td>
+   <td tal:condition="request/show/title">
+     <img tal:condition="python:'patch' in list(str(x.name) for x in i.keywords)" 
+          src="@@file/patch-icon.png" alt="has patch" title="has patch" />
+   </td>
    <td tal:condition="request/show/components"
        tal:content="python:i.components.plain() or default"> </td>
    <td tal:condition="request/show/versions"
diff --git a/html/patch-icon.png b/html/patch-icon.png
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..f0d64f9e93a91c8317e5a9e0d482960d36e897e7
GIT binary patch
literal 155
zc%17D at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`NuDl_Ar-ggPQJ(olyLp}{I6y5
zrhu29f{s~cvx+7d7Kd7X_2AH%aBn$_IuGZQN8zmc7H<x6^J$+rl*Y<Y!x>N^{O5r8
z0{*pkn%fUls~ER!(BANjm)mH=O=gyT%NBh4qMuutzeR9<n}izBHU>{uKbLh*2~7a8
Cm^MoQ



More information about the Tracker-discuss mailing list