incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <>
Subject Re: [Apache Bloodhound] #42: Disable quick ticket button when user doesn't have sufficient permission
Date Fri, 27 Apr 2012 16:25:49 GMT
#42: Disable quick ticket button when user doesn't have sufficient permission
  Reporter:  jdreimann    |      Owner:  olemis
      Type:  enhancement  |     Status:  accepted
  Priority:  major        |  Milestone:  RC1 for initial release
 Component:  dashboard    |    Version:
Resolution:               |   Keywords:

Comment (by gjm):

 I've got a slight change for that - the original patch would result in an
 odd change in shape of the button.

 Index: templates/bloodhound_theme.html
 --- templates/bloodhound_theme.html     (revision 1331432)
 +++ templates/bloodhound_theme.html     (working copy)
 @@ -120,9 +120,11 @@
            <py:choose test="">
              <py:when test="qct">
                 <div class="btn-group">
 -                <a href="#" class="btn btn-primary dropdown-toggle"
 +                <a href="#" py:with="enabled = 'TICKET_CREATE' in perm"
 +                    class="btn btn-primary dropdown-toggle ${not enabled
 and 'disabled'}"
                      id="qct-newticket" rel="popover" title="Ticket "
 -                    data-content="Alert box" data-toggle="dropdown">
 +                    data-content="Alert box"
 +                    data-toggle="${enabled and 'dropdown' or None}">
                    Create Ticket
                  <div id="qct-box" class="dropdown-menu" style="width:

 This will eventually also have to take account of whether it we have
 appropriate permissions for the product although I am prepared for that to
 be dealt with in a different ticket.

 But.. is it me or does it not really have the feeling of being disabled? I
 guess that would be because there are no similar buttons to give that kind
 of hint.

Ticket URL: <>
Apache Bloodhound <>
The Apache Bloodhound (incubating) issue tracker

View raw message