Commit 5aa655f0 authored by Filipa Lacerda's avatar Filipa Lacerda

Update empty state for service desk

parent bbcaf4ae
.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;
}
}
......@@ -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}" }
.service-desk-graphic
.svg-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'
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