mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
parent
4565dd406b
commit
c2c9db737b
2 changed files with 8 additions and 3 deletions
|
@ -45,6 +45,9 @@ func (f *funcMap) Map() template.FuncMap {
|
|||
"hasOAuth2Provider": func(provider string) bool {
|
||||
return config.Opts.OAuth2Provider() == provider
|
||||
},
|
||||
"hasAuthProxy": func() bool {
|
||||
return config.Opts.AuthProxyHeader() != ""
|
||||
},
|
||||
"route": func(name string, args ...interface{}) string {
|
||||
return route.Path(f.router, name, args...)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue