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:
Konstantin Obenland
2015-07-03 20:53:18 +00:00
parent 02bd602dfe
commit e33229a237
2 changed files with 37 additions and 54 deletions

View File

@@ -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>
<# } #>