Making WordPress.org

Changeset 643


Ignore:
Timestamp:
05/24/2014 09:36:04 AM (10 years ago)
Author:
samuelsidler
Message:

Make Core Trac Components: Fix UI style for followers. fixes #332

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php

    r380 r643  
    150150.trac-summary .count { text-align: right; min-width: 3em }
    151151.trac-summary .zero { color: #ddd }
    152 #main ul.maintainers { list-style: none; padding: 0; margin: 0 }
    153 ul.maintainers li { display: inline-block; line-height: 36px; margin-right: 20px; margin-bottom: 10px }
    154 ul.maintainers img { float: left; margin-right: 10px; }
     152#main ul.maintainers, #main ul.followers { list-style: none; padding: 0; margin: 0 }
     153ul.maintainers li, ul.followers li { display: inline-block; line-height: 36px; margin-right: 20px; margin-bottom: 10px }
     154ul.maintainers img, ul.followers img { float: left; margin-right: 10px; }
    155155#main ul.ticket-list { list-style: none; margin: 0; padding: 0 }
    156156ul.ticket-list li { margin-bottom: 4px }
     
    251251        $followers = $this->trac->get_col( $this->trac->prepare( "SELECT username FROM _notifications WHERE type = 'component' AND value = %s", $post->post_title ) );
    252252        if ( $followers ) {
    253             echo "Contributors following this component:\n";
     253            echo 'Contributors following this component:';
     254      echo '<ul class="followers">';
    254255            foreach ( $followers as $follower ) {
    255256                $follower = esc_attr( $follower );
    256                 echo '<a title="' . $follower . '" href="//profiles.wordpress.org/' . $follower . '">';
    257                 echo '<img width="36" height="36" src="//wordpress.org/grav-redirect.php?user=' . $follower . '&amp;s=36" /></a>';
    258             }
     257                echo '<li><a title="' . $follower . '" href="//profiles.wordpress.org/' . $follower . '">';
     258                echo '<img width="36" height="36" src="//wordpress.org/grav-redirect.php?user=' . $follower . '&amp;s=36" /></a></li>';
     259            }
     260      echo '</ul>';
    259261        }
    260262
Note: See TracChangeset for help on using the changeset viewer.