copy-project.diff

Nick Peelman, 2010-08-09 15:04

Download (1.06 KB)

View differences:

app/views/projects/show.rhtml (working copy)
1 1
<div class="contextual">
2
	<% if User.current.allowed_to?(:add_project, @project) %>
3
    <%= link_to(l(:label_project_copy), { :controller => 'projects', :action => 'copy', :id => @project }, :class => 'icon icon-copy') %>
4
	<% end %>
5
	
2 6
	<% if User.current.allowed_to?(:add_subprojects, @project) %>
3 7
		<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'add', :parent_id => @project}, :class => 'icon icon-add' %>
4 8
	<% end %>
config/locales/en.yml (working copy)
411 411
  label_user_anonymous: Anonymous
412 412
  label_project: Project
413 413
  label_project_new: New project
414
  label_project_copy: Copy project
414 415
  label_project_plural: Projects
415 416
  label_x_projects:
416 417
    zero:  no projects