Commit 95140187 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Scroll CA stage panel on mobile

parent b3700f96
#cycle-analytics { #cycle-analytics {
width: 1000px; max-width: 1000px;
margin: 24px auto 0; margin: 24px auto 0;
position: relative; position: relative;
...@@ -259,7 +259,14 @@ ...@@ -259,7 +259,14 @@
} }
} }
.stage-panel-container {
width: 100%;
overflow: auto;
}
.stage-panel { .stage-panel {
min-width: 968px;
.panel-heading { .panel-heading {
padding: 0; padding: 0;
background-color: transparent; background-color: transparent;
......
...@@ -42,48 +42,49 @@ ...@@ -42,48 +42,49 @@
%li %li
%a{ "href" => "#", "data-value" => "90" } %a{ "href" => "#", "data-value" => "90" }
Last 90 days Last 90 days
.panel.panel-default.stage-panel .stage-panel-container
.panel-heading .panel.panel-default.stage-panel
%nav.col-headers .panel-heading
%ul %nav.col-headers
%li.stage-header %ul
%span.stage-name %li.stage-header
Stage %span.stage-name
%i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The phase of the development lifecycle.", "aria-hidden" => "true" } Stage
%li.median-header %i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The phase of the development lifecycle.", "aria-hidden" => "true" }
%span.stage-name %li.median-header
Median %span.stage-name
%i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The value lying at the midpoint of a series of observed values. E.g., between 3, 5, 9, the median is 5. Between 3, 5, 7, 8, the median is (5+7)/2 = 6.", "aria-hidden" => "true" } Median
%li.event-header %i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The value lying at the midpoint of a series of observed values. E.g., between 3, 5, 9, the median is 5. Between 3, 5, 7, 8, the median is (5+7)/2 = 6.", "aria-hidden" => "true" }
%span.stage-name %li.event-header
{{ currentStage ? currentStage.legend : 'Related Issues' }} %span.stage-name
%i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The collection of events added to the data gathered for that stage.", "aria-hidden" => "true" } {{ currentStage ? currentStage.legend : 'Related Issues' }}
%li.total-time-header %i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The collection of events added to the data gathered for that stage.", "aria-hidden" => "true" }
%span.stage-name %li.total-time-header
Total Time %span.stage-name
%i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The time taken by each data entry gathered by that stage.", "aria-hidden" => "true" } Total Time
.stage-panel-body %i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The time taken by each data entry gathered by that stage.", "aria-hidden" => "true" }
%nav.stage-nav .stage-panel-body
%ul %nav.stage-nav
%li.stage-nav-item{ ':class' => '{ active: stage.active }', '@click' => 'selectStage(stage)', "v-for" => "stage in state.stages" } %ul
.stage-nav-item-cell.stage-name %li.stage-nav-item{ ':class' => '{ active: stage.active }', '@click' => 'selectStage(stage)', "v-for" => "stage in state.stages" }
{{ stage.title }} .stage-nav-item-cell.stage-name
.stage-nav-item-cell.stage-median {{ stage.title }}
%template{ "v-if" => "stage.isUserAllowed" } .stage-nav-item-cell.stage-median
%span{ "v-if" => "stage.value" } %template{ "v-if" => "stage.isUserAllowed" }
{{ stage.value }} %span{ "v-if" => "stage.value" }
%span.stage-empty{ "v-else" => true } {{ stage.value }}
Not enough data %span.stage-empty{ "v-else" => true }
%template{ "v-else" => true } Not enough data
%span.not-available %template{ "v-else" => true }
Not available %span.not-available
.section.stage-events Not available
%template{ "v-if" => "isLoadingStage" } .section.stage-events
= icon("spinner spin") %template{ "v-if" => "isLoadingStage" }
%template{ "v-if" => "currentStage && !currentStage.isUserAllowed" } = icon("spinner spin")
= render partial: "no_access" %template{ "v-if" => "currentStage && !currentStage.isUserAllowed" }
%template{ "v-else" => true } = render partial: "no_access"
%template{ "v-if" => "isEmptyStage && !isLoadingStage" } %template{ "v-else" => true }
= render partial: "empty_stage" %template{ "v-if" => "isEmptyStage && !isLoadingStage" }
%template{ "v-if" => "state.events.length && !isLoadingStage && !isEmptyStage" } = render partial: "empty_stage"
%component{ ":is" => "currentStage.component", ":stage" => "currentStage", ":items" => "state.events" } %template{ "v-if" => "state.events.length && !isLoadingStage && !isEmptyStage" }
%component{ ":is" => "currentStage.component", ":stage" => "currentStage", ":items" => "state.events" }
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