Author: gjm
Date: Wed Nov 14 18:40:53 2012
New Revision: 1409290

URL: http://svn.apache.org/viewvc?rev=1409290&view=rev
Log:
make attachment link in scrollspy consistent with availability of the section - 
fixes #247 (from olemis)

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html

Modified: 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html?rev=1409290&r1=1409289&r2=1409290&view=diff
==============================================================================
--- 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html 
(original)
+++ 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html 
Wed Nov 14 18:40:53 2012
@@ -175,7 +175,7 @@
             <div class="navbar visible-affix" py:if="ticket.exists"
                 py:with="sections = (
                         (_('Overview'), 'content', True, _('View ticket fields 
and description'), 'icon-list'),
-                        (_('Attachments'), 'attachments', True, _('Go to the 
list of attachments'), 'icon-file'),
+                        (_('Attachments'), 'attachments', 
attachments.attachments or attachments.can_create, _('Go to the list of 
attachments'), 'icon-file'),
                         (_('Comments'), 'changelog', True, _('Go to the 
changelog'), 'icon-comment'),
                         (_('Add comment'), 'propertyform', ticket.exists and 
can_append, _('Go to the ticket editor'), 'icon-plus-sign'),
                         (_('Modify Ticket'), 'modify', can_modify or can_edit 
or can_create, _('Modify ticket fields and description'), 'icon-edit'),


Reply via email to