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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
4dbcf672
Commit
4dbcf672
authored
Nov 18, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add overview view for Cycle Analytics
parent
8a26021b
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
202 additions
and
81 deletions
+202
-81
app/assets/stylesheets/pages/cycle_analytics.scss
app/assets/stylesheets/pages/cycle_analytics.scss
+22
-0
app/views/projects/cycle_analytics/_empty_cycle_analytics.html.haml
...projects/cycle_analytics/_empty_cycle_analytics.html.haml
+2
-0
app/views/projects/cycle_analytics/_overview.html.haml
app/views/projects/cycle_analytics/_overview.html.haml
+15
-0
app/views/projects/cycle_analytics/show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+82
-81
app/views/shared/icons/_icon_cycle_analytics_overview.svg
app/views/shared/icons/_icon_cycle_analytics_overview.svg
+81
-0
No files found.
app/assets/stylesheets/pages/cycle_analytics.scss
View file @
4dbcf672
...
@@ -425,3 +425,25 @@
...
@@ -425,3 +425,25 @@
}
}
}
}
}
}
.cycle-analytics-overview
{
padding-top
:
100px
;
.overview-details
{
display
:
flex
;
align-items
:
center
;
}
.overview-text
{
}
.overview-image
{
text-align
:
right
;
}
.overview-icon
{
svg
{
width
:
365px
;
height
:
227px
;
}
}
}
app/views/projects/cycle_analytics/_empty_cycle_analytics.html.haml
0 → 100644
View file @
4dbcf672
%p
There is nothing happened
=
icon
(
"times"
,
class:
"dismiss-icon"
,
"@click"
=>
"dismissEmptyDialog()"
)
app/views/projects/cycle_analytics/_overview.html.haml
0 → 100644
View file @
4dbcf672
.cycle-analytics-overview
.container
.row
.col-md-10.col-md-offset-1
.row.overview-details
.col-md-6.overview-text
%h4
Introducing Cycle Analytics
%p
Cycle Analytics gives an overview of how much time it takes to go from idea to production in your project.
To set up CA, you must first define a production environment by setting up your CI and then deploy to production.
%p
%a
.btn
{
href:
help_page_path
(
'user/project/cycle_analytics'
),
target:
"_blank"
}
Read more
.col-md-6.overview-image
%span
.overview-icon
=
custom_icon
(
'icon_cycle_analytics_overview'
)
app/views/projects/cycle_analytics/show.html.haml
View file @
4dbcf672
-
@no_container
=
true
-
@no_container
=
true
-
@cycle_analytics_not_set_up
=
false
-
page_title
"Cycle Analytics"
-
page_title
"Cycle Analytics"
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_tag
(
"cycle_analytics/cycle_analytics_bundle.js"
)
=
render
"projects/pipelines/head"
=
render
"projects/pipelines/head"
#cycle-analytics
{
class:
container_class
,
"v-cloak"
=>
"true"
,
data:
{
request_path:
project_cycle_analytics_path
(
@project
)
}
}
-
if
@cycle_analytics_not_set_up
=
render
partial:
"overview"
-
else
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_tag
(
"cycle_analytics/cycle_analytics_bundle.js"
)
#cycle-analytics
{
class:
container_class
,
"v-cloak"
=>
"true"
,
data:
{
request_path:
project_cycle_analytics_path
(
@project
)
}
}
.empty-dialog-message
{
"v-if"
=>
"!isEmptyDialogDismissed"
}
.empty-dialog-message
{
"v-if"
=>
"!isEmptyDialogDismissed"
}
%p
There is nothing happened
=
render
partial:
"empty_cycle_analytics"
=
icon
(
"times"
,
class:
"dismiss-icon"
,
"@click"
=>
"dismissEmptyDialog()"
)
.bordered-box.landing.content-block
{
"v-if"
=>
"!isOverviewDialogDismissed"
}
.bordered-box.landing.content-block
{
"v-if"
=>
"!isOverviewDialogDismissed"
}
=
icon
(
"times"
,
class:
"dismiss-icon"
,
"@click"
=>
"dismissOverviewDialog()"
)
=
icon
(
"times"
,
class:
"dismiss-icon"
,
"@click"
=>
"dismissOverviewDialog()"
)
.row
.row
...
...
app/views/shared/icons/_icon_cycle_analytics_overview.svg
0 → 100644
View file @
4dbcf672
This diff is collapsed.
Click to expand it.
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