Making WordPress.org

Changeset 8080


Ignore:
Timestamp:
01/14/2019 10:16:20 AM (6 years ago)
Author:
vedjain
Message:

WCPT: Make deputy notes more prominent and readable.

Currently log sections of Meetup/WordCamp application has lot info including status changes, tag change, notes added by deputies etc. This patch will make the deputy notes more prominent by so that they are easily parsable. Also applying wpautop to notes since they are added via textarea and can be long with new lines breaks between them.

props sippis
fixes 3893

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/css/applications/admin.css

    r8067 r8080  
    2020    min-width: 25%;
    2121}
     22
     23#wcpt_log .widefat th p:first-of-type {
     24        margin-top: 0;
     25}
     26
     27#wcpt_log .widefat th p:last-of-type {
     28        margin-bottom: 0;
     29}
     30
     31#wcpt_log .widefat td p,
     32#wcpt_log .widefat th p {
     33        color: #777;
     34}
     35
     36#wcpt_log .widefat tr.note td,
     37#wcpt_log .widefat tr.note th {
     38        vertical-align:top;
     39}
     40
     41#wcpt_log .widefat tr.note td p,
     42#wcpt_log .widefat tr.note th p {
     43        color: #222;
     44}
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/views/common/metabox-log.php

    r2876 r8080  
    1 <?php defined( 'WPINC' ) or die(); ?>
     1<?php defined( 'WPINC' ) || die(); ?>
    22
    33<table class="widefat striped">
     
    1515
    1616            <?php foreach ( $entries as $entry ) : ?>
    17                 <tr>
    18                     <th><?php echo esc_html( date( 'Y-m-d h:ia', $entry['timestamp'] ) );          ?></th>
    19                     <th><?php echo esc_html( ucwords( str_replace( '_', ' ', $entry['type'] ) ) ); ?></th>
    20                     <th><?php echo esc_html( $entry['user_display_name'] );                        ?></th>
    21                     <th><?php echo wp_kses(  $entry['message'], wp_kses_allowed_html( 'data') );  ?></th>
     17                <tr class="<?php echo esc_attr( str_replace( '_', '-', $entry['type'] ) ); ?>">
     18                    <th><p><?php echo esc_html( date( 'Y-m-d h:ia', $entry['timestamp'] ) ); ?></p></th>
     19                    <th><p><?php echo esc_html( ucwords( str_replace( '_', ' ', $entry['type'] ) ) ); ?></p></th>
     20                    <th><p><?php echo esc_html( $entry['user_display_name'] ); ?></p></th>
     21                    <th><?php echo wp_kses( wpautop( $entry['message'] ), wp_kses_allowed_html( 'data' ) ); ?></th>
    2222                </tr>
    2323            <?php endforeach; ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php

    r8027 r8080  
    519519        check_admin_referer( 'wcpt_notes', 'wcpt_notes_nonce' );
    520520
    521         $new_note_message = sanitize_text_field( wp_unslash( $_POST['wcpt_new_note'] ) );
     521        $new_note_message = sanitize_textarea_field( wp_unslash( $_POST['wcpt_new_note'] ) );
    522522
    523523        if ( empty( $new_note_message ) ) {
Note: See TracChangeset for help on using the changeset viewer.