Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cbf0a9c7
Commit
cbf0a9c7
authored
Oct 18, 2019
by
Gosia Ksionek
Committed by
Kushal Pandya
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not show new issue button on archived projects
parent
a35c8f7c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+2
-1
app/views/shared/empty_states/_issues.html.haml
app/views/shared/empty_states/_issues.html.haml
+1
-2
changelogs/unreleased/stop-showing-new-issue-button-when-project-is-archived.yml
...top-showing-new-issue-button-when-project-is-archived.yml
+5
-0
No files found.
app/views/projects/issues/index.html.haml
View file @
cbf0a9c7
...
...
@@ -20,4 +20,5 @@
-
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
-
new_project_issue_button_path
=
@project
.
archived?
?
false
:
new_project_issue_path
(
@project
)
=
render
'shared/empty_states/issues'
,
new_project_issue_button_path:
new_project_issue_button_path
,
show_import_button:
true
app/views/shared/empty_states/_issues.html.haml
View file @
cbf0a9c7
-
button_path
=
local_assigns
.
fetch
(
:button_path
,
false
)
-
button_path
=
local_assigns
.
fetch
(
:
new_project_issue_
button_path
,
false
)
-
project_select_button
=
local_assigns
.
fetch
(
:project_select_button
,
false
)
-
show_import_button
=
local_assigns
.
fetch
(
:show_import_button
,
false
)
&&
can?
(
current_user
,
:import_issues
,
@project
)
-
has_button
=
button_path
||
project_select_button
...
...
@@ -56,4 +56,3 @@
-
if
show_import_button
=
render
'projects/issues/import_csv/modal'
changelogs/unreleased/stop-showing-new-issue-button-when-project-is-archived.yml
0 → 100644
View file @
cbf0a9c7
---
title
:
Do not show new issue button on archived projects
merge_request
:
18590
author
:
type
:
changed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment