diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb
index 519d006..969a785 100644
--- a/app/controllers/public/content_viewer_controller.rb
+++ b/app/controllers/public/content_viewer_controller.rb
@@ -43,11 +43,6 @@ class ContentViewerController < ApplicationController
return
end
- if request.xhr? && params[:toolbar]
- render :partial => 'article_toolbar'
- return
- end
-
redirect_to_translation if @page.profile.redirect_l10n
# At this point the page will be showed
diff --git a/app/views/blocks/profile_image.rhtml b/app/views/blocks/profile_image.rhtml
index 5c5194d..be1f7ef 100644
--- a/app/views/blocks/profile_image.rhtml
+++ b/app/views/blocks/profile_image.rhtml
@@ -14,11 +14,13 @@
<%= h block.owner.short_name %>
<% end %>
-
-
-
+<% if !user.nil? and user.has_permission?('edit_profile', profile) %>
+
+ <%= link_to _('Control panel'), :controller => 'profile_editor' %>
+
+<% end %>
+
+ <%= render :file => view_for_profile_actions(block.owner.class) %>
+
-
diff --git a/app/views/blocks/profile_info.rhtml b/app/views/blocks/profile_info.rhtml
index 012ffc8..edbaa1b 100644
--- a/app/views/blocks/profile_info.rhtml
+++ b/app/views/blocks/profile_info.rhtml
@@ -14,13 +14,15 @@
-
+
- <%= link_to __('Homepage'), block.owner.url, :class => 'url' %>
- <%= link_to _('View profile'), block.owner.public_profile_url %>
<% if block.owner.enterprise? && !block.owner.environment.enabled?('disable_products_for_enterprises') %>
- <%= 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' %>
+ <% end %>
<% if profile.person? %>
- <%= _('Since %{year}/%{month}') % { :year => block.owner.created_at.year, :month => block.owner.created_at.month } %>
<% end %>
@@ -37,9 +39,8 @@
<% end %>
-
+
+ <%= render :file => view_for_profile_actions(@block.owner.class) %>
+
-
diff --git a/app/views/content_viewer/view_page.rhtml b/app/views/content_viewer/view_page.rhtml
index 2528e7b..78dbfda 100644
--- a/app/views/content_viewer/view_page.rhtml
+++ b/app/views/content_viewer/view_page.rhtml
@@ -14,11 +14,9 @@
window.NO_COMMENT_YET = "<%= _('No comments yet') %>";
-
-
-
+
+ <%= render :partial => 'article_toolbar' %>
+
<% if @page.display_hits? || @page.license.present? %>
diff --git a/app/views/profile/profile_info.rjs b/app/views/profile/profile_info.rjs
deleted file mode 100644
index b402006..0000000
--- a/app/views/profile/profile_info.rjs
+++ /dev/null
@@ -1,6 +0,0 @@
-if !user.nil? and user.has_permission?('edit_profile', profile)
- page.replace_html "profile-admin-url-#{@block.id}", link_to(_('Control panel'), @block.owner.admin_url)
-else
- page.hide "profile-admin-url-#{@block.id}"
-end
-page.replace_html "profile-info-options-#{@block.id}", :file => view_for_profile_actions(@block.owner.class)
diff --git a/public/designs/themes/base/style.css b/public/designs/themes/base/style.css
index fd6c39b..a05b4f8 100644
--- a/public/designs/themes/base/style.css
+++ b/public/designs/themes/base/style.css
@@ -575,6 +575,12 @@ div#notice {
color: #555;
}
+.profile-image-block .admin-link {
+ text-align: center;
+ font-size: 75%;
+ clear: both;
+}
+
/*************************** My Network ******************************/
--
libgit2 0.21.2