Disable video player based on subscription
This commit is contained in:
@@ -140,6 +140,7 @@ func (tm *TemplateManager) ParseTemplates(silent bool) {
|
||||
"div": tm.div,
|
||||
"formatData": tm.formatData,
|
||||
"formatSC": tm.formatSC,
|
||||
"noescape": tm.noEscape,
|
||||
})
|
||||
|
||||
// Parse dynamic templates
|
||||
@@ -295,6 +296,9 @@ func (tm *TemplateManager) formatSC(amt float64) string {
|
||||
}
|
||||
return fmtSize(amt/1e-24, "H")
|
||||
}
|
||||
func (tm *TemplateManager) noEscape(t string) template.HTML {
|
||||
return template.HTML(t)
|
||||
}
|
||||
|
||||
func detectInt(i interface{}) int {
|
||||
switch v := i.(type) {
|
||||
|
Reference in New Issue
Block a user