added lock to private posts on show pages

This commit is contained in:
danielgrippi 2012-02-27 15:01:05 -08:00
parent 278c7ee0c4
commit 7bbf69e35e
2 changed files with 4 additions and 0 deletions

View file

@ -18,5 +18,8 @@
<div class="post-time">
<time datetime="{{created_at}}" />
{{#unless public}}
<i class="icon-lock"> </i>
{{/unless}}
</div>
</div>

View file

@ -32,6 +32,7 @@ app.views.PostViewerFeedback = app.views.Feedback.extend({
hidePane : function(evt){ this.trigger("hidePane") },
requireAuth : function(evt) {
if( app.currentUser.authenticated() ) { return }
alert("you must be logged in to do that!")
return false;
}