Making WordPress.org

Changeset 178


Ignore:
Timestamp:
12/27/2013 09:13:31 PM (9 years ago)
Author:
nacin
Message:

Trac: Remove 'Replace existing attachment of the same name' for non-bug gardeners.

fixes #220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r174 r178  
    55
    66<?python
    7     scripts_version = 14
     7    scripts_version = 16
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99
     
    118118</py:match>
    119119
     120<!--! remove 'Replace existing attachment of the same name' checkbox for non-gardeners -->
     121<py:if test="not ( 'TICKET_ADMIN' in perm(resource) or 'Bug Gardener' in perm(resource) )">
     122    <py:match path="form[@id='attachment']//div[@class='options']" py:strip="" />
     123</py:if>
     124
    120125<!--! license notes when uploading patches -->
    121126<py:match path="form[@id='attachment']/div[@class='buttons']" once="true">
Note: See TracChangeset for help on using the changeset viewer.