Skip to content

Commit

Permalink
Add links to watchers/forks
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Jan 27, 2012
1 parent ab5ec4a commit 0581b98
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
25 changes: 24 additions & 1 deletion assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,40 @@ a:hover {
font-size: 20px;
}

#recently-updated h1 {
margin-bottom: 10px;
}

#recently-updated h1 a {
font-weight: normal;
font-size: 11px;
}

#recently-updated-repos {
margin-left: 15px;
}

#recently-updated-repos li {
line-height: 1.5;
}

#recently-updated-repos li span {
display: inline-block;
padding: 0 2px;
padding: 0 1px;
}

#recently-updated-repos li span {
font-size: 11px;
}

#recently-updated-repos li span.name {
padding: 0 6px 0 0;
font-size: 13px;
}

#recently-updated-repos li span.watchers a,
#recently-updated-repos li span.forks a {
color: #666;
}

div.header {
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
$item.append('<span class="name"><a href="' + repo.html_url + '">' + repo.name + '</a></span>');
$item.append('<span class="time">' + strftime("%h %e, %Y", repo.pushed_at) + '</span>');
$item.append('<span class="bullet">&sdot;</span>');
$item.append('<span class="watchers">' + repo.watchers + ' watchers</span>');
$item.append('<span class="watchers"><a href="' + repo.html_url + '/watchers">' + repo.watchers + ' watchers</a></span>');
$item.append('<span class="bullet">&sdot;</span>');
$item.append('<span class="forks">' + repo.forks + ' forks</span>');
$item.append('<span class="forks"><a href="' + repo.html_url + '/network">' + repo.forks + ' forks</a></span>');
$item.appendTo("#recently-updated-repos");
}

Expand Down Expand Up @@ -76,7 +76,7 @@ <h1>Statistics</h1>
<p><a href="mailto:opensource@twitter.com">opensource@twitter.com</a></p>
</div>
<div id="recently-updated" class="grid-2 omega header">
<h1>Recently updated</h1>
<h1>Recently updated <a href="#">View All on GitHub</a></h1>
<ol id="recently-updated-repos"></ol>
</div>
</div>
Expand Down

0 comments on commit 0581b98

Please sign in to comment.