Skip to content

Commit f7269bc

Browse files
committed
update
1 parent c99a3da commit f7269bc

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

template/backend/error/403.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ <h3 class="text-center">
2020
<div class="content">
2121
<h4 class="title text-center"><strong>{{"很抱歉,权限受限"|$.T}}</strong></h4>
2222
<p class="text-center"><i class="fa fa-lightbulb-o"></i> {{"您没有权限进行当前操作"|$.T}}</p>
23-
<hr/>
24-
<!-- <p class="spacer text-center">{{"如果您发现程序有异常,请联系我们修复。"|$.T}} <a href="#">{{"联系我们"|$.T}}</a></p> -->
23+
<hr/><!-- <p class="spacer text-center">{{"如果您发现程序有异常,请联系我们修复。"|$.T}} <a href="#">{{"联系我们"|$.T}}</a></p> -->
2524
<div class="row">
2625
<div class="btn-group col-sm-12">
2726
<a class="btn btn-primary btn-rad btn-lg col-sm-6" href="javascript:;" onclick="history.back()">
2827
<i class="fa fa-reply"></i>
2928
{{"回到上一页"|$.T}}
3029
</a>
31-
<a class="btn btn-success btn-rad btn-lg col-sm-6" href="/">
30+
<a class="btn btn-success btn-rad btn-lg col-sm-6" href="{{$.RootPrefix}}/">
3231
<i class="fa fa-home"></i>
3332
{{"回到首页"|$.T}}
3433
</a>

template/backend/error/404in.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<div id="cl-wrapper" class="error-container">
88
<div class="page-error">
99
<h1 class="number text-center">404</h1>
10-
{{if $.Data.debug}}
10+
{{- if $.Data.debug -}}
1111
<h2 class="description text-center">{{$.Data.content}}</h2>
12-
{{else}}
12+
{{- else -}}
1313
<h2 class="description text-center">Sorry, but this page doesn't exists!</h2>
14-
<h3 class="text-center">Would you like to go <a href="/">home</a>?</h3>
15-
{{end}}
14+
<h3 class="text-center">Would you like to go <a href="{{$.RootPrefix}}/">home</a>?</h3>
15+
{{- end -}}
1616
</div>
1717
<div class="text-center copy">
1818
<a href="{{OfficialHomepage}}" target="_blank">&copy; {{Now.Year}} {{Version}}</a>

template/backend/error/500.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,19 @@ <h3 class="text-center">
1919
<div>
2020
<div class="content">
2121
<h4 class="title text-center"><strong>{{"非常抱歉,操作出错了"|$.T}}</strong></h4>
22-
{{if $.Data.panic}}
22+
{{- if $.Data.panic -}}
2323
<pre id="panic-content">{{$.Data.content}}</pre>
24-
{{else}}
24+
{{- else -}}
2525
<p class="text-center"><i class="fa fa-lightbulb-o"></i> {{$.Data.content}}</p>
26-
{{end}}
27-
<hr/>
28-
<!-- <p class="spacer text-center">{{"如果您发现程序有异常,请联系我们修复。"|$.T}} <a href="#">{{"联系我们"|$.T}}</a></p> -->
26+
{{- end -}}
27+
<hr/><!-- <p class="spacer text-center">{{"如果您发现程序有异常,请联系我们修复。"|$.T}} <a href="#">{{"联系我们"|$.T}}</a></p> -->
2928
<div class="row">
3029
<div class="btn-group col-sm-12">
3130
<a class="btn btn-primary btn-rad btn-lg col-sm-6" href="javascript:;" onclick="history.back()">
3231
<i class="fa fa-reply"></i>
3332
{{"回到上一页"|$.T}}
3433
</a>
35-
<a class="btn btn-success btn-rad btn-lg col-sm-6" href="/">
34+
<a class="btn btn-success btn-rad btn-lg col-sm-6" href="{{$.RootPrefix}}/">
3635
<i class="fa fa-home"></i>
3736
{{"回到首页"|$.T}}
3837
</a>

template/backend/error/500_black.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<div id="cl-wrapper" class="error-container">
88
<div class="page-error">
99
<h1 class="number text-center">500</h1>
10-
{{if $.Data.debug}}
10+
{{- if $.Data.debug -}}
1111
<p><pre style="background:#000;color:#888;border:0">{{$.Data.content}}</pre></p>
12-
{{else}}
12+
{{- else -}}
1313
<h2 class="description text-center">Don't worry, there is a little turbulence!</h2>
1414
<h3 class="text-center"> We're trying to fix it, please try again later.</h3>
15-
{{end}}
15+
{{- end -}}
1616
</div>
1717
<div class="text-center copy">
1818
<a href="{{OfficialHomepage}}" target="_blank">&copy; {{Now.Year}} {{Version}}</a>

template/backend/error/other.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="page-error">
99
<h1 class="number text-center">Error</h1>
1010
<h2 class="description text-center">{{$.Data.content}}</h2>
11-
<h3 class="text-center">Would you like to go <a href="/">home</a>?</h3>
11+
<h3 class="text-center">Would you like to go <a href="{{$.RootPrefix}}/">home</a>?</h3>
1212
</div>
1313
<div class="text-center copy">
1414
<a href="{{OfficialHomepage}}" target="_blank">&copy; {{Now.Year}} {{Version}}</a>

0 commit comments

Comments
 (0)