Skip to content

Commit

Permalink
ass settings link on toolbar and tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
andersoncardoso committed Sep 9, 2014
1 parent 2ab1e6f commit c34a1d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/presenters/toolbar_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def _history_tool
end

def _settings_tool
{ icon: :'cog', title: t('toolbar.settings'), url: "" }
settings_url = ctx.settings_path
{ icon: :'cog', title: t('toolbar.settings'), url: settings_url,
active?: ctx.request.path == settings_url }
end

def _flag_tool
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/header/_settings_tooltip.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ul class="settings-tooltip">

<% if current_user %>
<li><%= link_to icon('cog', t('header.settings_menu.settings')), '#', class: 'settings-item' %></li>
<li><%= link_to icon('cog', t('header.settings_menu.settings')), settings_path(current_user), class: 'settings-item' %></li>
<% end %>

<li><%= link_to_modal icon('flag-o', t('header.settings_menu.language')), "#language-selector", :html => {:class => 'settings-item'} %></li>
Expand Down

2 comments on commit c34a1d6

@LuizArmesto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esse typo na mensagem de commit... hahahahahahaha

Acho que vale um git rebase antes do merge no master. rs

@andersoncardoso
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhahuauahuauha ops!! ... 'd' fica do lado do 's' uhahuahua

Please sign in to comment.