Skip to content

Commit c873cf8

Browse files
committed
Restyled error messages in common way. Added title to head partial
1 parent d8f825e commit c873cf8

17 files changed

+56
-113
lines changed

app/assets/stylesheets/common.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,3 +666,10 @@ pre {
666666
float:left;
667667
}
668668
}
669+
670+
h1.http_status_code {
671+
font-size: 56px;
672+
line-height: 100px;
673+
font-weight: normal;
674+
color: #456;
675+
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
%h1 Access Denied
1+
%h1 403
2+
%h3.page_title Access Denied
23
%hr
3-
%h2 You are not allowed to access this page.
4+
%p You are not allowed to access this page.
45
%p Read more about project permissions #{link_to "here", help_permissions_path, class: "vlink"}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
%h1 Encoding Error
1+
%h1.http_status_code 500
2+
%h3.page_title Encoding Error
23
%hr
34
%p Page can't be loaded because of an encoding error.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
%h1 404
1+
%h1.http_status_code 404
2+
%h3.page_title Git Resource Not found
23
%hr
3-
%h2 Git Resource Not found
44
%p
55
Application can't get access to some branch or commit in your repository. It
66
may have been moved.

app/views/errors/gitolite.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
%h1 Git Error
1+
%h1.http_status_code 500
2+
%h3.page_title GitLab was unable to access your Gitolite system.
23
%hr
3-
%h2 GitLab was unable to access your Gitolite system.
44

55
.git_error_tips
66
%h4 Tips for Administrator:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%h1 404
1+
%h1.http_status_code 404
2+
%h3.page_title The resource you were looking for doesn't exist.
23
%hr
3-
%h2 The resource you were looking for doesn't exist.
44
%p You may have mistyped the address or the page may have moved.

app/views/layouts/_head.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%meta{charset: "utf-8"}
33
%title
44
GitLab
5-
= " > #{@project.name}" if @project && [email protected]_record?
5+
= " > #{title}" if defined?(title)
66
= favicon_link_tag 'favicon.ico'
77
= stylesheet_link_tag "application"
88
= javascript_include_tag "application"

app/views/layouts/admin.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
!!! 5
22
%html{ lang: "en"}
3-
= render "layouts/head"
3+
= render "layouts/head", title: "Admin area"
44
%body{class: "#{app_theme} admin"}
55
= render "layouts/flash"
66
= render "layouts/head_panel", title: "Admin area"

app/views/layouts/application.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
!!! 5
22
%html{ lang: "en"}
3-
= render "layouts/head"
3+
= render "layouts/head", title: "Dashboard"
44
%body{class: "#{app_theme} application"}
55
= render "layouts/flash"
66
= render "layouts/head_panel", title: "Dashboard"

app/views/layouts/errors.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
!!! 5
22
%html{ lang: "en"}
3-
= render "layouts/head"
3+
= render "layouts/head", title: "Error"
44
%body{class: "#{app_theme} application"}
55
= render "layouts/flash"
66
= render "layouts/head_panel", title: ""

0 commit comments

Comments
 (0)