Bug 28955: (follow-up) Set to fall back
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / maintenance.tt
1 [% USE raw %]
2 [% USE Koha %]
3 [% USE AdditionalContents %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 [% SET OpacHeader = AdditionalContents.get( location => "opacheader", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %]
9     <style>
10         #opac-maintenance-message {
11             background:none repeat scroll 0 0 #FFFFFF;
12             border:1px solid #A2A2A2;
13             border-radius: 8px 8px 8px 8px;
14             box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
15             margin:4em auto;
16             padding:1.5em;
17             position:relative;
18             right:auto;
19             top:auto;
20             width:50%;
21         }
22     </style>
23 [% END %]
24 </head>
25 <body id="opac_maintenance" class="opac">
26     [% IF ( OpacHeader ) %]
27         <div class="container-fluid">
28             <div class="row">
29                 <div class="col">
30                     [% PROCESS koha_news_block news => OpacHeader %]
31                 </div>
32             </div>
33         </div>
34     [% END %]
35     <div class="container-fluid">
36         <div class="row">
37             <div class="col">
38                 <div id="opac-maintenance-message" class="maincontent">
39                     [% IF Koha.Preference( 'OpacMaintenanceNotice' ) %]
40                         [% Koha.Preference( 'OpacMaintenanceNotice' ) | $raw %]
41                     [% ELSE %]
42                         <h1>System maintenance</h1>
43                             <p>
44                                 The [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog is offline for system maintenance. We'll be back soon!
45                                 [% IF ( Koha.Preference( 'ReplytoDefault' ) ) %]
46                                     If you have any questions, please contact the <a href="mailto:[% Koha.Preference( 'ReplytoDefault' ) | $raw %]">site administrator</a>
47                                 [% ELSIF ( Koha.Preference( 'KohaAdminEmailAddress' ) ) %]
48                                     If you have any questions, please contact the <a href="mailto:[% Koha.Preference( 'KohaAdminEmailAddress' ) | $raw %]">site administrator</a>
49                                 [% END %]
50                             </p>
51                     [% END %]
52                 </div>
53             </div>
54         </div>
55     </div>
56
57 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
58 [% BLOCK jsinclude %][% END %]