mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-18 21:33:25 +00:00
Contextual host type colors
This commit is contained in:
@@ -7,5 +7,5 @@ if (subtitle) { %>
|
||||
<% }
|
||||
|
||||
if (link) { %>
|
||||
<a class="btn btn-teal" href="#"><%- link %></a>
|
||||
<a class="btn btn-<%- btn_color %>" href="#"><%- link %></a>
|
||||
<% } %>
|
||||
|
||||
@@ -7,6 +7,10 @@ module.exports = Mn.View.extend({
|
||||
className: 'text-center m-7',
|
||||
template: template,
|
||||
|
||||
options: {
|
||||
btn_color: 'teal'
|
||||
},
|
||||
|
||||
ui: {
|
||||
action: 'a'
|
||||
},
|
||||
@@ -20,10 +24,11 @@ module.exports = Mn.View.extend({
|
||||
|
||||
templateContext: function () {
|
||||
return {
|
||||
title: this.getOption('title'),
|
||||
subtitle: this.getOption('subtitle'),
|
||||
link: this.getOption('link'),
|
||||
action: typeof this.getOption('action') === 'function'
|
||||
title: this.getOption('title'),
|
||||
subtitle: this.getOption('subtitle'),
|
||||
link: this.getOption('link'),
|
||||
action: typeof this.getOption('action') === 'function',
|
||||
btn_color: this.getOption('btn_color')
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user