diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-09-30 23:03:01 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-09-30 23:03:01 -0500 |
commit | 371a17b0dff267c07f7c354a8477823f8a8ab86f (patch) | |
tree | b718e36c0d465478c8e02526c60be81dd3ca83c0 | |
parent | defc4529afbed56a9c2ab906dee1b97eb2381066 (diff) | |
download | tozt.net-371a17b0dff267c07f7c354a8477823f8a8ab86f.tar.gz tozt.net-371a17b0dff267c07f7c354a8477823f8a8ab86f.zip |
clean up a few more things
-rw-r--r-- | root/static/github_activity.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/root/static/github_activity.js b/root/static/github_activity.js index 5c4cc55..c51bc26 100644 --- a/root/static/github_activity.js +++ b/root/static/github_activity.js @@ -17,7 +17,9 @@ var GithubActivity = (function($, _) { <% if (type == "PushEvent") { %> \ <a href="<%= url %>"><b>pushed</b></a> \ to <a href="<%= repository.url %><% if (payload.ref != "refs/heads/master") { print("/tree/"); print(payload.ref.replace("refs/heads/", "")); } %>"> \ - <%= repository.name %>/<% print(payload.ref.replace("refs/heads/", "")); %></a> \ + <% print(payload.ref.replace("refs/heads/", "")); %></a> \ + at <a href="<%= repository.url %>"> \ + <%= repository.owner %>/<%= repository.name %></a> \ <dl><% _.each(payload.shas, function(sha) { %> \ <dt> \ <a href="<%= repository.url %>/commit/<%= sha[0] %>"> \ @@ -33,12 +35,15 @@ var GithubActivity = (function($, _) { <% } else if (type == "PullRequestEvent") { %> \ <b><%= payload.action %> pull request</b> \ <a href="<%= payload.pull_request.html_url %>"> \ - #<%= payload.number %>: <%= payload.pull_request.title %></a> \ + #<%= payload.number %></a> for \ + <a href="<%= repository.url %>"> \ + <%= repository.owner %>/<%= repository.name %></a>: \ + <%= payload.pull_request.title %></a> \ <% } else if (type == "IssueCommentEvent") { %> \ <b>commented on issue</b> <a href="<%= url %>"> \ #<% print(url.replace(/.*\\/issues\\/(\\d+)#.*/, "$1")); %> \ - </a> in \ - <a href="<%= repository.url%>"><%= repository.name %></a> \ + </a> in <a href="<%= repository.url%>"> \ + <%= repository.owner %>/<%= repository.name %></a> \ <% } else { %> \ Unknown event type <% type %> \ <% } %>\ |