Making WordPress.org


Ignore:
Timestamp:
01/13/2014 02:28:59 PM (11 years ago)
Author:
nacin
Message:

Trac template updates for plugins.trac.

File:
1 edited

Legend:

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

    r290 r291  
    55
    66<?python
    7     scripts_version = '32'
     7    scripts_version = '33'
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = '//make.wordpress.org/core/'
     
    5656    <py:match path="div[@id='content' and @class='ticket']/form">
    5757        <div class="wp-notice">
    58         <p><strong>ARE YOU IN THE RIGHT PLACE?</strong></p>
    59             <p><strong>This is not for support.</strong> Please try the <a class="ext-link" href="${support_link}"><span class="icon">&nbsp;</span>support forums</a>.</p>
    60             <p><strong>Do not report potential security vulnerabilities here.</strong> Read the <a class="ext-link" href="//codex.wordpress.org/FAQ_Security"><span class="icon">&nbsp;</span>Security FAQ</a> and email us at <a class="mail-link" href="mailto:security@wordpress.org"><span class="icon">&nbsp;</span>security@wordpress.org</a>.</p>
     58            <p><strong>ARE YOU IN THE RIGHT PLACE?</strong></p>
     59
     60            <py:choose test="">
     61                <p py:when="project_slug == 'plugins' and ticket.component and ticket.component != 'not-listed'"><strong>This is not for support.</strong> Please try this plugin's <a class="ext-link" href="${support_link}plugin/${ticket.component}"><span class="icon">&nbsp;</span>support forum</a>.</p>
     62                <p py:otherwise=""><strong>This is not for support.</strong> Please try the <a class="ext-link" href="${support_link}"><span class="icon">&nbsp;</span>support forums</a>.</p>
     63            </py:choose>
     64
     65            <py:choose test="project_slug">
     66                <p py:when="'plugins'"><strong>Do not report potential security vulnerabilities here.</strong> Please email <a class="mail-link" href="mailto:plugins@wordpress.org"><span class="icon">&nbsp;</span>plugins@wordpress.org</a>.</p>
     67                <p py:otherwise=""><strong>Do not report potential security vulnerabilities here.</strong> Read the <a class="ext-link" href="//codex.wordpress.org/FAQ_Security"><span class="icon">&nbsp;</span>Security FAQ</a> and email <a class="mail-link" href="mailto:security@wordpress.org"><span class="icon">&nbsp;</span>security@wordpress.org</a>.</p>
     68            </py:choose>
     69
    6170            <py:if test="project_slug == 'core'">
    6271            <hr />
     
    201210</py:if>
    202211
    203 <body py:match="body" id="wordpress-org" class="${project_slug}" py:attrs="select('@*')">
     212<body py:match="body" id="wordpress-org" class="${project_slug} trac" py:attrs="select('@*')">
    204213    <!--! WP.org Global Header -->
    205214    <xi:include href="wporg-header.html" />
Note: See TracChangeset for help on using the changeset viewer.