Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
erp5
Commits
9ba87c92
Commit
9ba87c92
authored
Nov 08, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_xhtml_style: show different message on NotFound error rendering
parent
9db00ea6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/standard_error_message_render.zpt
..._skins/erp5_xhtml_style/standard_error_message_render.zpt
+16
-6
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/standard_error_message_render.zpt
View file @
9ba87c92
...
@@ -3,15 +3,25 @@
...
@@ -3,15 +3,25 @@
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
metal:define-macro="standard_error_message_render"
metal:define-macro="standard_error_message_render"
tal:define="is_not_found_error python: options.get('error_type') == 'NotFound';
use_error_message python: not is_not_found_error and options.get('error_message')"
>
>
<div tal:condition="
options/
error_message" tal:content="structure options/error_message" />
<div tal:condition="
use_
error_message" tal:content="structure options/error_message" />
<div tal:condition="not:
options/
error_message">
<div tal:condition="not:
use_
error_message">
<h2 i18n:translate="">Site Error</h2>
<h2 i18n:translate="">Site Error</h2>
<p i18n:translate="">An error was encountered while publishing this resource.</p>
<p i18n:translate="">An error was encountered while publishing this resource.</p>
<p>
<tal:block tal:condition="is_not_found_error">
<strong i18n:translate="">Error Type: <span tal:replace="options/error_type" i18n:name="error_type" /></strong><br />
<p><strong i18n:translate="">Resource not found</strong></p>
<strong i18n:translate="">Error Value: <span tal:replace="options/error_value" i18n:name="error_value" /></strong><br />
<p i18n:translate="">Sorry, the requested resource does not exist.</p>
</p>
<p i18n:translate="">Check the URL and try again.</p>
<p><strong i18n:translate="">Resource:</strong> <span tal:replace="request/URL" /></p>
</tal:block>
<tal:block tal:condition="not: is_not_found_error">
<p>
<strong i18n:translate="">Error Type: <span tal:replace="options/error_type" i18n:name="error_type" /></strong><br />
<strong i18n:translate="">Error Value: <span tal:replace="options/error_value" i18n:name="error_value" /></strong><br />
</p>
</tal:block>
<hr noshade="noshade" />
<hr noshade="noshade" />
<p i18n:translate="">Troubleshooting Suggestions</p>
<p i18n:translate="">Troubleshooting Suggestions</p>
<ul>
<ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment