The following commit has been merged in the master branch:
commit 20ae08103736ee5bec11cdc10b33825854e204d5
Author: Ole Streicher <[email protected]>
Date: Wed Apr 20 17:38:15 2016 +0200
Don't show "Go Tagging" and "Upload screenshot" for non-official packages
diff --git a/webtools/templates/tasks.xhtml b/webtools/templates/tasks.xhtml
index dd85f9b..543878f 100644
--- a/webtools/templates/tasks.xhtml
+++ b/webtools/templates/tasks.xhtml
@@ -127,9 +127,10 @@
</div>
<div py:choose="">
<div py:when="'debtags' in project.properties"
class="project-info"
onmouseover="TagToTip('${project.properties['name']}-debtags', FIX,
['${project.properties['name']}', 0, 0])" onmouseout="UnTip()"><a
href="https://debtags.debian.org/edit/${project.properties['name']}">Edit
Debtags</a></div>
- <div py:otherwise="">
- <div class="project-infomissing"><a
href="https://debtags.debian.org/edit/${project.properties['name']}">Go
tagging</a></div>
- </div>
+ <div py:when="project.properties['component'] == 'main'
+ and project.properties['pkgstatus'] in
('official_high', 'official_low', 'experimental')"
+ class="project-infomissing"><a
href="https://debtags.debian.org/edit/${project.properties['name']}">Go
tagging</a></div>
+ <div py:otherwise=""></div>
</div>
</td>
<td class="project-license">
@@ -213,8 +214,11 @@
</span>
<a
href="http://screenshots.debian.net/package/${project.properties['name']}"><img
class="icon" src="${project.properties['screenshot']['icon']}" width="300"
alt="Screenshots of package ${project.properties['name']}"
onmouseover="TagToTip('${project.properties['name']}-screenshot', FIX,
['${project.properties['name']}', 80, -100])" onmouseout="UnTip()" /></a>
</div>
- <div py:otherwise="" class="project-infomissing"><a
href="http://screenshots.debian.net/uploadfile?packagename=${project.properties['name']}">Upload
screenshot</a></div>
- </div>
+ <div py:when="project.properties['component'] == 'main'
+ and project.properties['pkgstatus'] in
('official_high', 'official_low', 'experimental')"
+ class="project-infomissing"><a
href="http://screenshots.debian.net/uploadfile?packagename=${project.properties['name']}">Upload
screenshot</a></div>
+ <div py:otherwise=""></div>
+ </div>
</td>
</tr>
<tr py:if="'remark' in project.properties">
--
Static and dynamic websites for Debian Pure Blends
_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit