summaryrefslogtreecommitdiff
path: root/app/views/errors
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-02-22 07:14:54 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-02-22 07:14:54 +0200
commit7d279f9302151e3c8f4c5df9c5200a72799409b9 (patch)
treeb5ba2552f6e75e964de7d194c2b6a0b536363589 /app/views/errors
parent9e6d0710e927aa8ea834b8a9ae9f277be617ac7d (diff)
downloadgitlab-ce-7d279f9302151e3c8f4c5df9c5200a72799409b9.tar.gz
better error handling for not found resource, gitolite error
Diffstat (limited to 'app/views/errors')
-rw-r--r--app/views/errors/access_denied.html.haml5
-rw-r--r--app/views/errors/git_not_found.html.haml9
-rw-r--r--app/views/errors/gitolite.html.haml18
-rw-r--r--app/views/errors/not_found.html.haml5
4 files changed, 37 insertions, 0 deletions
diff --git a/app/views/errors/access_denied.html.haml b/app/views/errors/access_denied.html.haml
new file mode 100644
index 00000000000..2f3f362643b
--- /dev/null
+++ b/app/views/errors/access_denied.html.haml
@@ -0,0 +1,5 @@
+.alert-message.block-message.error
+ %h3 Access Denied
+ %hr
+ %p Youre not allowed to access this page
+ %p Ream more about project permissions #{link_to "here", help_permissions_path, :class => "vlink"}
diff --git a/app/views/errors/git_not_found.html.haml b/app/views/errors/git_not_found.html.haml
new file mode 100644
index 00000000000..172bd4e678a
--- /dev/null
+++ b/app/views/errors/git_not_found.html.haml
@@ -0,0 +1,9 @@
+.alert-message.block-message.error
+ %h3 Git Resource Not found
+ %hr
+ %p
+ Application cant get access to some
+ %span.label branch
+ or
+ %span.label commit
+ in your repository. Maybe it was moved
diff --git a/app/views/errors/gitolite.html.haml b/app/views/errors/gitolite.html.haml
new file mode 100644
index 00000000000..41d7d83a1c9
--- /dev/null
+++ b/app/views/errors/gitolite.html.haml
@@ -0,0 +1,18 @@
+.alert-message.block-message.error
+ %h3 Gitolite Error
+ %hr
+ %h4 Application cant get access to your gitolite system.
+ %ol
+ %li
+ %p
+ Check 'config/gitlab.yml' for correct settings.
+ %li
+ %p
+ Make sure web server user has access to gitolite.
+ %a{:href => "https://github.com/gitlabhq/gitlabhq/wiki/Gitolite"} Setup tutorial
+ %li
+ %p
+ Try:
+ %pre
+ sudo chmod -R 770 /home/git/repositories/
+ sudo chown -R git:git /home/git/repositories/
diff --git a/app/views/errors/not_found.html.haml b/app/views/errors/not_found.html.haml
new file mode 100644
index 00000000000..9b76a9bf908
--- /dev/null
+++ b/app/views/errors/not_found.html.haml
@@ -0,0 +1,5 @@
+.alert-message.block-message.error
+ %h3 Not found
+ %hr
+ %p Resource you were looking for doesn't exist.
+ %P You may have mistyped the address or it was removed.