File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5252 var $time = $ ( '<a>' ) . attr ( 'href' , repo . html_url + '/commits' ) . text ( repo . pushed_at . toDateString ( ) ) ;
5353 $item . append ( $ ( '<span>' ) . addClass ( 'time' ) . append ( $time ) ) ;
5454 $item . append ( '<span class="bullet">⋅</span>' ) ;
55- var $watchers = $ ( '<a>' ) . attr ( 'href' , repo . html_url + '/watchers' ) . text ( repo . watchers + ' stargazers') ;
55+ var $watchers = $ ( '<a>' ) . attr ( 'href' , repo . html_url + '/watchers' ) . text ( repo . watchers + ( repo . watchers === 1 ? ' stargazer' : ' stargazers') ) ;
5656 $item . append ( $ ( '<span>' ) . addClass ( 'watchers' ) . append ( $watchers ) ) ;
5757 $item . append ( '<span class="bullet">⋅</span>' ) ;
58- var $forks = $ ( '<a>' ) . attr ( 'href' , repo . html_url + '/network' ) . text ( repo . forks + ' forks') ;
58+ var $forks = $ ( '<a>' ) . attr ( 'href' , repo . html_url + '/network' ) . text ( repo . forks + ( repo . forks === 1 ? ' fork' : ' forks') ) ;
5959 $item . append ( $ ( '<span>' ) . addClass ( 'forks' ) . append ( $forks ) ) ;
6060 $ ( '#recently-updated' ) . removeClass ( 'loading' ) . append ( $item ) ;
6161 }
You can’t perform that action at this time.
0 commit comments