Commit 8e841530 authored by Annabel Dunstone's avatar Annabel Dunstone Committed by Jacob Schatz

Style sub nav links in Graphs

parent 11773221
- page_specific_javascripts asset_path("graphs/application.js") %ul.nav-links.sub-nav
%ul.nav-links %div{ class: (container_class) }
= nav_link(action: :show) do
= link_to 'Contributors', namespace_project_graph_path - page_specific_javascripts asset_path("graphs/application.js")
= nav_link(action: :commits) do = nav_link(action: :show) do
= link_to 'Commits', commits_namespace_project_graph_path = link_to 'Contributors', namespace_project_graph_path
= nav_link(action: :languages) do = nav_link(action: :commits) do
= link_to 'Languages', languages_namespace_project_graph_path = link_to 'Commits', commits_namespace_project_graph_path
- if @project.builds_enabled? = nav_link(action: :languages) do
= nav_link(action: :ci) do = link_to 'Languages', languages_namespace_project_graph_path
= link_to ci_namespace_project_graph_path do - if @project.builds_enabled?
Continuous Integration = nav_link(action: :ci) do
= link_to ci_namespace_project_graph_path do
Continuous Integration
- @no_container = true
- page_title "Continuous Integration", "Graphs" - page_title "Continuous Integration", "Graphs"
= render 'head' = render 'head'
.row-content-block.append-bottom-default
.oneline
A collection of graphs for Continuous Integration
#charts.ci-charts %div{ class: (container_class) }
.row .row-content-block.append-bottom-default
.col-md-6 .oneline
= render 'projects/graphs/ci/overall' A collection of graphs for Continuous Integration
.col-md-6
= render 'projects/graphs/ci/build_times'
%hr #charts.ci-charts
= render 'projects/graphs/ci/builds' .row
.col-md-6
= render 'projects/graphs/ci/overall'
.col-md-6
= render 'projects/graphs/ci/build_times'
%hr
= render 'projects/graphs/ci/builds'
- @no_container = true
- page_title "Commits", "Graphs" - page_title "Commits", "Graphs"
= render 'head' = render 'head'
.row-content-block.append-bottom-default %div{ class: (container_class) }
.tree-ref-holder .row-content-block.append-bottom-default
= render 'shared/ref_switcher', destination: 'graphs_commits' .tree-ref-holder
%ul.breadcrumb.repo-breadcrumb = render 'shared/ref_switcher', destination: 'graphs_commits'
= commits_breadcrumbs %ul.breadcrumb.repo-breadcrumb
= commits_breadcrumbs
%p.lead %p.lead
Commit statistics for Commit statistics for
%strong #{@ref} %strong #{@ref}
#{@commits_graph.start_date.strftime('%b %d')} - #{@commits_graph.end_date.strftime('%b %d')} #{@commits_graph.start_date.strftime('%b %d')} - #{@commits_graph.end_date.strftime('%b %d')}
.row .row
.col-md-6 .col-md-6
%ul %ul
%li %li
%p.lead %p.lead
%strong #{@commits_graph.commits.size} %strong #{@commits_graph.commits.size}
commits during commits during
%strong #{@commits_graph.duration} %strong #{@commits_graph.duration}
days days
%li %li
%p.lead %p.lead
Average Average
%strong #{@commits_graph.commit_per_day} %strong #{@commits_graph.commit_per_day}
commits per day commits per day
%li %li
%p.lead %p.lead
Contributed by Contributed by
%strong #{@commits_graph.authors} %strong #{@commits_graph.authors}
authors authors
.col-md-6 .col-md-6
%div %div
%p.slead %p.slead
Commits per day of month Commits per day of month
%canvas#month-chart %canvas#month-chart
.row .row
.col-md-6 .col-md-6
%div %div
%p.slead %p.slead
Commits per day hour (UTC) Commits per day hour (UTC)
%canvas#hour-chart %canvas#hour-chart
.col-md-6 .col-md-6
%div %div
%p.slead %p.slead
Commits per weekday Commits per weekday
%canvas#weekday-chart %canvas#weekday-chart
:javascript :javascript
var responsiveChart = function (selector, data) { var responsiveChart = function (selector, data) {
......
- @no_container = true
- page_title "Languages", "Graphs" - page_title "Languages", "Graphs"
= render 'head' = render 'head'
.row-content-block.append-bottom-default %div{ class: (container_class) }
.oneline .row-content-block.append-bottom-default
Programming languages used in this repository .oneline
Programming languages used in this repository
.row .row
.col-md-8 .col-md-8
%canvas#languages-chart{ height: 400 } %canvas#languages-chart{ height: 400 }
.col-md-4 .col-md-4
%ul.bordered-list %ul.bordered-list
- @languages.each do |language| - @languages.each do |language|
%li %li
%span{ style: "color: #{language[:color]}" } %span{ style: "color: #{language[:color]}" }
= icon('circle') = icon('circle')
   
= language[:label] = language[:label]
.pull-right .pull-right
= language[:value] = language[:value]
\% \%
:javascript :javascript
var data = #{@languages.to_json}; var data = #{@languages.to_json};
......
- @no_container = true
- page_title "Contributors", "Graphs" - page_title "Contributors", "Graphs"
= render 'head' = render 'head'
.row-content-block.append-bottom-default %div{ class: (container_class) }
.tree-ref-holder .row-content-block.append-bottom-default
= render 'shared/ref_switcher', destination: 'graphs' .tree-ref-holder
%ul.breadcrumb.repo-breadcrumb = render 'shared/ref_switcher', destination: 'graphs'
= commits_breadcrumbs %ul.breadcrumb.repo-breadcrumb
= commits_breadcrumbs
.loading-graph
.center .loading-graph
%h3.page-title .center
%i.fa.fa-spinner.fa-spin %h3.page-title
Building repository graph. %i.fa.fa-spinner.fa-spin
%p.slead Please wait a moment, this page will automatically refresh when ready. Building repository graph.
%p.slead Please wait a moment, this page will automatically refresh when ready.
.stat-graph.hide
.header.clearfix .stat-graph.hide
%h3#date_header.page-title .header.clearfix
%p.light %h3#date_header.page-title
Commits to #{@ref}, excluding merge commits. Limited to 6,000 commits. %p.light
%input#brush_change{:type => "hidden"} Commits to #{@ref}, excluding merge commits. Limited to 6,000 commits.
.graphs %input#brush_change{:type => "hidden"}
#contributors-master .graphs
#contributors.clearfix #contributors-master
%ol.contributors-list.clearfix #contributors.clearfix
%ol.contributors-list.clearfix
......
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