summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/index.html.haml
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2019-09-03 09:03:35 +0000
committerKushal Pandya <kushalspandya@gmail.com>2019-09-03 09:03:35 +0000
commit3741402a241df2ad6ab28e4b76edafe5083ce733 (patch)
tree90c67bb90414724df6559cf1d2e6f22d4b3aa035 /app/views/projects/issues/index.html.haml
parentaf5f2424cace62f8712dbabfd60bb0f1c36f1590 (diff)
downloadgitlab-ce-3741402a241df2ad6ab28e4b76edafe5083ce733.tar.gz
Make flash notifications sticky
This commit also unifies layout structure and remove no_container flag
Diffstat (limited to 'app/views/projects/issues/index.html.haml')
-rw-r--r--app/views/projects/issues/index.html.haml22
1 files changed, 10 insertions, 12 deletions
diff --git a/app/views/projects/issues/index.html.haml b/app/views/projects/issues/index.html.haml
index 39e9e9171cf..49e482ff1df 100644
--- a/app/views/projects/issues/index.html.haml
+++ b/app/views/projects/issues/index.html.haml
@@ -1,4 +1,3 @@
-- @no_container = true
- @can_bulk_update = can?(current_user, :admin_issue, @project)
- page_title "Issues"
@@ -8,18 +7,17 @@
= auto_discovery_link_tag(:atom, safe_params.merge(rss_url_options).to_h, title: "#{@project.name} issues")
- if project_issues(@project).exists?
- %div{ class: (container_class) }
- .top-area
- = render 'shared/issuable/nav', type: :issues
- = render "projects/issues/nav_btns"
- = render 'shared/issuable/search_bar', type: :issues
+ .top-area
+ = render 'shared/issuable/nav', type: :issues
+ = render "projects/issues/nav_btns"
+ = render 'shared/issuable/search_bar', type: :issues
- - if @can_bulk_update
- = render 'shared/issuable/bulk_update_sidebar', type: :issues
+ - if @can_bulk_update
+ = render 'shared/issuable/bulk_update_sidebar', type: :issues
- .issues-holder
- = render 'issues'
- - if new_issue_email
- = render 'projects/issuable_by_email', email: new_issue_email, issuable_type: 'issue'
+ .issues-holder
+ = render 'issues'
+ - if new_issue_email
+ = render 'projects/issuable_by_email', email: new_issue_email, issuable_type: 'issue'
- else
= render 'shared/empty_states/issues', button_path: new_project_issue_path(@project), show_import_button: true