Skip to content

Commit

Permalink
starfishmod#26 quick fix/hack to use UTF8 characters instead images s…
Browse files Browse the repository at this point in the history
…o that it has something for now
  • Loading branch information
starfishmod committed May 17, 2012
1 parent b1d0bde commit 736d776
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions jquery.oembed.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ div.oembedall-githubrepos {
margin: 0 0 10px;
padding: 8px 10px 0;
font: 13.34px/1.4 helvetica,arial,freesans,clean,sans-serif;
background: url("http://github.com/images/icons/public.png") no-repeat scroll 6px 9px transparent;
/*background: url("http://github.com/images/icons/public.png") no-repeat scroll 6px 9px transparent;*/
width : 452px;
background-color:#fff;
}
Expand Down Expand Up @@ -42,7 +42,7 @@ div.oembedall-githubrepos p.oembedall-updated-at {
}

div.oembedall-githubrepos ul.oembedall-repo-stats {
background: url("http://github.com/images/modules/pagehead/actions_fade.png") no-repeat scroll 0 0 transparent;
/*background: url("http://github.com/images/modules/pagehead/actions_fade.png") no-repeat scroll 0 0 transparent;*/
border: medium none;
float: right;
font-size: 11px;
Expand Down Expand Up @@ -92,11 +92,11 @@ ul.oembedall-repo-stats li:last-child a:hover {
border-top-right-radius: 3px;
}
div.oembedall-githubrepos ul.oembedall-repo-stats li.oembedall-watchers a {
background-image: url("http://github.com/images/modules/pagehead/repostat_watchers.png");
/*background-image: url("http://github.com/images/modules/pagehead/repostat_watchers.png");*/
}

div.oembedall-githubrepos ul.oembedall-repo-stats li.oembedall-forks a {
background-image: url("http://github.com/images/modules/pagehead/repostat_forks.png");
/*background-image: url("http://github.com/images/modules/pagehead/repostat_forks.png");*/
}


Expand Down
4 changes: 2 additions & 2 deletions jquery.oembed.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@
new $.fn.oembed.OEmbedProvider("github", "rich", ["github.com/[-.\\w@]+/[-.\\w@]+"], "https://api.github.com/repos/$1/$2?callback=?"
,{templateRegex:/.*\/([^\/]+)\/([^\/]+).*/,
templateData : function(data){ if(!data.data.html_url)return false;
return '<div class="oembedall-githubrepos"><ul class="oembedall-repo-stats"><li>'+data.data.language+'</li><li class="oembedall-watchers"><a title="Watchers" href="'+data.data.html_url+'/watchers">'+data.data.watchers+'</a></li>'
+'<li class="oembedall-forks"><a title="Forks" href="'+data.data.html_url+'/network">'+data.data.forks+'</a></li></ul><h3><a href="'+data.data.html_url+'">'+data.data.name+'</a></h3><div class="oembedall-body"><p class="oembedall-description">'+data.data.description+'</p>'
return '<div class="oembedall-githubrepos"><ul class="oembedall-repo-stats"><li>'+data.data.language+'</li><li class="oembedall-watchers"><a title="Watchers" href="'+data.data.html_url+'/watchers">&#x25c9; '+data.data.watchers+'</a></li>'
+'<li class="oembedall-forks"><a title="Forks" href="'+data.data.html_url+'/network">&#x0265; '+data.data.forks+'</a></li></ul><h3><a href="'+data.data.html_url+'">'+data.data.name+'</a></h3><div class="oembedall-body"><p class="oembedall-description">'+data.data.description+'</p>'
+'<p class="oembedall-updated-at">Last updated: '+data.data.pushed_at+'</p></div></div>';
}
}),
Expand Down

0 comments on commit 736d776

Please sign in to comment.