Making WordPress.org

Changeset 333


Ignore:
Timestamp:
01/30/2014 07:59:44 PM (10 years ago)
Author:
nacin
Message:

WP.org P2 reports page updates to allow this to be pulled into Trac. see #298.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/page-reports.php

    r332 r333  
    33 * For the /reports/ page
    44 */
     5
     6if ( isset( $_GET['from-trac'] ) ) {
     7    send_origin_headers();
     8    while ( have_posts() ) {
     9        the_post();
     10        p2_load_entry();
     11    }
     12    return;
     13}
    514?>
     15
    616<?php get_header(); ?>
    717
    818<style>
     19/* changes to P2 */
    920#main ul#postlist li {
    1021    border: 0;
     
    1627    display: block;
    1728}
    18 .report-group h3 {
     29#main .postcontent .trac-only {
     30    display: none;
     31}
     32.ticket-reports .report-group h3 {
    1933    font-weight: bold;
    2034}
    21 #main .report-group h4 {
     35#main .report-group h4,
     36.ticket-reports .report-group h4 {
    2237    font-size: 1.2em;
    2338}
    24 #main .report-group h4 a {
     39#main .report-group h4 a,
     40.ticket-reports .report-group h4 a {
    2541    font-weight: normal;
    2642}
    27 .report {
     43.ticket-reports .report {
    2844    float: left;
    2945    display: inline-block;
     
    3147    margin-right: 15px;
    3248}
    33 .wide .report, .report.wide {
     49.ticket-reports .wide .report,
     50.ticket-reports .report.wide {
    3451    width: 335px;
    3552}
    36 .narrow .report, .report.narrow {
     53.ticket-reports .narrow .report,
     54.ticket-reports .report.narrow {
    3755    width: 130px;
    3856    margin-right: 10px;
    3957}
    40 .report h4 {
     58.ticket-reports .report h4 {
    4159    margin-bottom: 8px;
    4260}
    43 .report p {
     61.ticket-reports .report p {
    4462    margin-top: 0;
    4563}
    46 .report p a {
     64.ticket-reports .report p a {
    4765    border: 0;
    4866}
    49 .report-group {
     67.ticket-reports .report-group {
    5068    clear: both;
    5169    overflow: auto;
    5270    margin-bottom: 30px;
    5371}
    54 .reports h3 {
     72.ticket-reports .reports h3 {
    5573    margin: 0 0 10px;
    5674}
    5775</style>
    58 <script src="https://core.trac.wordpress.org/chrome/common/js/jquery.js"></script>
    5976<script>
    6077$(document).on( 'ready', function() {
Note: See TracChangeset for help on using the changeset viewer.