The link will say "Create A New Project" for users with admin rights,
and "Request A New Project" for users without admin rights.
Signed-off-by: Darryl L. Pierce <mcpierce(a)gmail.com>
---
app/views/projects/index.html.erb | 2 +-
doc/ChangeLog | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb
index a069927..2a317a5 100644
--- a/app/views/projects/index.html.erb
+++ b/app/views/projects/index.html.erb
@@ -44,7 +44,7 @@
<% render :layout => 'home/sidebar', :locals => {:title =>
'Options'} do %>
<% if @user %>
- <%= link_to "Request A New Project", new_project_path, :class =>
"command" %>
+ <%= link_to "#{(a)user.privileges.admin_projects ? 'Create' :
'Request'} A New Project", new_project_path, :class => "command"
%>
<% end %>
<% if @show_all_projects %>
diff --git a/doc/ChangeLog b/doc/ChangeLog
index d2ac225..3e757ac 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -44,6 +44,7 @@ Change Log (0.3.0):
* #216 - The user's most recent postings are displayed on their details page.
* #217 - All of a user's posts can be viewed.
* #218 - Sprints need a new stage called "proposed". (backed out)
+ * #220 - When a user has project admin rights, then the link will say "Create"
not "Request". (BUG)
* #222 - Fixed creating/editing products using the wrong URL. (BUG)
Change Log (0.2.0):
--
1.6.2.5
Show replies by date