We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec1713 commit 1b8ee0fCopy full SHA for 1b8ee0f
lib/MetaCPAN/Web/Model/ReleaseInfo.pm
@@ -95,6 +95,7 @@ sub _fetch {
95
96
$data->{chat} = $self->_get_chat( $release, $dist );
97
$data->{issues} = $self->_get_issues( $release, $dist );
98
+ $data->{stars} = $data->{distribution}->{repo}->{github}->{stars} || 0;
99
$data->{repository} = $self->_get_repository( $release, $dist );
100
101
Future->done($data);
root/inc/favorite.tx
@@ -10,3 +10,11 @@
10
<div class="show-logged-out">
11
<button class="fav-not-logged-in favorite[% if $favorites { %] highlight[% } %]"><span>[% $favorites %]</span> ++</button>
12
</div>
13
+%% if $stars {
14
+ <div class="star-rating">
15
+ <button class="btn btn-outline-warning">
16
+ <span>⭐</span>
17
+ <span>[% $stars %]</span>
18
+ </button>
19
+ </div>
20
+%% }
0 commit comments