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
Léo-Paul Géneau
gitlab-ce
Commits
9f49329c
Commit
9f49329c
authored
Feb 08, 2018
by
Shah El-Rahman
Committed by
Clement Ho
Feb 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotate charts page for internationalization
parent
9b7534cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
13 deletions
+50
-13
app/views/projects/graphs/charts.html.haml
app/views/projects/graphs/charts.html.haml
+18
-13
changelogs/unreleased/internationalize-charts-page.yml
changelogs/unreleased/internationalize-charts-page.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+27
-0
No files found.
app/views/projects/graphs/charts.html.haml
View file @
9f49329c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
.repo-charts
{
class:
container_class
}
.repo-charts
{
class:
container_class
}
%h4
.sub-header
%h4
.sub-header
Programming languages used in this repository
=
_
(
"Programming languages used in this repository"
)
.row
.row
.col-md-4
.col-md-4
...
@@ -30,9 +30,11 @@
...
@@ -30,9 +30,11 @@
.row.tree-ref-header
.row.tree-ref-header
.col-md-6
.col-md-6
%h4
%h4
Commit statistics for
-
start_time
=
capture
do
%strong
=
@ref
#{
@commits_graph
.
start_date
.
strftime
(
'%b %d'
)
}
#{
@commits_graph
.
start_date
.
strftime
(
'%b %d'
)
}
-
#{
@commits_graph
.
end_date
.
strftime
(
'%b %d'
)
}
-
end_time
=
capture
do
#{
@commits_graph
.
end_date
.
strftime
(
'%b %d'
)
}
=
(
_
(
"Commit statistics for %{ref} %{start_time} - %{end_time}"
)
%
{
ref:
"<strong>
#{
@ref
}
</strong>"
,
start_time:
start_time
,
end_time:
end_time
}).
html_safe
.col-md-6
.col-md-6
.tree-ref-container
.tree-ref-container
...
@@ -45,32 +47,35 @@
...
@@ -45,32 +47,35 @@
.col-md-6
.col-md-6
%ul
.commit-stats
%ul
.commit-stats
%li
%li
Total:
-
total
=
capture
do
%strong
#{
@commits_graph
.
commits
.
size
}
commits
#{
@commits_graph
.
commits
.
size
}
=
(
_
(
"Total: %{total}"
)
%
{
total:
"<strong>
#{
total
}
commits</strong>"
}).
html_safe
%li
%li
Average per day:
-
average
=
capture
do
%strong
#{
@commits_graph
.
commit_per_day
}
commits
#{
@commits_graph
.
commit_per_day
}
=
(
_
(
"Average per day: %{average}"
)
%
{
average:
"<strong>
#{
average
}
commits</strong>"
}).
html_safe
%li
%li
Authors:
-
authors
=
capture
do
%strong
=
@commits_graph
.
authors
#{
@commits_graph
.
authors
}
=
(
_
(
"Authors: %{authors}"
)
%
{
authors:
"<strong>
#{
authors
}
</strong>"
}).
html_safe
.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
.col-md-6
.col-md-6
%div
%div
%p
.slead
%p
.slead
Commits per weekday
=
_
(
"Commits per weekday"
)
%canvas
#weekday-chart
%canvas
#weekday-chart
.row
.row
.col-md-6
.col-md-6
.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
%script
#projectChartData
{
type:
"application/json"
}
%script
#projectChartData
{
type:
"application/json"
}
...
...
changelogs/unreleased/internationalize-charts-page.yml
0 → 100644
View file @
9f49329c
---
title
:
Internationalize charts page
merge_request
:
16687
author
:
selrahman
type
:
changed
locale/gitlab.pot
View file @
9f49329c
...
@@ -261,6 +261,9 @@ msgstr ""
...
@@ -261,6 +261,9 @@ msgstr ""
msgid "Author"
msgid "Author"
msgstr ""
msgstr ""
msgid "Authors: %{authors}"
msgstr ""
msgid "Auto Review Apps and Auto Deploy need a %{kubernetes} to work correctly."
msgid "Auto Review Apps and Auto Deploy need a %{kubernetes} to work correctly."
msgstr ""
msgstr ""
...
@@ -294,6 +297,9 @@ msgstr ""
...
@@ -294,6 +297,9 @@ msgstr ""
msgid "Avatar will be removed. Are you sure?"
msgid "Avatar will be removed. Are you sure?"
msgstr ""
msgstr ""
msgid "Average per day: %{average}"
msgstr ""
msgid "Begin with the selected commit"
msgid "Begin with the selected commit"
msgstr ""
msgstr ""
...
@@ -725,6 +731,9 @@ msgstr ""
...
@@ -725,6 +731,9 @@ msgstr ""
msgid "ClusterIntegration|Make sure your account %{link_to_requirements} to create Kubernetes clusters"
msgid "ClusterIntegration|Make sure your account %{link_to_requirements} to create Kubernetes clusters"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Manage"
msgstr ""
msgid "ClusterIntegration|Manage your Kubernetes cluster by visiting %{link_gke}"
msgid "ClusterIntegration|Manage your Kubernetes cluster by visiting %{link_gke}"
msgstr ""
msgstr ""
...
@@ -859,6 +868,9 @@ msgstr ""
...
@@ -859,6 +868,9 @@ msgstr ""
msgid "Commit message"
msgid "Commit message"
msgstr ""
msgstr ""
msgid "Commit statistics for %{ref} %{start_time} - %{end_time}"
msgstr ""
msgid "CommitBoxTitle|Commit"
msgid "CommitBoxTitle|Commit"
msgstr ""
msgstr ""
...
@@ -871,6 +883,15 @@ msgstr ""
...
@@ -871,6 +883,15 @@ msgstr ""
msgid "Commits feed"
msgid "Commits feed"
msgstr ""
msgstr ""
msgid "Commits per day hour (UTC)"
msgstr ""
msgid "Commits per day of month"
msgstr ""
msgid "Commits per weekday"
msgstr ""
msgid "Commits|An error occurred while fetching merge requests data."
msgid "Commits|An error occurred while fetching merge requests data."
msgstr ""
msgstr ""
...
@@ -2033,6 +2054,9 @@ msgstr ""
...
@@ -2033,6 +2054,9 @@ msgstr ""
msgid "Profiles|your account"
msgid "Profiles|your account"
msgstr ""
msgstr ""
msgid "Programming languages used in this repository"
msgstr ""
msgid "Project '%{project_name}' is in the process of being deleted."
msgid "Project '%{project_name}' is in the process of being deleted."
msgstr ""
msgstr ""
...
@@ -2901,6 +2925,9 @@ msgstr ""
...
@@ -2901,6 +2925,9 @@ msgstr ""
msgid "Total test time for all commits/merges"
msgid "Total test time for all commits/merges"
msgstr ""
msgstr ""
msgid "Total: %{total}"
msgstr ""
msgid "Track time with quick actions"
msgid "Track time with quick actions"
msgstr ""
msgstr ""
...
...
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