Skip to content

Commit

Permalink
likes stream gets a selected state in the nav
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrippi committed Jul 3, 2012
1 parent 1e01013 commit 632ed12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/app/views/header_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ app.views.Header = app.views.Base.extend({
bookmarkletJS : this.bookmarkletJS(),
onLatest : function() { return document.location.pathname.search("stream") !== -1},
onPopular : function() { return document.location.pathname.search("popular") !== -1 },
onHearts : function() { return document.location.pathname.search("hearts") !== -1 }
onLikes : function() { return document.location.pathname.search("likes") !== -1 }
})
},

Expand Down
2 changes: 1 addition & 1 deletion app/assets/templates/header.jst.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<ul class="nav" style="z-index:100;">
<li {{#if onLatest}}class="active"{{/if}}><a href="/"><i class="icon-time icon-white"></i> Latest</a></li>
<li {{#if onPopular}}class="active"{{/if}}><a href="/popular"><i class="icon-star icon-white"></i> Popular</a></li>
<li {{#if onHearts}}class="active"{{/if}}><a href="/likes"><i class="icon-heart icon-white"></i> My Likes</a></li>
<li {{#if onLikes}}class="active"{{/if}}><a href="/likes"><i class="icon-heart icon-white"></i> My Likes</a></li>
</ul>
</div>
</div>

0 comments on commit 632ed12

Please sign in to comment.