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