Skip to content

Commit

Permalink
Merge pull request #235 from gabceb/kandan-234
Browse files Browse the repository at this point in the history
Open About page on a new tab
  • Loading branch information
fusion94 committed Mar 19, 2013
2 parents b757826 + 7ac4113 commit df8f166
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion app/assets/javascripts/layout.js.coffee
Expand Up @@ -2,4 +2,7 @@ $(document).ready ->
$(".user_menu_link").click (e)->
e.preventDefault()
$(".user_menu").toggle()
false
false

$(".user_menu a").click (e)->
$(".user_menu").toggle()
6 changes: 3 additions & 3 deletions app/views/layouts/application.html.erb
Expand Up @@ -34,11 +34,11 @@
<%= yield :header_content %>
</div>
<div class="user_menu">
<%= link_to 'Admin console', admin_root_path if current_user.is_admin? %>
<%= link_to 'Edit Account', users_edit_path, @users_edit %><br />
<%= link_to 'Admin console', admin_root_path, :target => "_blank" if current_user.is_admin? %>
<%= link_to 'Edit Account', users_edit_path, :target => "_blank" %><br />
<%= link_to 'Logout', destroy_user_session_path, :method => :delete %><br />
<hr>
<%= link_to 'About Kandan', about_path, @about %>
<%= link_to 'About Kandan', about_path, :target => "_blank" %>
</div>
<% else %>
</div>
Expand Down

0 comments on commit df8f166

Please sign in to comment.