File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,13 @@ function GithubRepo( repo ) {
6
6
this . name = repo . name ;
7
7
this . open_issues = repo . open_issues ;
8
8
this . pushed_at = repo . pushed_at ;
9
- this . url = repo . url ;
9
+ this . url = repo . html_url ;
10
10
this . stargazers = repo . stargazers_count ;
11
11
}
12
12
13
13
// Parses HTML template
14
14
GithubRepo . prototype . toHTML = function ( ) {
15
- this . pushed_at = this . _parsePushedDate ( this . pushed_at ) ,
16
- this . url = this . _parseURL ( this . url ) ;
15
+ this . pushed_at = this . _parsePushedDate ( this . pushed_at ) ;
17
16
18
17
return $ (
19
18
"<div class='github-box'>" +
@@ -44,11 +43,6 @@ GithubRepo.prototype._parsePushedDate = function ( pushed_at ) {
44
43
return date . getDate ( ) + "/" + ( date . getMonth ( ) + 1 ) + "/" + date . getFullYear ( ) ;
45
44
} ;
46
45
47
- // Parses URL to be friendly
48
- GithubRepo . prototype . _parseURL = function ( url ) {
49
- return url . replace ( "api." , "" ) . replace ( "repos/" , "" ) ;
50
- } ;
51
-
52
46
// -- Github Plugin ------------------------------------------------------------
53
47
54
48
function Github ( element , options ) {
You can’t perform that action at this time.
0 commit comments