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
75c92de2
Commit
75c92de2
authored
Aug 29, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support conditional rendering of top nav buttons.
parent
0e75de4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
app/views/projects/issues/_nav_btns.html.haml
app/views/projects/issues/_nav_btns.html.haml
+11
-3
ee/app/views/projects/issues/service_desk.html.haml
ee/app/views/projects/issues/service_desk.html.haml
+4
-8
No files found.
app/views/projects/issues/_nav_btns.html.haml
View file @
75c92de2
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn btn-default append-right-10 has-tooltip'
,
title:
'Subscribe'
do
=
icon
(
'rss'
)
=
render
'projects/issues/export_issues/button'
-
show_rss_button
=
local_assigns
.
fetch
(
:show_rss_button
,
true
)
-
show_export_button
=
local_assigns
.
fetch
(
:show_export_button
,
true
)
-
if
show_rss_button
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn btn-default append-right-10 has-tooltip'
,
title:
'Subscribe'
do
=
icon
(
'rss'
)
-
if
show_export_button
=
render
'projects/issues/export_issues/button'
-
if
@can_bulk_update
=
button_tag
"Edit issues"
,
class:
"btn btn-default append-right-10 js-bulk-update-toggle"
=
link_to
"New issue"
,
new_project_issue_path
(
@project
,
issue:
{
assignee_id:
issues_finder
.
assignee
.
try
(
:id
),
milestone_id:
issues_finder
.
milestones
.
first
.
try
(
:id
)
}),
...
...
ee/app/views/projects/issues/service_desk.html.haml
View file @
75c92de2
-
@no_container
=
true
-
@can_bulk_update
=
can?
(
current_user
,
:admin_issue
,
@project
)
-
@can_bulk_update
=
false
-
page_title
"Service Desk"
...
...
@@ -9,14 +9,10 @@
=
webpack_bundle_tag
'service_desk_issues'
=
webpack_bundle_tag
'issues'
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
params
.
merge
(
rss_url_options
),
title:
"
#{
@project
.
name
}
issues"
)
-
if
show_new_nav?
-
content_for
:breadcrumbs_extra
do
=
render
"projects/issues/nav_btns"
-
if
project_issues
(
@project
).
exists?
=
render
'projects/issues/export_issues/csv_download'
=
render
"projects/issues/nav_btns"
,
show_export_button:
false
,
show_rss_button:
false
-
support_bot_attrs
=
User
.
support_bot
.
to_json
(
only:
[
:id
,
:name
,
:username
,
:avatar_url
])
...
...
@@ -31,7 +27,7 @@
=
render
'shared/issuable/bulk_update_sidebar'
,
type: :issues
-
if
@issues
.
present?
=
render
'service_desk_
empty_state
_content'
=
render
'service_desk_
info
_content'
.issues-holder
=
render
'projects/issues/issues'
,
empty_state_path:
'service_desk_empty_state'
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