{{define "apps_index"}}

应用中心

装什么、用什么,都由你做主。每一个应用都自带独立的版本号与更新日志:装上即用,关了无痕,想再打开随时回来。

小提示:系统至少需要一个模块保持开启,才能稳稳地运转。

{{if .Data.Error}}
{{.Data.Error}}
{{end}}
{{range .Data.Modules}} {{template "app_card" dict "App" . "CSRF" $.CSRF}} {{else}}

暂无可用的模块。

{{end}}
{{range .Data.Plugins}} {{template "app_card" dict "App" . "CSRF" $.CSRF}} {{else}}

暂无可用的插件。

{{end}}
{{range .Data.Themes}} {{template "app_card" dict "App" . "CSRF" $.CSRF}} {{else}}

暂无主题。主题让站点换一身新衣裳,敬请期待。

{{end}}
{{end}} {{define "app_card"}}
{{.App.Icon}}
{{.App.Name}} {{if .App.BuiltIn}}{{if .App.DisableOnly}}默认模块{{else}}内置{{end}}{{end}}
{{if eq .App.Type "module"}}模块{{else if eq .App.Type "plugin"}}插件{{else}}主题{{end}}

{{.App.Description}}

更新日志 作者:{{.App.Author}} {{verTag .App.Version}}
{{if .App.Installed}}已开启{{else}}未开启{{end}}
{{template "app_toggle" .}} {{if and .CSRF .App.Installed .App.Backend}}管理{{end}} 详情
{{end}} {{define "app_toggle"}} {{if .CSRF}} {{if .App.DisableOnly}} {{if .App.Installed}}
{{else}}
{{end}} {{else if .App.BuiltIn}} 内置 {{else}} {{if .App.Installed}}
{{else}}
{{end}} {{end}} {{else}} 登录后可操作 {{end}} {{end}}