diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/head.tmpl | 4 | ||||
-rw-r--r-- | templates/status/404.tmpl | 2 | ||||
-rw-r--r-- | templates/status/500.tmpl | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 171e6fde01..d5513280a0 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -21,11 +21,11 @@ <!-- Stylesheet --> <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.1.6.min.css"> - <link rel="stylesheet" href="{{AppSubUrl}}/css/gogs.css?v={{AppVer}}"> + <link rel="stylesheet" href="{{AppSubUrl}}/css/gogs.css?v={{MD5 AppVer}}"> <!-- JavaScript --> <script src="{{AppSubUrl}}/js/semantic-2.1.6.min.js"></script> - <script src="{{AppSubUrl}}/js/gogs.js?v={{AppVer}}"></script> + <script src="{{AppSubUrl}}/js/gogs.js?v={{MD5 AppVer}}"></script> <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title> </head> diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index b9874c5f17..a1b632df2a 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -3,7 +3,7 @@ <p style="margin-top: 100px"><img src="{{AppSubUrl}}/img/404.png" alt="404"/></p> <div class="ui divider"></div> <br> - <p>Application Version: {{AppVer}}</p> + {{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}} <p>If you think this is an error, please open an issue on <a href="https://github.com/gogits/gogs/issues/new">GitHub</a>.</p> </div> {{template "base/footer" .}} diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index ac2b4be71f..519a6f60f6 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -4,6 +4,6 @@ <div class="ui divider"></div> <br> {{if .ErrorMsg}}<p>An error has occurred : {{.ErrorMsg}}</p>{{end}} - <p>Application Version: {{AppVer}}</p> + {{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}} </div> {{template "base/footer" .}} |