diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-09-15 00:03:42 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-09-15 00:05:23 +0300 |
commit | 798b17a35311d60fe18440bfc53dba3aadd7b099 (patch) | |
tree | b142b341d4d5884d5aedc75f4ec3be9fe03c89e5 /app/views/projects/cycle_analytics | |
parent | 74626106bb688b0b76b30fc00a71627d94806b3a (diff) | |
download | gitlab-ce-798b17a35311d60fe18440bfc53dba3aadd7b099.tar.gz |
Implement Cycle Analytics frontend.
Diffstat (limited to 'app/views/projects/cycle_analytics')
-rw-r--r-- | app/views/projects/cycle_analytics/show.html.haml | 107 |
1 files changed, 56 insertions, 51 deletions
diff --git a/app/views/projects/cycle_analytics/show.html.haml b/app/views/projects/cycle_analytics/show.html.haml index 50ac9904445..4dd9847b42d 100644 --- a/app/views/projects/cycle_analytics/show.html.haml +++ b/app/views/projects/cycle_analytics/show.html.haml @@ -1,51 +1,56 @@ -%h2 Cycle Analytics from #{@cycle_analytics.from} to Today - -%ul.list-group - %li.list-group-item - Issue: - - if issue = @cycle_analytics.issue - = distance_of_time_in_words issue - - else - = "<Not enough data>" - - %li.list-group-item - Plan: - - if plan = @cycle_analytics.plan - = distance_of_time_in_words plan - - else - = "<Not enough data>" - - %li.list-group-item - Code: - - if code = @cycle_analytics.code.presence - = distance_of_time_in_words code - - else - = "<Not enough data>" - - %li.list-group-item - Test: - - if test = @cycle_analytics.test.presence - = distance_of_time_in_words test - - else - = "<Not enough data>" - - %li.list-group-item - Review: - - if review = @cycle_analytics.review.presence - = distance_of_time_in_words review - - else - = "<Not enough data>" - - %li.list-group-item - Staging: - - if staging = @cycle_analytics.staging.presence - = distance_of_time_in_words staging - - else - = "<Not enough data>" - - %li.list-group-item - Production: - - if production = @cycle_analytics.production.presence - = distance_of_time_in_words production - - else - = "<Not enough data>" += render 'projects/pipelines/head' + +#cycle-analytics{"v-cloak" => "true", ":class" => "{ 'waiting': isLoading }"} + .panel.panel-default + .panel-heading + Pipeline Health + + .content-block + = icon("spinner spin", "v-if" => "isLoading") + + .row + %template{"v-for" => "info in analytics.summary"} + .col-md-3.column + %span.header {{info.value}} + %br + %span.text {{info.desc}} + + .col-md-3.column + .dropdown.inline.js-ca-dropdown + %button.dropdown-menu-toggle{"aria-expanded" => "false", "data-toggle" => "dropdown", :type => "button"} + %span.dropdown-label Last 30 days + %i.fa.fa-chevron-down + %ul.dropdown-menu.dropdown-menu-align-right + %li + %a{'href' => "#", 'data-value' => '30days'} + Last 30 days + %li + %a{'href' => "#", 'data-value' => '90days'} + Last 90 days + + .bordered-box + = icon("spinner spin", "v-if" => "isLoading") + + %ul.content-list{{"v-if" => "!notAvailable"}} + %li{"v-for" => "info in analytics.data"} + .row + .col-md-10 + %span + {{info.title}} + %br + %span + {{info.desc}} + .col-md-2 + %span + {{info.value}} + + + .content-block{{"v-if" => "notAvailable"}} + .inner-content + = custom_icon('icon_cycle_analytics_splash') + %h4 + Set up your deploys to environment! + %p + Cycle Analytics will give an overview on how much time it takes to go from an idea to production in your project. + + = button_tag 'Set up', class: 'btn btn-create btn-block' |