Skip to content

Commit 0581b98

Browse files
committed
Add links to watchers/forks
1 parent ab5ec4a commit 0581b98

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

assets/style.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,40 @@ a:hover {
8383
font-size: 20px;
8484
}
8585

86+
#recently-updated h1 {
87+
margin-bottom: 10px;
88+
}
89+
90+
#recently-updated h1 a {
91+
font-weight: normal;
92+
font-size: 11px;
93+
}
94+
8695
#recently-updated-repos {
8796
margin-left: 15px;
8897
}
8998

99+
#recently-updated-repos li {
100+
line-height: 1.5;
101+
}
102+
90103
#recently-updated-repos li span {
91104
display: inline-block;
92-
padding: 0 2px;
105+
padding: 0 1px;
106+
}
107+
108+
#recently-updated-repos li span {
109+
font-size: 11px;
93110
}
94111

95112
#recently-updated-repos li span.name {
96113
padding: 0 6px 0 0;
114+
font-size: 13px;
115+
}
116+
117+
#recently-updated-repos li span.watchers a,
118+
#recently-updated-repos li span.forks a {
119+
color: #666;
97120
}
98121

99122
div.header {

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
$item.append('<span class="name"><a href="' + repo.html_url + '">' + repo.name + '</a></span>');
1515
$item.append('<span class="time">' + strftime("%h %e, %Y", repo.pushed_at) + '</span>');
1616
$item.append('<span class="bullet">&sdot;</span>');
17-
$item.append('<span class="watchers">' + repo.watchers + ' watchers</span>');
17+
$item.append('<span class="watchers"><a href="http://github.com/%3C/span%3E' + repo.html_url + '/watchers">' + repo.watchers + ' watchers</a></span>');
1818
$item.append('<span class="bullet">&sdot;</span>');
19-
$item.append('<span class="forks">' + repo.forks + ' forks</span>');
19+
$item.append('<span class="forks"><a href="http://github.com/%3C/span%3E' + repo.html_url + '/network">' + repo.forks + ' forks</a></span>');
2020
$item.appendTo("#recently-updated-repos");
2121
}
2222

@@ -76,7 +76,7 @@ <h1>Statistics</h1>
7676
<p><a href="mailto:[email protected]">[email protected]</a></p>
7777
</div>
7878
<div id="recently-updated" class="grid-2 omega header">
79-
<h1>Recently updated</h1>
79+
<h1>Recently updated <a href="#">View All on GitHub</a></h1>
8080
<ol id="recently-updated-repos"></ol>
8181
</div>
8282
</div>

0 commit comments

Comments
 (0)