File: error.tmpl

package info (click to toggle)
movabletype-opensource 4.2.3-1%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,268 kB
  • ctags: 15,862
  • sloc: perl: 178,892; php: 26,178; sh: 161; makefile: 82
file content (54 lines) | stat: -rw-r--r-- 2,077 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<mt:setvarblock name="page_title"><__trans phrase="An error occurred"></mt:setvarblock>
<$mt:setvar name="complete" value="1"$>
<$mt:setvar name="error_page" value="1"$>
<mt:include name="include/chromeless_header.tmpl">

<mtapp:statusmsg
    id="generic-error"
    class="error">
    <mt:var name="error">
</mtapp:statusmsg>

<div class="actions-bar">
    <div class="actions-bar-inner pkg actions right">
        <button
            onclick="<mt:var name="goback">"
            type="submit"
            accesskey="s"
            class="primary-button"
            ><mt:var name="value"></button>
        <mt:if name="button_loop">
            <mt:loop name="button_loop">
            <button
                type="submit"
                <mt:if name="dialog">
                onclick="if ( window.opener ) { window.close(); } else { window.parent.closeDialog('<mt:var name="link" escape="js">'); }; return false;"
                <mt:elseif name="fs">
                onclick="window.location='<mt:var name="link" escape="js">'; return false;"
                <mt:else>
                onclick="if ( window.opener ) { window.opener.location.href='<mt:var name="link" escape="js">'; window.close(); } else { window.open('<mt:var name="link" escape="js">') }; return false;"
                </mt:if>
            ><mt:var name="label" escape="html"></button>
            </mt:loop>
        </mt:if>
        <mt:unless name="dialog">
        <button
            id="close-button"
            onclick="if ( window.opener ) { window.close(); } else { window.parent.closeDialog(); }"
            type="submit"
            accesskey="x"
            class="hidden"
            title="<__trans phrase="Close (x)">"
            ><__trans phrase="Close"></button>
        </mt:unless>
<script type="text/javascript">
/* <![CDATA[ */
// show the close button if error is in modal or popup
if ( window != window.parent || window.opener )
    document.getElementById("close-button").className = "";
/* ]]> */
</script>
    </div>
</div>

<mt:include name="include/chromeless_footer.tmpl">