remove unused variable

Former-commit-id: bf29debeae
pull/726/head
Henrique Dias 2017-01-25 14:08:38 +00:00
parent 1c114dedc7
commit 70924d4f13
3 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,6 @@
<title>{{.Name}}</title> <title>{{.Name}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="token" content="{{ .Token }}">
<link rel="stylesheet" href="{{ .Config.AbsoluteURL }}/_filemanagerinternal/css/normalize.css"> <link rel="stylesheet" href="{{ .Config.AbsoluteURL }}/_filemanagerinternal/css/normalize.css">
<link rel="stylesheet" href="{{ .Config.AbsoluteURL }}/_filemanagerinternal/css/fonts.css"> <link rel="stylesheet" href="{{ .Config.AbsoluteURL }}/_filemanagerinternal/css/fonts.css">
<link rel="stylesheet" href="{{ .Config.AbsoluteURL }}/_filemanagerinternal/css/styles.css"> <link rel="stylesheet" href="{{ .Config.AbsoluteURL }}/_filemanagerinternal/css/styles.css">

View File

@ -1,2 +1 @@
{{ template "content" . }} {{ template "content" . }}
<span id="token">{{ .Config.Token }}</span>

View File

@ -20,8 +20,7 @@ type Config struct {
PrefixURL string PrefixURL string
BaseURL string BaseURL string
WebDavURL string WebDavURL string
Token string // Anti CSRF token HugoEnabled bool // Enables the Hugo plugin for File Manager
HugoEnabled bool // Enables the Hugo plugin for File Manager
Users map[string]*User Users map[string]*User
BeforeSave CommandFunc BeforeSave CommandFunc
AfterSave CommandFunc AfterSave CommandFunc