Making WordPress.org

Changeset 9701


Ignore:
Timestamp:
04/06/2020 04:49:25 AM (5 years ago)
Author:
dd32
Message:

Trac: Add a nicer error message when viewing the new ticket page logged out.

Props joyously for the wording.
Fixes #1453.

File:
1 edited

Legend:

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

    r9700 r9701  
    109109<!--! Notices and instructions when creating a new ticket -->
    110110<py:if test="req.environ['PATH_INFO'] == '/newticket'">
     111
     112    <py:if test="not req.session['authenticated']">
     113        <py:match path="div[@id='content' and @class='error']/h1">
     114            <h1>Login Required</h1>
     115        </py:match>
     116        <py:match path="div[@id='content' and @class='error']/p[@class='message']">
     117            <p class="info message"><a href="https://login.wordpress.org/?redirect_to=https://${project_slug}.trac.wordpress.org/newticket">You need to login</a> to create a ticket.</p>
     118        </py:match>
     119    </py:if>
    111120
    112121    <py:match path="div[@id='content' and @class='ticket']/form">
Note: See TracChangeset for help on using the changeset viewer.