summaryrefslogtreecommitdiff
path: root/app/views/projects/show.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-07 16:01:12 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-07 16:01:12 +0200
commitd192f921c17561c82943bc803875ba6bf11fd8ce (patch)
treecd57bd9bf9a0c2e1e0659260e638c543c0fcf13f /app/views/projects/show.html.haml
parent5e7f7f8d31cce732533e36b7be756b824b748f74 (diff)
downloadgitlab-ce-d192f921c17561c82943bc803875ba6bf11fd8ce.tar.gz
Move project activity to separate tab. Add more features to project home page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml24
1 files changed, 23 insertions, 1 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index d7b1704f036..ceaf6c8cab3 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -7,6 +7,7 @@
= render 'shared/no_password'
= render "home_panel"
+
.project-stats
%ul.nav.nav-pills
%li
@@ -31,6 +32,12 @@
= link_to contribution_guide_url(@project) do
Contribution guide
+- if @project.archived?
+ .text-warning.center.prepend-top-20
+ %p
+ = icon("exclamation-triangle fw")
+ Archived project! Repository is read-only
+
%hr
%section
- if readme = @repository.readme
@@ -43,4 +50,19 @@
.wiki
= render_readme(readme)
- else
- %h4 Add README to this repository
+ %h4
+ Please
+ = link_to "add README", namespace_project_new_blob_path(@project.namespace, @project, tree_join(@repository.root_ref), file_name: 'README.md')
+ file to this repository
+
+
+- if current_user
+ - access = user_max_access_in_project(current_user, @project)
+ - if access
+ %hr
+ %p.light
+ You have #{access} access to this project.
+ - 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