summaryrefslogtreecommitdiff
path: root/templates/pkg_edit.pt
diff options
context:
space:
mode:
authormartin.von.loewis <devnull@localhost>2009-12-04 20:11:26 +0000
committermartin.von.loewis <devnull@localhost>2009-12-04 20:11:26 +0000
commit260c737a47e1ef2afd45183d5175d88c034dfb62 (patch)
treeb352365bdcc091a05b61742cf605f24217fcfe4f /templates/pkg_edit.pt
parent9d4a17e130133bb6c99f512f024f4b1cafa9aa83 (diff)
downloaddecorator-260c737a47e1ef2afd45183d5175d88c034dfb62.tar.gz
Allow package authors to opt out of commenting.
Diffstat (limited to 'templates/pkg_edit.pt')
-rw-r--r--templates/pkg_edit.pt9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/pkg_edit.pt b/templates/pkg_edit.pt
index 2a72557..c6fbccb 100644
--- a/templates/pkg_edit.pt
+++ b/templates/pkg_edit.pt
@@ -80,8 +80,15 @@ uncheck the button below</p>
for the checked attribute will not work -->
<input tal:condition="data/autohide" type="checkbox" name="autohide"
checked="checked">Auto-hide old releases</input>
- <input tal:condition="python:not data['autohide']" type="checkbox" name="autohide">Auto-hide old releases</input>
+ <input tal:condition="not:data/autohide" type="checkbox" name="autohide">Auto-hide old releases</input>
<input type="submit" name="submit_autohide" value="Change" />
+ <br/>
+ <input tal:condition="data/comments" type="checkbox" name="comments"
+ checked="checked">Allow comments on releases</input>
+ <input tal:condition="not:data/comments" type="checkbox" name="comments">Allow comments on releases</input>
+ <input type="submit" name="submit_comments" value="Change" />
+ <tal:block tal:condition="python:app.store.has_package_comments(data['name'])">
+ (commenters will be notified about this change)</tal:block>
</form>
<p>You can now host documentation at