diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-08-19 22:24:37 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-08-19 22:24:37 +0000 |
commit | e4c5a91d0e9214485a13dec0a68225eeee16ee99 (patch) | |
tree | 7ba87cf1f302a9e8626a6d539739ee614771cc8f | |
parent | 1c53668bc9300783cb36170f5e1cdb9bb723824d (diff) | |
download | redmine-e4c5a91d0e9214485a13dec0a68225eeee16ee99.tar.gz redmine-e4c5a91d0e9214485a13dec0a68225eeee16ee99.zip |
Refactor: extract Members Box to partial.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4009 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/projects/_members_box.html.erb | 8 | ||||
-rw-r--r-- | app/views/projects/show.rhtml | 9 |
2 files changed, 9 insertions, 8 deletions
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? %> + <div class="members box"> + <h3><%=l(:label_member_plural)%></h3> + <p><% @users_by_role.keys.sort.each do |role| %> + <%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ") %><br /> + <% end %></p> + </div> + <% 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 @@ </div> <div class="splitcontentright"> - <% if @users_by_role.any? %> - <div class="members box"> - <h3><%=l(:label_member_plural)%></h3> - <p><% @users_by_role.keys.sort.each do |role| %> - <%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ") %><br /> - <% end %></p> - </div> - <% end %> + <%= render :partial => 'members_box' %> <% if @news.any? && authorize_for('news', 'index') %> <div class="news box"> |