summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-22 22:28:02 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-22 22:28:02 +0200
commit81da8e46f24913ccf42d3e2644962cbcbc0f9c2e (patch)
tree682ef5480670bc40599dfd44ccdb877e9ba876f8 /app/views/projects
parent6f2c19320464c928e3dae0373a7af315bf5fb043 (diff)
downloadgitlab-ce-81da8e46f24913ccf42d3e2644962cbcbc0f9c2e.tar.gz
Remove button for empty repo. Last push on dashboard. Better notes count indicator for issues
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/empty.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml
index 3fb81370853..249442c15b5 100644
--- a/app/views/projects/empty.html.haml
+++ b/app/views/projects/empty.html.haml
@@ -38,3 +38,7 @@
"git remote add origin #{@project.url_to_repo}",
"git push -u origin master"].join("\n")
= raw bash_lexer.highlight(exist_repo_setup_str)
+
+ - if can? current_user, :admin_project, @project
+ .alert-message.block-message.error.prepend-top-20
+ = link_to 'Remove project', @project, :confirm => 'Are you sure?', :method => :delete, :class => "btn danger"