summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-21 10:21:48 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-21 10:21:48 +0000
commit677bf6615f81ac0f681183a63e9d6d4fbdc5b1c6 (patch)
tree433f6df2ccdfe8825aaa948d124c36e1f609089b
parent2de0935e276e45ac0090d32fd345593c2db92a5b (diff)
parent3930ec44909b9bf7d3780ae31bfaeea132290842 (diff)
downloadgitlab-ce-677bf6615f81ac0f681183a63e9d6d4fbdc5b1c6.tar.gz
Merge branch 'issue-2306-repo-size-display' into 'master'
Add size information back to project summary screen. ![gitlab-with-size](https://gitlab.com/nneul/gitlab-ce/uploads/84d15169aa7ee4e966465a71ca383f24/gitlab-with-size.png) See merge request !1178
-rw-r--r--app/views/projects/show.html.haml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index ebbd3e477fc..507f2c7beb0 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -23,6 +23,10 @@
= link_to namespace_project_tags_path(@project.namespace, @project) do
= pluralize(number_with_delimiter(@repository.tag_names.count), 'tag')
+ %li
+ = link_to namespace_project_path(@project.namespace, @project) do
+ = repository_size
+
- if !prefer_readme? && @repository.readme
%li
= link_to 'Readme', readme_path(@project)
@@ -76,4 +80,4 @@
- if @project.project_member_by_id(current_user)
= link_to leave_namespace_project_project_members_path(@project.namespace, @project),
data: { confirm: leave_project_message(@project) }, method: :delete, title: 'Leave project', class: 'cred' do
- Leave this project
+ Leave this project \ No newline at end of file