From 42b56ea9ee0cb634b21ef384569933c3242dca0a Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 20 Feb 2014 13:20:49 -0300 Subject: [PATCH] Fix creation of admin url on profile_image and profile_info blocks --- app/views/blocks/profile_image.rhtml | 2 +- app/views/blocks/profile_info.rhtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/blocks/profile_image.rhtml b/app/views/blocks/profile_image.rhtml index be1f7ef..21a8d6b 100644 --- a/app/views/blocks/profile_image.rhtml +++ b/app/views/blocks/profile_image.rhtml @@ -16,7 +16,7 @@ <% if !user.nil? and user.has_permission?('edit_profile', profile) %> <% end %> diff --git a/app/views/blocks/profile_info.rhtml b/app/views/blocks/profile_info.rhtml index 91a519b..d983432 100644 --- a/app/views/blocks/profile_info.rhtml +++ b/app/views/blocks/profile_info.rhtml @@ -21,7 +21,7 @@
  • <%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) %>
  • <% end %> <% if !user.nil? and user.has_permission?('edit_profile', profile) %> -
  • <%= link_to _('Control panel'), :controller => 'profile_editor' %>
  • +
  • <%= link_to _('Control panel'), block.owner.admin_url %>
  • <% end %> <% if profile.person? %>
  • <%= _('Since %{year}/%{month}') % { :year => block.owner.created_at.year, :month => block.owner.created_at.month } %>
  • @@ -40,7 +40,7 @@ <% end %>
    - <%= render :file => view_for_profile_actions(@block.owner.class) %> + <%= render :file => view_for_profile_actions(block.owner.class) %>
    -- libgit2 0.21.2