Commit a9da2e20482a9cc3391173232329d1fbe21549c9
1 parent
86260b19
Exists in
master
and in
29 other branches
ActionItem93: removing unused code
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1055 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
0 additions
and
43 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -133,49 +133,6 @@ module ApplicationHelper |
133 | 133 | end |
134 | 134 | end |
135 | 135 | |
136 | - def admin_links | |
137 | - environment = current_user.person.environment | |
138 | - links = [ | |
139 | - [(link_to _('Features'), :controller => 'features'), 'edit_environment_features', environment], | |
140 | - [(link_to _('Edit visual'), :controller => 'edit_template'), 'edit_environment_design', environment], | |
141 | - [(link_to _('Manage categories'), :controller => 'categories'), 'manage_environment_categories', environment], | |
142 | - [(link_to _('Manage permissions'), :controller => 'role'), 'manage_environment_roles', environment], | |
143 | - [(link_to _('Manage validators'), :controller => 'region_validators'), 'manage_environment_validators', environment], | |
144 | - ] | |
145 | - end | |
146 | - | |
147 | - def person_links | |
148 | - links = [ | |
149 | - [(link_to_myprofile _('Edit visual design'), {:controller => 'profile_editor', :action => 'design_editor'}, profile.identifier), 'edit_profile_design', profile], | |
150 | - [(link_to_myprofile _('Edit profile'), {:controller => 'profile_editor'}, profile.identifier), 'edit_profile', profile], | |
151 | - [(link_to_myprofile _('Manage content'), {:controller => 'cms'}, profile.identifier), 'post_content', profile], | |
152 | - ] | |
153 | - end | |
154 | - | |
155 | - | |
156 | - def enterprise_links | |
157 | - links = [ | |
158 | - [(link_to_myprofile _('Edit visual design'), {:controller => 'profile_editor', :action => 'design_editor'}, profile.identifier), 'edit_profile_design', profile], | |
159 | - [(link_to_myprofile _('Edit informations'), {:controller => 'profile_editor'}, profile.identifier), 'edit_profile', profile], | |
160 | - [(link_to_myprofile _('Manage content'), {:controller => 'cms'}, profile.identifier), 'post_content', profile], | |
161 | -# [(link_to_myprofile _('Exclude'), {:controller => 'enterprise_editor', :action => 'destroy'}, profile.identifier), 'edit_profile', profile], | |
162 | - ] | |
163 | - end | |
164 | - | |
165 | - def myprofile_links | |
166 | - links = [ | |
167 | - [(link_to _('Change password'), {:controller => 'account', :action => 'change_password'}), 'edit_profile', profile] | |
168 | - ] | |
169 | - end | |
170 | - | |
171 | - def design_links | |
172 | - links = [ | |
173 | - [(link_to _('Change template'), :controller => 'profile_editor', :action => 'design_editor_change_template')], | |
174 | - [(link_to _('Change block theme'), :controller => 'profile_editor', :action => 'design_editor_change_theme')], | |
175 | - [(link_to _('Change icon theme'), :controller => 'profile_editor', :action => 'design_editor_change_icon_theme')], | |
176 | - ] | |
177 | - end | |
178 | - | |
179 | 136 | def search_box |
180 | 137 | [form_tag({:controller => 'search', :action => 'index'}, :method => 'get'), |
181 | 138 | design_display_button_submit('find', '', :title => _('Search')), | ... | ... |