Commit 42b56ea9ee0cb634b21ef384569933c3242dca0a
1 parent
5c115a98
Exists in
staging
and in
42 other branches
Fix creation of admin url on profile_image and profile_info blocks
(ActionItem3015)
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/views/blocks/profile_image.rhtml
| ... | ... | @@ -16,7 +16,7 @@ |
| 16 | 16 | |
| 17 | 17 | <% if !user.nil? and user.has_permission?('edit_profile', profile) %> |
| 18 | 18 | <div class='admin-link'> |
| 19 | - <%= link_to _('Control panel'), :controller => 'profile_editor' %> | |
| 19 | + <%= link_to _('Control panel'), block.owner.admin_url %> | |
| 20 | 20 | </div> |
| 21 | 21 | <% end %> |
| 22 | 22 | ... | ... |
app/views/blocks/profile_info.rhtml
| ... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 | <li><%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) %></li> |
| 22 | 22 | <% end %> |
| 23 | 23 | <% if !user.nil? and user.has_permission?('edit_profile', profile) %> |
| 24 | - <li><%= link_to _('Control panel'), :controller => 'profile_editor' %></li> | |
| 24 | + <li><%= link_to _('Control panel'), block.owner.admin_url %></li> | |
| 25 | 25 | <% end %> |
| 26 | 26 | <% if profile.person? %> |
| 27 | 27 | <li><%= _('Since %{year}/%{month}') % { :year => block.owner.created_at.year, :month => block.owner.created_at.month } %></li> |
| ... | ... | @@ -40,7 +40,7 @@ |
| 40 | 40 | <% end %> |
| 41 | 41 | |
| 42 | 42 | <div class="profile-info-options"> |
| 43 | - <%= render :file => view_for_profile_actions(@block.owner.class) %> | |
| 43 | + <%= render :file => view_for_profile_actions(block.owner.class) %> | |
| 44 | 44 | </div> |
| 45 | 45 | |
| 46 | 46 | </div><!-- end class="vcard" --> | ... | ... |