diff --git a/Gemfile.plugins b/Gemfile.plugins new file mode 100644 index 0000000000..1b89dae126 --- /dev/null +++ b/Gemfile.plugins @@ -0,0 +1,7 @@ +# Used by travis to bundle this plugin with the OpenProject core. +# The tested plugin will be moved to the path `./plugins/this` +# whereas OpenProject will be checked out to `.`. + +gem 'openproject-my_project_page', path: 'plugins/this' + +# If the plugin has any dependencies declare them here: diff --git a/app/views/my_projects_overviews/blocks/_members.html.erb b/app/views/my_projects_overviews/blocks/_members.html.erb index f7021baf49..5b48a118a3 100644 --- a/app/views/my_projects_overviews/blocks/_members.html.erb +++ b/app/views/my_projects_overviews/blocks/_members.html.erb @@ -25,7 +25,7 @@ See doc/COPYRIGHT.md for more details.

- <%=l(:label_member_plural)%> + <%=t(:label_member_plural)%>

<% if @project.members.count > 0 && users_by_role(50).any? %> @@ -44,10 +44,10 @@ See doc/COPYRIGHT.md for more details. <% end %>

- <% if current_user.admin? %> - <%= link_to new_user_path, class: 'button -alt-highlight' do %> - - <%= l('activerecord.models.member') %> - <% end %> +<% end %> +<% if current_user.admin? %> + <%= link_to new_project_member_path(project_id: project.identifier), class: 'button -alt-highlight' do %> + + <%= t('activerecord.models.member') %> <% end %> <% end %>