Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 3 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
10 coffee/site.coffee
View
@@ -90,9 +90,12 @@ class Event extends Spine.Model
FollowEvent:"follow"
WatchEvent: "watch"
GollumEvent:"gollum"
+ PublicEvent:"public"
- DeleteEvent:"skip"
- MemberEvent:"skip"
+ DeleteEvent: "skip"
+ MemberEvent: "skip"
+ DownloadEvent:"skip"
+ TeamAddEvent: "skip"
}
return defaultTypes[@type] if defaultTypes[@type]
@@ -124,8 +127,7 @@ class Event extends Spine.Model
viewInfo: ->
view = @viewType()
context = switch view
- when "repository", "watch"
- {}
+ when "repository", "watch", "public" then {}
when "item"
{title:@type}
when "gist"
6 coffee/views.coffee
View
@@ -129,6 +129,12 @@ views["repository"] = """
</li>
"""
+views["public"] = """
+<li class="prominent" data-id="{{id}}">
+ <div class="well">Made public: <a href="{{repo_url}}">{{repo}}</a> <div>{{date}}</div></div>
+</li>
+"""
+
views["watch"] = """
<li class="item" data-id="{{id}}" data-type="{{type}}">
<span class="corner"></span>
4 index.html
View
@@ -28,8 +28,8 @@
<script src="js-lib/spine/spine.js" type="text/javascript"></script>
<script src="js-lib/spine/route.js" type="text/javascript"></script>
<script src="js-lib/mustache.js" type="text/javascript"></script>
- <script src="js/views.js?10" type="text/javascript"></script>
- <script src="js/site.js?11" type="text/javascript"></script>
+ <script src="js/views.js?12" type="text/javascript"></script>
+ <script src="js/site.js?12" type="text/javascript"></script>
<!-- footer to try and trick gh-pages fork -->
</body>
6 js/site.js
View
@@ -173,8 +173,11 @@
FollowEvent: "follow",
WatchEvent: "watch",
GollumEvent: "gollum",
+ PublicEvent: "public",
DeleteEvent: "skip",
- MemberEvent: "skip"
+ MemberEvent: "skip",
+ DownloadEvent: "skip",
+ TeamAddEvent: "skip"
};
if (defaultTypes[this.type]) {
return defaultTypes[this.type];
@@ -243,6 +246,7 @@
switch (view) {
case "repository":
case "watch":
+ case "public":
return {};
case "item":
return {
2  js/views.js
View
@@ -28,6 +28,8 @@
views["repository"] = "<li class=\"prominent\" data-id=\"{{id}}\">\n <div class=\"well\">Created: <a href=\"{{repo_url}}\">{{repo}}</a> <div>{{date}}</div></div>\n</li>";
+ views["public"] = "<li class=\"prominent\" data-id=\"{{id}}\">\n <div class=\"well\">Made public: <a href=\"{{repo_url}}\">{{repo}}</a> <div>{{date}}</div></div>\n</li>";
+
views["watch"] = "<li class=\"item\" data-id=\"{{id}}\" data-type=\"{{type}}\">\n <span class=\"corner\"></span>\n <h1>Began watching <a href=\"{{repo_url}}\">{{repo}}</a></h1>\n <span class=\"date\">{{date}}</span>\n</li>";
views["branch"] = "<li class=\"item\" data-id=\"{{id}}\" data-type=\"{{type}}\">\n <span class=\"corner\"></span>\n <h1>Branched <a href=\"{{url}}\">{{name}}</a> from <a href=\"{{repo_url}}\">{{repo}}</a></h1>\n <span class=\"date\">{{date}}</span>\n</li>";

No commit comments for this range

Something went wrong with that request. Please try again.