Changeset 372 for sites/trunk/trac.wordpress.org/templates/site.html
- Timestamp:
- 02/04/2014 10:08:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/site.html
r369 r372 8 8 project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0] 9 9 wporg_endpoint = '//make.wordpress.org/core/' 10 is_bug_gardener = 'TICKET_EDIT_DESCRIPTION' in perm(resource) 10 11 11 12 if project_slug == 'core': … … 59 60 fields_map[ fields[i]['name'] ] = i 60 61 ?> 61 62 <script type="text/javascript" charset="utf-8" src="/chrome/common/js/jquery.js"></script>63 62 64 63 <!--! styles and such --> … … 166 165 167 166 <!--! force non-gardeners to preview before posting --> 168 <py:if test="not ( 'TICKET_ADMIN' in perm(resource) or 'Bug Gardener' in perm(resource) )and not 'preview' in req.args">167 <py:if test="not is_bug_gardener and not 'preview' in req.args"> 169 168 <py:match path="form[@id='propertyform']/div[@class='buttons']" once="true"> 170 169 <div py:attrs="select('@*')"> … … 204 203 205 204 <!--! Remove 'Replace existing attachment of the same name' checkbox for non-gardeners --> 206 <py:if test="not ( 'TICKET_ADMIN' in perm(resource) or 'Bug Gardener' in perm(resource) )">205 <py:if test="not is_bug_gardener"> 207 206 <py:match path="form[@id='attachment']//div[@class='options']" py:strip="" /> 208 207 </py:if> … … 293 292 <xi:include href="wporg-footer.html" /> 294 293 295 <script py:if=" 'TICKET_ADMIN' in perm(resource) or 'Bug Gardener' in perm(resource)">294 <script py:if="is_bug_gardener"> 296 295 var wpBugGardener = true; 297 296 </script>
Note: See TracChangeset
for help on using the changeset viewer.