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
b9ec1aae
Commit
b9ec1aae
authored
Jan 04, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-delimit-all-the-things' into 'master'
number_with_delimiter most of the things See merge request !2258
parents
57377376
bf249550
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
36 additions
and
36 deletions
+36
-36
app/views/admin/builds/index.html.haml
app/views/admin/builds/index.html.haml
+3
-3
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+11
-11
app/views/admin/groups/index.html.haml
app/views/admin/groups/index.html.haml
+1
-1
app/views/admin/users/index.html.haml
app/views/admin/users/index.html.haml
+7
-7
app/views/layouts/nav/_admin.html.haml
app/views/layouts/nav/_admin.html.haml
+3
-3
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+2
-2
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+2
-2
app/views/layouts/nav/_profile.html.haml
app/views/layouts/nav/_profile.html.haml
+2
-2
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+3
-3
app/views/projects/issues/_issues.html.haml
app/views/projects/issues/_issues.html.haml
+1
-1
app/views/projects/merge_requests/_merge_requests.html.haml
app/views/projects/merge_requests/_merge_requests.html.haml
+1
-1
No files found.
app/views/admin/builds/index.html.haml
View file @
b9ec1aae
...
@@ -8,17 +8,17 @@
...
@@ -8,17 +8,17 @@
%li
{
class:
(
'active'
if
@scope
.
nil?
)}
%li
{
class:
(
'active'
if
@scope
.
nil?
)}
=
link_to
admin_builds_path
do
=
link_to
admin_builds_path
do
Running
Running
%span
.badge.js-running-count
=
@all_builds
.
running_or_pending
.
count
(
:id
)
%span
.badge.js-running-count
=
number_with_delimiter
(
@all_builds
.
running_or_pending
.
count
(
:id
)
)
%li
{
class:
(
'active'
if
@scope
==
'finished'
)}
%li
{
class:
(
'active'
if
@scope
==
'finished'
)}
=
link_to
admin_builds_path
(
scope: :finished
)
do
=
link_to
admin_builds_path
(
scope: :finished
)
do
Finished
Finished
%span
.badge.js-running-count
=
@all_builds
.
finished
.
count
(
:id
)
%span
.badge.js-running-count
=
number_with_delimiter
(
@all_builds
.
finished
.
count
(
:id
)
)
%li
{
class:
(
'active'
if
@scope
==
'all'
)}
%li
{
class:
(
'active'
if
@scope
==
'all'
)}
=
link_to
admin_builds_path
(
scope: :all
)
do
=
link_to
admin_builds_path
(
scope: :all
)
do
All
All
%span
.badge.js-totalbuilds-count
=
@all_builds
.
count
(
:id
)
%span
.badge.js-totalbuilds-count
=
number_with_delimiter
(
@all_builds
.
count
(
:id
)
)
.gray-content-block
.gray-content-block
#{
(
@scope
||
'running'
).
capitalize
}
builds
#{
(
@scope
||
'running'
).
capitalize
}
builds
...
...
app/views/admin/dashboard/index.html.haml
View file @
b9ec1aae
...
@@ -6,35 +6,35 @@
...
@@ -6,35 +6,35 @@
%p
%p
Forks
Forks
%span
.light.pull-right
%span
.light.pull-right
=
ForkedProjectLink
.
count
=
number_with_delimiter
(
ForkedProjectLink
.
count
)
%p
%p
Issues
Issues
%span
.light.pull-right
%span
.light.pull-right
=
Issue
.
count
=
number_with_delimiter
(
Issue
.
count
)
%p
%p
Merge Requests
Merge Requests
%span
.light.pull-right
%span
.light.pull-right
=
MergeRequest
.
count
=
number_with_delimiter
(
MergeRequest
.
count
)
%p
%p
Notes
Notes
%span
.light.pull-right
%span
.light.pull-right
=
Note
.
count
=
number_with_delimiter
(
Note
.
count
)
%p
%p
Snippets
Snippets
%span
.light.pull-right
%span
.light.pull-right
=
Snippet
.
count
=
number_with_delimiter
(
Snippet
.
count
)
%p
%p
SSH Keys
SSH Keys
%span
.light.pull-right
%span
.light.pull-right
=
Key
.
count
=
number_with_delimiter
(
Key
.
count
)
%p
%p
Milestones
Milestones
%span
.light.pull-right
%span
.light.pull-right
=
Milestone
.
count
=
number_with_delimiter
(
Milestone
.
count
)
%p
%p
Active Users
Active Users
%span
.light.pull-right
%span
.light.pull-right
=
User
.
active
.
count
=
number_with_delimiter
(
User
.
active
.
count
)
.col-md-4
.col-md-4
%h4
%h4
Features
Features
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
%h4
Projects
%h4
Projects
.data
.data
=
link_to
admin_namespaces_projects_path
do
=
link_to
admin_namespaces_projects_path
do
%h1
=
Project
.
count
%h1
=
number_with_delimiter
(
Project
.
count
)
%hr
%hr
=
link_to
(
'New Project'
,
new_project_path
,
class:
"btn btn-new"
)
=
link_to
(
'New Project'
,
new_project_path
,
class:
"btn btn-new"
)
.col-sm-4
.col-sm-4
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
%h4
Users
%h4
Users
.data
.data
=
link_to
admin_users_path
do
=
link_to
admin_users_path
do
%h1
=
User
.
count
%h1
=
number_with_delimiter
(
User
.
count
)
%hr
%hr
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
.col-sm-4
.col-sm-4
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
%h4
Groups
%h4
Groups
.data
.data
=
link_to
admin_groups_path
do
=
link_to
admin_groups_path
do
%h1
=
Group
.
count
%h1
=
number_with_delimiter
(
Group
.
count
)
%hr
%hr
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
...
...
app/views/admin/groups/index.html.haml
View file @
b9ec1aae
-
page_title
"Groups"
-
page_title
"Groups"
%h3
.page-title
%h3
.page-title
Groups (
#{
@groups
.
total_count
}
)
Groups (
#{
number_with_delimiter
(
@groups
.
total_count
)
}
)
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new pull-right"
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new pull-right"
%p
.light
%p
.light
...
...
app/views/admin/users/index.html.haml
View file @
b9ec1aae
...
@@ -8,27 +8,27 @@
...
@@ -8,27 +8,27 @@
%li
{
class:
"#{'active' unless params[:filter]}"
}
%li
{
class:
"#{'active' unless params[:filter]}"
}
=
link_to
admin_users_path
do
=
link_to
admin_users_path
do
Active
Active
%small
.pull-right
=
User
.
active
.
count
%small
.pull-right
=
number_with_delimiter
(
User
.
active
.
count
)
%li
{
class:
"#{'active' if params[:filter] == "
admins
"}"
}
%li
{
class:
"#{'active' if params[:filter] == "
admins
"}"
}
=
link_to
admin_users_path
(
filter:
"admins"
)
do
=
link_to
admin_users_path
(
filter:
"admins"
)
do
Admins
Admins
%small
.pull-right
=
User
.
admins
.
count
%small
.pull-right
=
number_with_delimiter
(
User
.
admins
.
count
)
%li
.filter-two-factor-enabled
{
class:
"#{'active' if params[:filter] == 'two_factor_enabled'}"
}
%li
.filter-two-factor-enabled
{
class:
"#{'active' if params[:filter] == 'two_factor_enabled'}"
}
=
link_to
admin_users_path
(
filter:
'two_factor_enabled'
)
do
=
link_to
admin_users_path
(
filter:
'two_factor_enabled'
)
do
2FA Enabled
2FA Enabled
%small
.pull-right
=
User
.
with_two_factor
.
count
%small
.pull-right
=
number_with_delimiter
(
User
.
with_two_factor
.
count
)
%li
.filter-two-factor-disabled
{
class:
"#{'active' if params[:filter] == 'two_factor_disabled'}"
}
%li
.filter-two-factor-disabled
{
class:
"#{'active' if params[:filter] == 'two_factor_disabled'}"
}
=
link_to
admin_users_path
(
filter:
'two_factor_disabled'
)
do
=
link_to
admin_users_path
(
filter:
'two_factor_disabled'
)
do
2FA Disabled
2FA Disabled
%small
.pull-right
=
User
.
without_two_factor
.
count
%small
.pull-right
=
number_with_delimiter
(
User
.
without_two_factor
.
count
)
%li
{
class:
"#{'active' if params[:filter] == "
blocked
"}"
}
%li
{
class:
"#{'active' if params[:filter] == "
blocked
"}"
}
=
link_to
admin_users_path
(
filter:
"blocked"
)
do
=
link_to
admin_users_path
(
filter:
"blocked"
)
do
Blocked
Blocked
%small
.pull-right
=
User
.
blocked
.
count
%small
.pull-right
=
number_with_delimiter
(
User
.
blocked
.
count
)
%li
{
class:
"#{'active' if params[:filter] == "
wop
"}"
}
%li
{
class:
"#{'active' if params[:filter] == "
wop
"}"
}
=
link_to
admin_users_path
(
filter:
"wop"
)
do
=
link_to
admin_users_path
(
filter:
"wop"
)
do
Without projects
Without projects
%small
.pull-right
=
User
.
without_projects
.
count
%small
.pull-right
=
number_with_delimiter
(
User
.
without_projects
.
count
)
%hr
%hr
=
form_tag
admin_users_path
,
method: :get
,
class:
'form-inline'
do
=
form_tag
admin_users_path
,
method: :get
,
class:
'form-inline'
do
.form-group
.form-group
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
%section
.col-md-9
%section
.col-md-9
.panel.panel-default
.panel.panel-default
.panel-heading
.panel-heading
Users (
#{
@users
.
total_count
}
)
Users (
#{
number_with_delimiter
(
@users
.
total_count
)
}
)
.panel-head-actions
.panel-head-actions
.dropdown.inline
.dropdown.inline
%a
.dropdown-toggle.btn.btn-sm
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%a
.dropdown-toggle.btn.btn-sm
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
...
...
app/views/layouts/nav/_admin.html.haml
View file @
b9ec1aae
...
@@ -29,13 +29,13 @@
...
@@ -29,13 +29,13 @@
=
icon
(
'cog fw'
)
=
icon
(
'cog fw'
)
%span
%span
Runners
Runners
%span
.count
=
Ci
::
Runner
.
count
(
:all
)
%span
.count
=
number_with_delimiter
(
Ci
::
Runner
.
count
(
:all
)
)
=
nav_link
path:
'builds#index'
do
=
nav_link
path:
'builds#index'
do
=
link_to
admin_builds_path
do
=
link_to
admin_builds_path
do
=
icon
(
'link fw'
)
=
icon
(
'link fw'
)
%span
%span
Builds
Builds
%span
.count
=
Ci
::
Build
.
count
(
:all
)
%span
.count
=
number_with_delimiter
(
Ci
::
Build
.
count
(
:all
)
)
=
nav_link
(
controller: :logs
)
do
=
nav_link
(
controller: :logs
)
do
=
link_to
admin_logs_path
,
title:
'Logs'
do
=
link_to
admin_logs_path
,
title:
'Logs'
do
=
icon
(
'file-text fw'
)
=
icon
(
'file-text fw'
)
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
=
icon
(
'exclamation-circle fw'
)
=
icon
(
'exclamation-circle fw'
)
%span
%span
Abuse Reports
Abuse Reports
%span
.count
=
AbuseReport
.
count
(
:all
)
%span
.count
=
number_with_delimiter
(
AbuseReport
.
count
(
:all
)
)
=
nav_link
(
controller: :application_settings
,
html_options:
{
class:
'separate-item'
})
do
=
nav_link
(
controller: :application_settings
,
html_options:
{
class:
'separate-item'
})
do
=
link_to
admin_application_settings_path
,
title:
'Settings'
do
=
link_to
admin_application_settings_path
,
title:
'Settings'
do
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
b9ec1aae
...
@@ -24,13 +24,13 @@
...
@@ -24,13 +24,13 @@
=
icon
(
'exclamation-circle fw'
)
=
icon
(
'exclamation-circle fw'
)
%span
%span
Issues
Issues
%span
.count
=
current_user
.
assigned_issues
.
opened
.
count
%span
.count
=
number_with_delimiter
(
current_user
.
assigned_issues
.
opened
.
count
)
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
do
=
icon
(
'tasks fw'
)
=
icon
(
'tasks fw'
)
%span
%span
Merge Requests
Merge Requests
%span
.count
=
current_user
.
assigned_merge_requests
.
opened
.
count
%span
.count
=
number_with_delimiter
(
current_user
.
assigned_merge_requests
.
opened
.
count
)
=
nav_link
(
controller: :snippets
)
do
=
nav_link
(
controller: :snippets
)
do
=
link_to
dashboard_snippets_path
,
title:
'Snippets'
do
=
link_to
dashboard_snippets_path
,
title:
'Snippets'
do
=
icon
(
'clipboard fw'
)
=
icon
(
'clipboard fw'
)
...
...
app/views/layouts/nav/_group.html.haml
View file @
b9ec1aae
...
@@ -25,14 +25,14 @@
...
@@ -25,14 +25,14 @@
%span
%span
Issues
Issues
-
if
current_user
-
if
current_user
%span
.count
=
Issue
.
opened
.
of_group
(
@group
).
count
%span
.count
=
number_with_delimiter
(
Issue
.
opened
.
of_group
(
@group
).
count
)
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
icon
(
'tasks fw'
)
=
icon
(
'tasks fw'
)
%span
%span
Merge Requests
Merge Requests
-
if
current_user
-
if
current_user
%span
.count
=
MergeRequest
.
opened
.
of_group
(
@group
).
count
%span
.count
=
number_with_delimiter
(
MergeRequest
.
opened
.
of_group
(
@group
).
count
)
=
nav_link
(
controller:
[
:group_members
])
do
=
nav_link
(
controller:
[
:group_members
])
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
icon
(
'users fw'
)
=
icon
(
'users fw'
)
...
...
app/views/layouts/nav/_profile.html.haml
View file @
b9ec1aae
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
=
icon
(
'envelope-o fw'
)
=
icon
(
'envelope-o fw'
)
%span
%span
Emails
Emails
%span
.count
=
current_user
.
emails
.
count
+
1
%span
.count
=
number_with_delimiter
(
current_user
.
emails
.
count
+
1
)
-
unless
current_user
.
ldap_user?
-
unless
current_user
.
ldap_user?
=
nav_link
(
controller: :passwords
)
do
=
nav_link
(
controller: :passwords
)
do
=
link_to
edit_profile_password_path
,
title:
'Password'
do
=
link_to
edit_profile_password_path
,
title:
'Password'
do
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
=
icon
(
'key fw'
)
=
icon
(
'key fw'
)
%span
%span
SSH Keys
SSH Keys
%span
.count
=
current_user
.
keys
.
count
%span
.count
=
number_with_delimiter
(
current_user
.
keys
.
count
)
=
nav_link
(
controller: :preferences
)
do
=
nav_link
(
controller: :preferences
)
do
=
link_to
profile_preferences_path
,
title:
'Preferences'
do
=
link_to
profile_preferences_path
,
title:
'Preferences'
do
-# TODO (rspeicher): Better icon?
-# TODO (rspeicher): Better icon?
...
...
app/views/layouts/nav/_project.html.haml
View file @
b9ec1aae
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
=
icon
(
'cubes fw'
)
=
icon
(
'cubes fw'
)
%span
%span
Builds
Builds
%span
.count.builds_counter
=
@project
.
builds
.
running_or_pending
.
count
(
:all
)
%span
.count.builds_counter
=
number_with_delimiter
(
@project
.
builds
.
running_or_pending
.
count
(
:all
)
)
-
if
project_nav_tab?
:graphs
-
if
project_nav_tab?
:graphs
=
nav_link
(
controller:
%w(graphs)
)
do
=
nav_link
(
controller:
%w(graphs)
)
do
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
%span
%span
Issues
Issues
-
if
@project
.
default_issues_tracker?
-
if
@project
.
default_issues_tracker?
%span
.count.issue_counter
=
@project
.
issues
.
opened
.
count
%span
.count.issue_counter
=
number_with_delimiter
(
@project
.
issues
.
opened
.
count
)
-
if
project_nav_tab?
:merge_requests
-
if
project_nav_tab?
:merge_requests
=
nav_link
(
controller: :merge_requests
)
do
=
nav_link
(
controller: :merge_requests
)
do
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
=
icon
(
'tasks fw'
)
=
icon
(
'tasks fw'
)
%span
%span
Merge Requests
Merge Requests
%span
.count.merge_counter
=
@project
.
merge_requests
.
opened
.
count
%span
.count.merge_counter
=
number_with_delimiter
(
@project
.
merge_requests
.
opened
.
count
)
-
if
project_nav_tab?
:settings
-
if
project_nav_tab?
:settings
=
nav_link
(
controller:
[
:project_members
,
:teams
])
do
=
nav_link
(
controller:
[
:project_members
,
:teams
])
do
...
...
app/views/projects/issues/_issues.html.haml
View file @
b9ec1aae
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
-
if
@issues
.
present?
-
if
@issues
.
present?
.issuable-filter-count
.issuable-filter-count
%span
.pull-right
%span
.pull-right
=
@issues
.
total_count
=
number_with_delimiter
(
@issues
.
total_count
)
issues for this filter
issues for this filter
=
paginate
@issues
,
theme:
"gitlab"
=
paginate
@issues
,
theme:
"gitlab"
app/views/projects/merge_requests/_merge_requests.html.haml
View file @
b9ec1aae
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
-
if
@merge_requests
.
present?
-
if
@merge_requests
.
present?
.issuable-filter-count
.issuable-filter-count
%span
.pull-right
%span
.pull-right
=
@merge_requests
.
total_count
=
number_with_delimiter
(
@merge_requests
.
total_count
)
merge requests for this filter
merge requests for this filter
=
paginate
@merge_requests
,
theme:
"gitlab"
=
paginate
@merge_requests
,
theme:
"gitlab"
...
...
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