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
e0ce00a1
Verified
Commit
e0ce00a1
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Render exception message in 404 page instead of default text
parent
ad64d255
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!871
Render message in 404 page
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+2
-0
2 additions, 0 deletions
CHANGELOG.rst
aleksis/core/templates/404.html
+1
-2
1 addition, 2 deletions
aleksis/core/templates/404.html
with
3 additions
and
2 deletions
CHANGELOG.rst
+
2
−
0
View file @
e0ce00a1
...
...
@@ -25,6 +25,8 @@ Changed
* Name collisions are resolved by prefixing with the app label
* Apps can extend SHELL_PLUS_APP_PREFIXES and SHELL_PLUS_DONT_LOAD
* Views raising a 404 error can now customise the message that is displayed on the error page
`2.5`_ – 2022-01-02
-------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/templates/404.html
+
1
−
2
View file @
e0ce00a1
...
...
@@ -7,8 +7,7 @@
<div
class=
"card red"
>
<div
class=
"card-content white-text"
>
<i
class=
"material-icons small left"
>
error_outline
</i>
<span
class=
"card-title"
>
{% trans "Error" %} (404): {% blocktrans %}The requested page or object was not
found.{% endblocktrans %}
</span>
<span
class=
"card-title"
>
{{ exception }}
</span>
<p>
{% blocktrans %}
If you were redirected by a link on an external page,
...
...
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