Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
8e841530
Commit
8e841530
authored
Jun 15, 2016
by
Annabel Dunstone
Committed by
Jacob Schatz
Jun 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style sub nav links in Graphs
parent
11773221
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
118 additions
and
107 deletions
+118
-107
app/views/projects/graphs/_head.html.haml
app/views/projects/graphs/_head.html.haml
+14
-12
app/views/projects/graphs/ci.html.haml
app/views/projects/graphs/ci.html.haml
+14
-11
app/views/projects/graphs/commits.html.haml
app/views/projects/graphs/commits.html.haml
+46
-44
app/views/projects/graphs/languages.html.haml
app/views/projects/graphs/languages.html.haml
+19
-17
app/views/projects/graphs/show.html.haml
app/views/projects/graphs/show.html.haml
+25
-23
No files found.
app/views/projects/graphs/_head.html.haml
View file @
8e841530
-
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
app/views/projects/graphs/ci.html.haml
View file @
8e841530
-
@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'
app/views/projects/graphs/commits.html.haml
View file @
8e841530
-
@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
)
{
...
...
app/views/projects/graphs/languages.html.haml
View file @
8e841530
-
@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
}
;
...
...
app/views/projects/graphs/show.html.haml
View file @
8e841530
-
@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
.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
%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.
.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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment