Final chunk of chevrons replaced
[civicrm-core.git] / templates / CRM / common / fatal.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {* error.tpl: Display page for fatal errors. Provides complete HTML doc.*}
11 {if $config->userFramework != 'WordPress'}
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
13 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
14
15 <head>
16 <title>{$pageTitle|escape}</title>
17 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
18 <base href="{$config->resourceBase}" />
19 <style type="text/css" media="screen">
20 @import url({$config->resourceBase}css/civicrm.css);
21 @import url({$config->resourceBase}css/crm-i.css);
22 @import url({$config->resourceBase}bower_components/font-awesome/css/font-awesome.min.css);
23 </style>
24 </head>
25 <body>
26 <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
27 {else}
28 <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
29 <style type="text/css" media="screen">
30 @import url({$config->resourceBase}css/civicrm.css);
31 @import url({$config->resourceBase}css/crm-i.css);
32 @import url({$config->resourceBase}bower_components/font-awesome/css/font-awesome.min.css);
33 </style>
34 {/if}
35 <div class="messages status no-popup"> <i class="crm-i fa-exclamation-triangle crm-i-red"></i>
36 <span class="status-fatal">{ts}Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.{/ts}</span>
37 <div class="crm-section crm-error-message">{$message|escape}</div>
38 {if $error.message && $message != $error.message}
39 <hr style="solid 1px" />
40 <div class="crm-section crm-error-message">{$error.message|escape}</div>
41 {/if}
42 {if ($code OR $mysql_code OR $errorDetails) AND $config->debug}
43 <div class="crm-accordion-wrapper collapsed crm-fatal-error-details-block">
44 <div class="crm-accordion-header" onclick="toggle(this);";>
45 {ts}Error Details{/ts}
46 </div><!-- /.crm-accordion-header -->
47 <div class="crm-accordion-body">
48 {if $code}
49 <div class="crm-section">{ts}Error Code:{/ts} {$code|purify}</div>
50 {/if}
51 {if $mysql_code}
52 <div class="crm-section">{ts}Database Error Code:{/ts} {$mysql_code|purify}</div>
53 {/if}
54 {if $errorDetails}
55 <div class="crm-section">{ts}Additional Details:{/ts} {$errorDetails|purify}</div>
56 {/if}
57 </div><!-- /.crm-accordion-body -->
58 </div><!-- /.crm-accordion-wrapper -->
59 {/if}
60 <p><a href="{$config->userFrameworkBaseURL}" title="{ts}Main Menu{/ts}">{ts}Return to home page.{/ts}</a></p>
61 </div>
62 </div> {* end crm-container div *}
63 {literal}
64 <script language="JavaScript">
65 function toggle( element ) {
66 var parent = element.parentNode;
67 var className = parent.className;
68 if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') {
69 parent.className = 'crm-accordion-wrapper crm-fatal-error-details-block';
70 } else {
71 parent.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block';
72 }
73 }
74 </script>
75 {/literal}
76 {if $config->userFramework != 'WordPress'}
77 </body>
78 </html>
79 {/if}