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
5aa655f0
Commit
5aa655f0
authored
Dec 11, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update empty state for service desk
parent
bbcaf4ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
23 deletions
+9
-23
ee/app/assets/stylesheets/pages/service_desk.scss
ee/app/assets/stylesheets/pages/service_desk.scss
+0
-18
ee/app/views/projects/issues/_service_desk_info_content.html.haml
...iews/projects/issues/_service_desk_info_content.html.haml
+9
-5
No files found.
ee/app/assets/stylesheets/pages/service_desk.scss
View file @
5aa655f0
.service-desk-issues
{
.empty-state
{
max-width
:
450px
;
text-align
:
center
;
}
.non-empty-state
{
text-align
:
left
;
padding-bottom
:
$gl-padding-top
;
border-bottom
:
1px
solid
$border-color
;
.service-desk-graphic
{
margin-top
:
$gl-padding
;
}
.media-body
{
margin-top
:
$gl-padding-top
;
margin-left
:
$gl-padding
;
}
}
.turn-on-btn-container
{
margin-top
:
$gl-padding-top
;
}
}
ee/app/views/projects/issues/_service_desk_info_content.html.haml
View file @
5aa655f0
...
...
@@ -4,13 +4,17 @@
-
callout_selector
=
is_empty_state
?
'empty-state'
:
'non-empty-state media'
-
svg_path
=
!
is_empty_state
?
'shared/empty_states/icons/service_desk_callout.svg'
:
'shared/empty_states/icons/service_desk_empty_state.svg'
-
can_edit_project_settings
=
can?
(
current_user
,
:admin_project
,
@project
)
-
title_text
=
"Use Service Desk to connect with your users (e.g. to offer customer support) through email right inside GitLab"
%div
{
class:
"#{callout_selector}"
}
.s
ervice-desk-graphic
.s
vg-content
=
render
svg_path
.media-body
%h5
Use Service Desk to connect with your users (e.g. to offer customer support) through email right inside GitLab.
%div
{
class:
is_empty_state
?
"text-content"
:
"prepend-top-10 prepend-left-default"
}
-
if
is_empty_state
%h4
=
title_text
-
else
%h5
=
title_text
-
if
service_desk_enabled
%p
...
...
@@ -21,5 +25,5 @@
=
link_to
'Read more'
,
help_page_path
(
'user/project/service_desk'
)
-
if
can_edit_project_settings
&&
!
service_desk_enabled
.turn-on-btn-container
=
link_to
"Turn on Service Desk"
,
edit_project_path
(
@project
),
class:
'btn btn-
new btn-inverted
'
%div
{
class:
is_empty_state
?
"text-center"
:
"prepend-top-10"
}
=
link_to
"Turn on Service Desk"
,
edit_project_path
(
@project
),
class:
'btn btn-
success
'
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