Making WordPress.org

Changeset 2039


Ignore:
Timestamp:
11/05/2015 05:11:41 AM (9 years ago)
Author:
nacin
Message:

Trac: Fix project name used when creating a new ticket.

fixes #1378.

File:
1 edited

Legend:

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

    r2029 r2039  
    99    wporg_endpoint = '//make.wordpress.org/' + project_slug + '/'
    1010    is_bug_gardener = 'TICKET_EDIT_DESCRIPTION' in perm(resource)
     11    project_name = project['name'].replace('Trac', '').strip()
    1112
    1213    notifications_enabled = 1 if project_slug in ['core', 'meta'] else 0
     
    9798        <py:if test="project_slug in ['core', 'bbpress', 'buddypress']">
    9899        <div class="newticket-instructions">
    99             <p><strong>This form is for reporting bugs in ${project.name}.</strong> Here are some questions and tips to help you write a great bug report:</p>
     100            <p><strong>This form is for reporting bugs in ${project_name}.</strong> Here are some questions and tips to help you write a great bug report:</p>
    100101            <ul>
    101                 <li>Are you using either the latest version of ${project.name}, or the latest development version? If not, please update first.</li>
     102                <li>Are you using either the latest version of ${project_name}, or the latest development version? If not, please update first.</li>
    102103                <li>What steps should be taken to consistently reproduce the problem?</li>
    103104                <li>Does the problem occur even when you deactivate all plugins and use the default theme?</li>
     
    188189<py:match path="form[@id='attachment']/div[@class='buttons']" once="true">
    189190    <div class="wp-caution" id="wp-contributions-caution">
    190         <p>By contributing code to ${project.name}, you grant its use under the GNU General Public License v2 (or later).</p>
     191        <p>By contributing code to ${project_name}, you grant its use under the GNU General Public License v2 (or later).</p>
    191192    </div>
    192193    <div py:attrs="select('@*')">
     
    246247            <div id="headline" class="no-menu">
    247248                <div class="wrapper">
    248                     <h2><a href="/">${project.name}</a></h2>
     249                    <h2><a href="/">${project_name}</a></h2>
    249250                </div>
    250251            </div>
Note: See TracChangeset for help on using the changeset viewer.