mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Synchronize star ratings of themes and plugins.
Makes themes ratings look like plugins ratings already do. Props helen. Fixes #32782. git-svn-id: https://develop.svn.wordpress.org/trunk@33073 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -237,16 +237,12 @@ if ( $tab ) {
|
||||
|
||||
<div class="theme-details">
|
||||
<# if ( data.rating ) { #>
|
||||
<div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
|
||||
<span class="one"></span>
|
||||
<span class="two"></span>
|
||||
<span class="three"></span>
|
||||
<span class="four"></span>
|
||||
<span class="five"></span>
|
||||
<div class="star-rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
|
||||
<span class="one"></span><span class="two"></span><span class="three"></span><span class="four"></span><span class="five"></span>
|
||||
<small class="ratings">{{ data.num_ratings }}</small>
|
||||
</div>
|
||||
<# } else { #>
|
||||
<div class="rating">
|
||||
<div class="star-rating">
|
||||
<small class="ratings"><?php _e( 'This theme has not been rated yet.' ); ?></small>
|
||||
</div>
|
||||
<# } #>
|
||||
|
||||
Reference in New Issue
Block a user