Vibe translated Error.php to error.twig
This commit is contained in:
54
themes/pvv/default/error.twig
Normal file
54
themes/pvv/default/error.twig
Normal file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<title>{{ t(dictTitle) }}</title>
|
||||
<link rel="stylesheet" href="{{ getModuleURL('themepvv/style.css') }}" type="text/css">
|
||||
{% set header = t(dictTitle) %}
|
||||
{% set head = '<meta name="robots" content="noindex, nofollow" />\n<meta name="googlebot" content="noarchive, nofollow" />' %}
|
||||
<h1>{{ t(dictTitle) }}</h1>
|
||||
<div class="maintext">
|
||||
{{ t(dictDescr, parameters)|escape }}
|
||||
{% if includeTemplate is defined %}
|
||||
{% include includeTemplate %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="trackidtext">
|
||||
<p>{{ t('report_trackid') }}</p>
|
||||
<div class="input-group" style="width: 1em;">
|
||||
<pre id="trackid" class="input-left">{{ error.trackId }}</pre>
|
||||
<button data-clipboard-target="#trackid" id="btntrackid" class="btnaddonright">
|
||||
<img src="/{{ baseurlpath }}resources/icons/clipboard.svg"
|
||||
alt="Copy to clipboard">
|
||||
</button>
|
||||
</div>
|
||||
{% if showerrors %}
|
||||
<h2>{{ t('debuginfo_header') }}</h2>
|
||||
<p>{{ t('debuginfo_text') }}</p>
|
||||
|
||||
<div style="border: 1px solid #eee; padding: 1em; font-size: x-small">
|
||||
<p style="margin: 1px">{{ error.exceptionMsg|escape }}</p>
|
||||
<pre style="padding: 1em; font-family: monospace;">{{ error.exceptionTrace|escape }}</pre>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if errorReportAddress is defined %}
|
||||
<h2>{{ t('report_header') }}</h2>
|
||||
<form action="{{ errorReportAddress|escape }}" method="post">
|
||||
<p>{{ t('report_text') }}</p>
|
||||
<p>{{ t('report_email') }}
|
||||
<input type="text" size="25" name="email" value="{{ email|escape }}" />
|
||||
</p>
|
||||
<p>
|
||||
<textarea class="metadatabox" name="text" rows="6" style="width: 100%; padding: 0.5em;">{{ t('report_explain') }}</textarea>
|
||||
</p>
|
||||
<p>
|
||||
<input type="hidden" name="reportId" value="{{ error.reportId }}"/>
|
||||
<button type="submit" name="send" class="btn">{{ t('report_submit') }}</button>
|
||||
</p>
|
||||
</form>
|
||||
{% endif %}
|
||||
?>
|
||||
<h2 style="clear: both">{{ t('howto_header') }}</h2>
|
||||
<p>{{ t('howto_text') }}</p>
|
||||
<script type="text/javascript">
|
||||
var clipboard = new Clipboard('#btntrackid');
|
||||
</script>
|
||||
{% include 'includes/footer.php' %}
|
||||
Reference in New Issue
Block a user