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
ff25cb93
Commit
ff25cb93
authored
Nov 29, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/repo_size_in_admin' of /home/git/repositories/gitlab/gitlabhq
parents
8a650f5d
44920811
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+2
-2
app/views/admin/groups/show.html.haml
app/views/admin/groups/show.html.haml
+2
-0
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+2
-0
No files found.
app/helpers/projects_helper.rb
View file @
ff25cb93
...
...
@@ -137,8 +137,8 @@ module ProjectsHelper
end
end
def
repository_size
"
#{
@project
.
repository
.
size
}
MB"
def
repository_size
(
project
=
nil
)
"
#{
(
project
||
@project
)
.
repository
.
size
}
MB"
rescue
# In order to prevent 500 error
# when application cannot allocate memory
...
...
app/views/admin/groups/show.html.haml
View file @
ff25cb93
...
...
@@ -39,6 +39,8 @@
%li
%strong
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
]
%span
.label.label-gray
=
repository_size
(
project
)
%span
.pull-right.light
%span
.monospace
=
project
.
path_with_namespace
+
".git"
...
...
app/views/admin/projects/index.html.haml
View file @
ff25cb93
...
...
@@ -49,6 +49,8 @@
=
visibility_level_icon
(
project
.
visibility_level
)
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
]
.pull-right
%span
.label.label-gray
=
repository_size
(
project
)
=
link_to
'Edit'
,
edit_project_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-small"
=
link_to
'Destroy'
,
[
project
],
confirm:
remove_project_message
(
project
),
method: :delete
,
class:
"btn btn-small btn-remove"
-
if
@projects
.
blank?
...
...
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