Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6b22a423
authored
Aug 12, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Refactor 403 error page template for improved structure and readability
1 parent
8a2074c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
25 deletions
opensipkd/base/views/templates/403.pt
opensipkd/base/views/templates/403_old.pt
opensipkd/base/views/templates/403.pt
View file @
6b22a42
<html
tal:define=
"home request.home;"
>
<body>
<div
class=
"well"
>
<h3>
Forbidden
</h3>
<!-- Error session flash -->
<div
tal:condition=
"request.session.peek_flash()"
>
<div
class=
"alert alert-success"
tal:repeat=
"message request.session.pop_flash()"
><i
class=
"fa fa-fw fa-lg fa-check-circle"
></i>
${message}
</div>
</div>
<div
tal:condition=
"request.session.peek_flash('error')"
>
<div
class=
"alert alert-danger"
tal:repeat=
"message request.session.pop_flash('error')"
><i
class=
"fa fa-fw fa-lg fa-times-circle"
></i>
${message}
</div>
</div>
<!-- Error session flash -->
<p><img
src=
"${home}/static/img/logo.png"
class=
"img-float img-thumbnail"
/></p>
Anda tidak berhak mengakses halaman
<span
style=
"color:red;"
>
${url}
</span><br>
<b>
Silahkan Hubungi Administrator
</b><br>
<a
href=
"${request.referer}"
tal:condition=
request.referer
>
Kembali ke Halaman Sebelumnya
</a>
<a
href=
"${home}/"
tal:condition=
"not request.referer"
>
Kembali ke Halaman Utama
</a>
</div>
</body>
<html
metal:use-macro=
"load: ./base5.pt"
>
<div
metal:fill-slot=
"content"
>
<h3>
Forbidden
</h3>
Anda tidak berhak mengakses halaman
<span
style=
"color:red;"
>
${url}
</span><br>
<b>
Silahkan Hubungi Administrator
</b><br>
<a
href=
"${request.referer}"
tal:condition=
request.referer
>
Kembali ke Halaman Sebelumnya
</a>
<a
href=
"${home}/"
tal:condition=
"not request.referer"
>
Kembali ke Halaman Utama
</a>
</div>
</html>
\ No newline at end of file
opensipkd/base/views/templates/403_old.pt
0 → 100644
View file @
6b22a42
<html
tal:define=
"home '';"
>
<h3>
Forbidden
</h3>
<!-- Error session flash -->
<div
tal:condition=
"request.session.peek_flash()"
>
<div
class=
"alert alert-success"
tal:repeat=
"message request.session.pop_flash()"
><i
class=
"fa fa-fw fa-lg fa-check-circle"
></i>
${message}
</div>
</div>
<div
tal:condition=
"request.session.peek_flash('error')"
>
<div
class=
"alert alert-danger"
tal:repeat=
"message request.session.pop_flash('error')"
><i
class=
"fa fa-fw fa-lg fa-times-circle"
></i>
${message}
</div>
</div>
<!-- Error session flash -->
<p><img
src=
"${home}/static/img/logo.png"
class=
"img-float img-thumbnail"
/></p>
Anda tidak berhak mengakses halaman
<span
style=
"color:red;"
>
${url}
</span><br>
<b>
Silahkan Hubungi Administrator
</b><br>
<a
href=
"${request.referer}"
tal:condition=
request.referer
>
Kembali ke Halaman Sebelumnya
</a>
<a
href=
"${home}/"
tal:condition=
"not request.referer"
>
Kembali ke Halaman Utama
</a>
</div>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment