better error handling for not found resource, gitolite error
This commit is contained in:
parent
9e6d0710e9
commit
7d279f9302
9 changed files with 73 additions and 7 deletions
5
app/views/errors/access_denied.html.haml
Normal file
5
app/views/errors/access_denied.html.haml
Normal file
|
@ -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"}
|
9
app/views/errors/git_not_found.html.haml
Normal file
9
app/views/errors/git_not_found.html.haml
Normal file
|
@ -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
|
18
app/views/errors/gitolite.html.haml
Normal file
18
app/views/errors/gitolite.html.haml
Normal file
|
@ -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/
|
5
app/views/errors/not_found.html.haml
Normal file
5
app/views/errors/not_found.html.haml
Normal file
|
@ -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.
|
11
app/views/layouts/error.html.haml
Normal file
11
app/views/layouts/error.html.haml
Normal file
|
@ -0,0 +1,11 @@
|
|||
!!! 5
|
||||
%html{ :lang => "en"}
|
||||
= render "layouts/head"
|
||||
%body.application
|
||||
= render "layouts/flash"
|
||||
= render "layouts/head_panel", :title => ""
|
||||
.container
|
||||
%nav.main_menu
|
||||
= render "layouts/const_menu_links"
|
||||
.content
|
||||
%h3= yield
|
Loading…
Add table
Add a link
Reference in a new issue