Commit 69b5c92e authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix duplicated issues partial and two cases need the button:

For both having existing issues and having no issues.
parent b04f95a2
......@@ -25,6 +25,11 @@
.issues-holder
= render "issues"
- if new_issue_email
.issues-footer.text-center
%button.issue-email-modal-btn{ type: "button", data: { toggle: "modal", target: "#issue-email-modal" } }
Email a new issue to this project
= render "issue_by_email", email: new_issue_email
- else
.blank-state.blank-state-welcome
%h2.blank-state-title.blank-state-welcome-title
......@@ -41,11 +46,6 @@
- if can? current_user, :create_issue, @project
= link_to new_namespace_project_issue_path(@project.namespace, @project), class: "btn btn-new", title: "New Issue", id: "new_issue_link" do
New Issue
= render 'shared/issuable/filter', type: :issues
.issues-holder
= render "issues"
- if new_issue_email
.issues-footer.text-center
%button.issue-email-modal-btn{ type: "button", data: { toggle: "modal", target: "#issue-email-modal" } }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment