Skip to content

Commit

Permalink
Handling public event
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Moazeni committed May 11, 2012
1 parent 8fcef11 commit 3b8234f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coffee/site.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class Event extends Spine.Model
FollowEvent:"follow"
WatchEvent: "watch"
GollumEvent:"gollum"
PublicEvent:"public"

DeleteEvent: "skip"
MemberEvent: "skip"
Expand Down Expand Up @@ -126,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"
Expand Down
6 changes: 6 additions & 0 deletions coffee/views.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions js/site.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions js/views.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b8234f

Please sign in to comment.