Skip to content

Commit

Permalink
fixed the options under the menu on the project show page
Browse files Browse the repository at this point in the history
  • Loading branch information
rishijain committed Oct 10, 2023
1 parent e85e490 commit fbc56fb
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions app/views/projects/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,10 @@
<i class="fa fa-ellipsis-v"></i>
</button>
<div class="dropdown">
<%= link_to edit_project_story_path(@project.id, story), class: "button edit", title: "Edit" do %>
<i class="fa fa-pencil-square-o"></i>
<span>Edit</span>
<% end %>



<button class="copy-link btn-clipboard" data-clipboard-text="<%= project_story_url(@project, story) %>" title='Copy story'>
<i class="fa fa-link"></i>Copy Link</button>




<%= link_to new_project_story_path(@project.id, story_id: story.id), class: "clone", title: "Clone" do %>
<i class="fa fa-files-o"></i>
<span>Clone</span>
<% end %>
<%= link_unless_archived(@project, "Edit", edit_project_story_path(@project, story), classes: "edit", icon: 'pencil-square-o') %>
<% if @siblings.any? %>
Expand All @@ -80,12 +67,6 @@
<% end %>
<%= 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 }) %>
<% link_to new_project_story_path(@project.id, story_id: story.id), class: "clone", title: "Clone" do %>
<i class="fa fa-files-o"></i>
<span>Clone</span>
<% end %>
<%= link_unless_archived(@project, "Clone", new_project_story_path(@project.id, story_id: story.id), classes: "clone", icon: 'files-o') %>
</div>
</div>
Expand Down Expand Up @@ -119,11 +100,9 @@

<div class="btn-group actions">
<%= link_to 'Return to Projects Page', projects_path, id: :back, class: "button" %>
<% if current_user.admin? %>
<%= 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 %>
<% end %>
<%= link_to 'Clone Project', new_clone_project_path(@project.id), class: "button green" %>
<%= link_to 'Edit Project', edit_project_path(@project.id), class: "button green" %>
Expand Down

0 comments on commit fbc56fb

Please sign in to comment.