Skip to content

Commit

Permalink
Fix 403 Error Page Aesthetics (#592)
Browse files Browse the repository at this point in the history
* Add help text and fix URL validation to prepend https:// if missing

* Fix 403 error page aesthetics and ensure consistent URL generation

* reverted unnecessary changes

* Delete settings.py
  • Loading branch information
JigyasuRajput authored Jan 22, 2025
1 parent 0218e43 commit 016fc93
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions templates/403.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% extends "base_site.html" %}
{% load i18n %}

{% block title %}403 - {{ block.super }}{% endblock %}

{% block content %}
<section>
<div class="row">
<div class="col-md-12" style="margin-top: 20px">
<div class="alert alert-danger">
<h4>{% trans "Access Denied" %}</h4>
<p>{% trans "You are not authorized to view this page." %}</p>
</div>
</div>
</div>
</section>
{% endblock %}

0 comments on commit 016fc93

Please sign in to comment.