Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
17be5e80
Verified
Commit
17be5e80
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Fix CSS classes in error pages and show custom error message on 403
parent
3ffe64e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!311
Resolve "Fix design of custom error pages"
Pipeline
#2767
passed
4 years ago
Stage: test
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
aleksis/core/templates/403.html
+10
-4
10 additions, 4 deletions
aleksis/core/templates/403.html
aleksis/core/templates/500.html
+1
-1
1 addition, 1 deletion
aleksis/core/templates/500.html
aleksis/core/templates/503.html
+1
-1
1 addition, 1 deletion
aleksis/core/templates/503.html
with
12 additions
and
6 deletions
aleksis/core/templates/403.html
+
10
−
4
View file @
17be5e80
...
...
@@ -5,10 +5,16 @@
{% block content %}
<div
class=
"container"
>
<div
class=
"card red"
>
<div
class=
"card white-text"
>
<i
class=
"material-icons small"
>
error_outline
</i>
<span
class=
"card-title"
>
{% trans "Error" %} (403): {% blocktrans %}You are not allowed to access the requested page or
object.{% endblocktrans %}
</span>
<div
class=
"card-content white-text"
>
<i
class=
"material-icons small left"
>
error_outline
</i>
<span
class=
"card-title"
>
{% if exception %}
{{ exception }}
{% else %}
{% trans "Error" %} (403): {% blocktrans %}You are not allowed to access the requested page or
object.{% endblocktrans %}
{% endif %}
</span>
<p>
{% blocktrans %}
If you think this is an error in AlekSIS, please contact your site
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/templates/500.html
+
1
−
1
View file @
17be5e80
...
...
@@ -6,7 +6,7 @@
<div
class=
"container"
>
<div
class=
"card red"
>
<div
class=
"card-content white-text"
>
<div
class=
"material-icons small"
>
error_outline
</div>
<div
class=
"material-icons small
left
"
>
error_outline
</div>
<span
class=
"card-title"
>
{% trans "Error" %} (500): {% blocktrans %}An unexpected error has
occured.{% endblocktrans %}
</span>
<p>
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/templates/503.html
+
1
−
1
View file @
17be5e80
...
...
@@ -6,7 +6,7 @@
<div
class=
"container"
>
<div
class=
"card red"
>
<div
class=
"card-content white-text"
>
<div
class=
"material-icons small"
>
error_outline
</div>
<div
class=
"material-icons small
left
"
>
error_outline
</div>
<span
class=
"card-title"
>
{% blocktrans %}The maintenance mode is currently enabled. Please try again
later.{% endblocktrans %}
</span>
<p>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment