lite/danbooru themes now show rating in statistics box
This commit is contained in:
parent
5a2326614a
commit
602f76da53
2 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,11 @@ class CustomViewImageTheme extends ViewImageTheme {
|
|||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
||||
}
|
||||
|
||||
if(!is_null($image->rating)) {
|
||||
$h_rating = Ratings::rating_to_human($image->rating);
|
||||
$html .= "<br>Rating: $h_rating";
|
||||
}
|
||||
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,11 @@ class CustomViewImageTheme extends ViewImageTheme {
|
|||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
||||
}
|
||||
|
||||
if(!is_null($image->rating)) {
|
||||
$h_rating = Ratings::rating_to_human($image->rating);
|
||||
$html .= "<br>Rating: $h_rating";
|
||||
}
|
||||
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue