From: Eric Davis Date: Sun, 22 Aug 2010 19:49:03 +0000 (+0000) Subject: Merged r4009 from trunk. X-Git-Tag: 1.0.1~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b419deb907480cdc29163e079d429c8634f65aed;p=redmine.git Merged r4009 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4021 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/projects/_members_box.html.erb b/app/views/projects/_members_box.html.erb new file mode 100644 index 000000000..dd8d93e34 --- /dev/null +++ b/app/views/projects/_members_box.html.erb @@ -0,0 +1,8 @@ + <% if @users_by_role.any? %> +
+

<%=l(:label_member_plural)%>

+

<% @users_by_role.keys.sort.each do |role| %> + <%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ") %>
+ <% end %>

+
+ <% end %> diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml index fa9771521..62ea27848 100644 --- a/app/views/projects/show.rhtml +++ b/app/views/projects/show.rhtml @@ -51,14 +51,7 @@
- <% if @users_by_role.any? %> -
-

<%=l(:label_member_plural)%>

-

<% @users_by_role.keys.sort.each do |role| %> - <%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ") %>
- <% end %>

-
- <% end %> + <%= render :partial => 'members_box' %> <% if @news.any? && authorize_for('news', 'index') %>