Commit bd013b8f69df9f861be29007222e7eb55fb18857
1 parent
9ffa9135
Exists in
master
and in
22 other branches
ActionItem111: changed some links in the inteface
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@714 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
22 additions
and
3 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -146,6 +146,25 @@ module ApplicationHelper | @@ -146,6 +146,25 @@ module ApplicationHelper | ||
146 | content_tag('span', (link_to _('Logout'), { :controller => 'account', :action => 'logout'}, :method => 'post'), :id => 'logout_box') | 146 | content_tag('span', (link_to _('Logout'), { :controller => 'account', :action => 'logout'}, :method => 'post'), :id => 'logout_box') |
147 | end | 147 | end |
148 | 148 | ||
149 | + def account_links | ||
150 | + | ||
151 | + | ||
152 | + end | ||
153 | + | ||
154 | + def admin_links | ||
155 | + end | ||
156 | + | ||
157 | + def user_options | ||
158 | + case params[:controller] | ||
159 | + when 'account' | ||
160 | + account_links | ||
161 | + when 'admin' | ||
162 | + admin_links | ||
163 | + else | ||
164 | + nil | ||
165 | + end | ||
166 | + end | ||
167 | + | ||
149 | def footer | 168 | def footer |
150 | # FIXME: add some information from the environment | 169 | # FIXME: add some information from the environment |
151 | [ | 170 | [ |
app/views/shared/categories_menu.rhtml
1 | <ul> | 1 | <ul> |
2 | - <li id='category' class="active"> | ||
3 | - Noosfero | 2 | + <li id='category' <%= 'class="active"' unless @category %> > |
3 | + <%= Noosfero::PROJECT.capitalize %> | ||
4 | <ul> | 4 | <ul> |
5 | - <li><%= link_to Noosfero::PROJECT, :controller => 'home' %> <%= header %></li> | 5 | + <li><%= link_to _('Home'), :controller => 'home' %> <%= header %></li> |
6 | </ul> | 6 | </ul> |
7 | </li> | 7 | </li> |
8 | <% @environment.display_categories.each do |item| %> | 8 | <% @environment.display_categories.each do |item| %> |