diff --git a/app/views/profile/members.html.erb b/app/views/profile/members.html.erb
index 8fe5478..9efd3cb 100644
--- a/app/views/profile/members.html.erb
+++ b/app/views/profile/members.html.erb
@@ -6,23 +6,6 @@
<% cache_timeout(profile.members_cache_key(params), 4.hours) do %>
<% tabs = [] %>
- <% div_admins = content_tag :div, :class => "profile-admins" do
- render :partial => 'profile_members_list',
- :locals => {
- :users => @profile_admins,
- :role => "admins"
- }
- end %>
-
- <% admins_pagination = content_tag :div, :class => "pagination-profile-admins" do
- pagination_links @profile_admins, :param_name => 'npage'
- end %>
-
- <% tabs << {:title => "#{@profile_admins.size} "+_("Administrators"),
- :id => "admins-tab",
- :content => (div_admins+admins_pagination)
- } %>
-
<% div_members = content_tag :div, :class => "profile-members" do
render :partial => 'profile_members_list',
@@ -30,24 +13,38 @@
:users => @profile_members,
:role => "members"
}
-
end %>
<% members_pagination = content_tag :div, :class => "pagination-profile-members" do
pagination_links @profile_members, :param_name => 'npage'
end %>
-
<% tabs << {:title => "#{@profile_members.size} "+_("Members"),
:id => "members-tab",
:content => (div_members + members_pagination)
} %>
+ <% div_admins = content_tag :div, :class => "profile-admins" do
+ render :partial => 'profile_members_list',
+ :locals => {
+ :users => @profile_admins,
+ :role => "admins"
+ }
+ end %>
+
+ <% admins_pagination = content_tag :div, :class => "pagination-profile-admins" do
+ pagination_links @profile_admins, :param_name => 'npage'
+ end %>
+
+ <% tabs << {:title => "#{@profile_admins.size} "+_("Administrators"),
+ :id => "admins-tab",
+ :content => (div_admins+admins_pagination)
+ } %>
+
<%= render_tabs(tabs) %>
<% end %>
-
<% button_bar do %>
<%= button :back, _('Go back'), { :controller => 'profile' } %>
<% if profile.community? and user %>
--
libgit2 0.21.2