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
Jérome Perrin
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.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
app/views/projects/graphs/ci.html.haml
View file @
8e841530
-
@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'
app/views/projects/graphs/commits.html.haml
View file @
8e841530
-
@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
)
{
...
...
app/views/projects/graphs/languages.html.haml
View file @
8e841530
-
@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
}
;
...
...
app/views/projects/graphs/show.html.haml
View file @
8e841530
-
@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
...
...
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