WordPress.org

Making WordPress.org

Changeset 361


Ignore:
Timestamp:
01/31/2014 10:10:23 PM (7 years ago)
Author:
nacin
Message:

New 'Create a ticket' button on search pages. Also, new wporg-make and make-$project body classes to share with make P2s. CSS bumps.

File:
1 edited

Legend:

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

    r309 r361  
    55
    66<?python
    7     scripts_version = '34'
     7    scripts_version = '36'
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = '//make.wordpress.org/core/'
     
    6767
    6868    <meta name="viewport" content="width=device-width" />
    69     <link rel='stylesheet' href='//wordpress.org/wp-includes/css/dashicons.min.css?ver=3.9-alpha-20140112' type='text/css' />
     69    <link rel='stylesheet' href='//s.w.org/wp-includes/css/dashicons.min.css?20140130' type='text/css' />
    7070    <link rel="stylesheet" type="text/css" href="//wordpress.org/style/trac/wp-trac.css?${scripts_version}" />
    7171    <link rel="stylesheet" type="text/css" href="//openatd.svn.wordpress.org/atd-jquery/css/atd.css" media="screen" />
     
    215215</py:match>
    216216
     217<!-- Show a create ticket button on search -->
     218<div py:match="div[@id='content' and @class='search']/h1">
     219    <h1 py:attrs="select('@*')">${select('*|comment()|text()')}</h1>
     220    <span class="create-new-ticket button button-large button-primary">
     221        <a href="https://wordpress.org/support/bb-login.php?redirect_to=https://core.trac.wordpress.org/newticket">Create a new ticket</a>
     222    </span>
     223</div>
     224
    217225<!--! Demote the nav "Preferences" link to the footer. To hide from header (trac.ini): [metanav] prefs = disabled -->
    218226<div py:match="div[@id='altlinks']" py:attrs="select('@*')">
     
    235243</py:if>
    236244
    237 <body py:match="body" id="wordpress-org" class="${project_slug} trac" py:attrs="select('@*')">
     245<body py:match="body" id="wordpress-org" class="${project_slug} trac wporg-make make-${project_slug}" py:attrs="select('@*')">
    238246    <!--! WP.org Global Header -->
    239247    <xi:include href="wporg-header.html" />
Note: See TracChangeset for help on using the changeset viewer.