|
27 | 27 | <% @stories.each do | story | %> |
28 | 28 | <tr class="project-table__row project-table__row--story" id="<%= dom_id(story)%>" > |
29 | 29 | <td class="project-table__cell"> |
| 30 | + <span class="popup">Copied to clipboard</span> |
30 | 31 | <input type="checkbox" name="stories[]" value="<%= story.id %>"> |
31 | 32 | <%= link_to "#{story.id} - #{story.title}", [story.project, story] %> |
32 | | - <button class="copy-link btn-clipboard" data-clipboard-text="<%= project_story_url(@project, story) %>" title='Copy story'><i class="fa fa-link"></i><span class= "popup">Copied to clipboard</span></button> |
33 | 33 | </td> |
34 | 34 | <td class="project-table__cell"><%= story.estimate_for(current_user)&.best_case_points %></td> |
35 | 35 | <td class="project-table__cell"><%= story.estimate_for(current_user)&.worst_case_points %></td> |
|
46 | 46 | <i class="fa fa-ellipsis-v"></i> |
47 | 47 | </button> |
48 | 48 | <div class="dropdown"> |
| 49 | + |
| 50 | + <button class="copy-link btn-clipboard" data-clipboard-text="<%= project_story_url(@project, story) %>" title='Copy story'> |
| 51 | + <i class="fa fa-link"></i>Copy Link</button> |
| 52 | + |
49 | 53 | <%= link_unless_archived(@project, "Edit", edit_project_story_path(@project, story), classes: "edit", icon: 'pencil-square-o') %> |
50 | 54 |
|
51 | 55 | <% if @siblings.any? %> |
|
63 | 67 | <% end %> |
64 | 68 |
|
65 | 69 | <%= link_unless_archived(@project, "Delete", project_story_path(@project.id, story), classes: "delete", icon: 'trash-o', method: :delete, remote: true, data_attr: { confirm: 'Are you sure?', story_id: story.id }) %> |
66 | | - |
67 | | - <% link_to new_project_story_path(@project.id, story_id: story.id), class: "clone", title: "Clone" do %> |
68 | | - <i class="fa fa-files-o"></i> |
69 | | - <span>Clone</span> |
70 | | - <% end %> |
71 | | - |
72 | 70 | <%= link_unless_archived(@project, "Clone", new_project_story_path(@project.id, story_id: story.id), classes: "clone", icon: 'files-o') %> |
73 | 71 | </div> |
74 | 72 | </div> |
|
102 | 100 |
|
103 | 101 | <div class="btn-group actions"> |
104 | 102 | <%= link_to 'Return to Projects Page', projects_path, id: :back, class: "button" %> |
105 | | - |
106 | 103 | <% if current_user.admin? %> |
107 | 104 | <%= button_to is_unlocked?(@project) ? 'Lock Project' : 'Unlock Project', toggle_locked_project_path(@project.id), method: :patch, class: "button magenta", id: "lock-btn", remote: true %> |
108 | 105 | <% end %> |
109 | | - |
110 | 106 | <%= link_to 'Clone Project', new_clone_project_path(@project.id), class: "button green" %> |
111 | 107 | <%= link_to 'Edit Project', edit_project_path(@project.id), class: "button green" %> |
112 | 108 |
|
|
0 commit comments