mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Made the hostnames clickable and open new tabs (yay)
This commit is contained in:
parent
eb391959aa
commit
eaebc48f66
@ -6,9 +6,15 @@
|
|||||||
<td>
|
<td>
|
||||||
<div>
|
<div>
|
||||||
<% domain_names.map(function(host) {
|
<% domain_names.map(function(host) {
|
||||||
|
if (host.indexOf('*') === -1) {
|
||||||
|
%>
|
||||||
|
<span class="tag host-link hover-red" rel="http<%- certificate_id ? 's' : '' %>://<%- host %>"><%- host %></span>
|
||||||
|
<%
|
||||||
|
} else {
|
||||||
%>
|
%>
|
||||||
<span class="tag"><%- host %></span>
|
<span class="tag"><%- host %></span>
|
||||||
<%
|
<%
|
||||||
|
}
|
||||||
});
|
});
|
||||||
%>
|
%>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,7 +10,8 @@ module.exports = Mn.View.extend({
|
|||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
edit: 'a.edit',
|
edit: 'a.edit',
|
||||||
delete: 'a.delete'
|
delete: 'a.delete',
|
||||||
|
host_link: '.host-link'
|
||||||
},
|
},
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
@ -22,6 +23,12 @@ module.exports = Mn.View.extend({
|
|||||||
'click @ui.delete': function (e) {
|
'click @ui.delete': function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
App.Controller.showNginxDeadDeleteConfirm(this.model);
|
App.Controller.showNginxDeadDeleteConfirm(this.model);
|
||||||
|
},
|
||||||
|
|
||||||
|
'click @ui.host_link': function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
let win = window.open($(e.currentTarget).attr('rel'), '_blank');
|
||||||
|
win.focus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -6,9 +6,15 @@
|
|||||||
<td>
|
<td>
|
||||||
<div>
|
<div>
|
||||||
<% domain_names.map(function(host) {
|
<% domain_names.map(function(host) {
|
||||||
|
if (host.indexOf('*') === -1) {
|
||||||
|
%>
|
||||||
|
<span class="tag host-link hover-green" rel="http<%- certificate_id ? 's' : '' %>://<%- host %>"><%- host %></span>
|
||||||
|
<%
|
||||||
|
} else {
|
||||||
%>
|
%>
|
||||||
<span class="tag"><%- host %></span>
|
<span class="tag"><%- host %></span>
|
||||||
<%
|
<%
|
||||||
|
}
|
||||||
});
|
});
|
||||||
%>
|
%>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,7 +10,8 @@ module.exports = Mn.View.extend({
|
|||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
edit: 'a.edit',
|
edit: 'a.edit',
|
||||||
delete: 'a.delete'
|
delete: 'a.delete',
|
||||||
|
host_link: '.host-link'
|
||||||
},
|
},
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
@ -22,6 +23,12 @@ module.exports = Mn.View.extend({
|
|||||||
'click @ui.delete': function (e) {
|
'click @ui.delete': function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
App.Controller.showNginxProxyDeleteConfirm(this.model);
|
App.Controller.showNginxProxyDeleteConfirm(this.model);
|
||||||
|
},
|
||||||
|
|
||||||
|
'click @ui.host_link': function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
let win = window.open($(e.currentTarget).attr('rel'), '_blank');
|
||||||
|
win.focus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -6,9 +6,15 @@
|
|||||||
<td>
|
<td>
|
||||||
<div>
|
<div>
|
||||||
<% domain_names.map(function(host) {
|
<% domain_names.map(function(host) {
|
||||||
|
if (host.indexOf('*') === -1) {
|
||||||
|
%>
|
||||||
|
<span class="tag host-link hover-yellow" rel="http<%- certificate_id ? 's' : '' %>://<%- host %>"><%- host %></span>
|
||||||
|
<%
|
||||||
|
} else {
|
||||||
%>
|
%>
|
||||||
<span class="tag"><%- host %></span>
|
<span class="tag"><%- host %></span>
|
||||||
<%
|
<%
|
||||||
|
}
|
||||||
});
|
});
|
||||||
%>
|
%>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,7 +10,8 @@ module.exports = Mn.View.extend({
|
|||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
edit: 'a.edit',
|
edit: 'a.edit',
|
||||||
delete: 'a.delete'
|
delete: 'a.delete',
|
||||||
|
host_link: '.host-link'
|
||||||
},
|
},
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
@ -22,6 +23,12 @@ module.exports = Mn.View.extend({
|
|||||||
'click @ui.delete': function (e) {
|
'click @ui.delete': function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
App.Controller.showNginxRedirectionDeleteConfirm(this.model);
|
App.Controller.showNginxRedirectionDeleteConfirm(this.model);
|
||||||
|
},
|
||||||
|
|
||||||
|
'click @ui.host_link': function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
let win = window.open($(e.currentTarget).attr('rel'), '_blank');
|
||||||
|
win.focus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -3,6 +3,18 @@ $yellow: #f1c40f;
|
|||||||
$blue: #467fcf;
|
$blue: #467fcf;
|
||||||
$pink: #f66d9b;
|
$pink: #f66d9b;
|
||||||
|
|
||||||
|
.tag.hover-green:hover, .tag.hover-green:active, .tag.hover-green:focus {
|
||||||
|
background-color: #5eba00;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag.hover-red:hover, .tag.hover-red:active, .tag.hover-red:focus {
|
||||||
|
background-color: #cd201f;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
/* For Card bodies where I don't want padding */
|
/* For Card bodies where I don't want padding */
|
||||||
.card-body.no-padding {
|
.card-body.no-padding {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -28,6 +40,12 @@ $pink: #f66d9b;
|
|||||||
border-color: $teal;
|
border-color: $teal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag.hover-teal:hover, .tag.hover-teal:active, .tag.hover-teal:focus {
|
||||||
|
background-color: $teal;
|
||||||
|
color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
/* Yellow Outline Buttons */
|
/* Yellow Outline Buttons */
|
||||||
.btn-outline-yellow {
|
.btn-outline-yellow {
|
||||||
color: $yellow;
|
color: $yellow;
|
||||||
@ -48,6 +66,12 @@ $pink: #f66d9b;
|
|||||||
border-color: $yellow;
|
border-color: $yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag.hover-yellow:hover, .tag.hover-yellow:active, .tag.hover-yellow:focus {
|
||||||
|
background-color: $yellow;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
/* Blue Outline Buttons */
|
/* Blue Outline Buttons */
|
||||||
.btn-outline-blue {
|
.btn-outline-blue {
|
||||||
color: $blue;
|
color: $blue;
|
||||||
@ -68,6 +92,12 @@ $pink: #f66d9b;
|
|||||||
border-color: $blue;
|
border-color: $blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag.hover-blue:hover, .tag.hover-blue:active, .tag.hover-blue:focus {
|
||||||
|
background-color: $blue;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
/* Pink Outline Buttons */
|
/* Pink Outline Buttons */
|
||||||
.btn-outline-pink {
|
.btn-outline-pink {
|
||||||
color: $pink;
|
color: $pink;
|
||||||
@ -88,6 +118,11 @@ $pink: #f66d9b;
|
|||||||
border-color: $pink;
|
border-color: $pink;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag.hover-pink:hover, .tag.hover-pink:active, .tag.hover-pink:focus {
|
||||||
|
background-color: $pink;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
/* dimmer */
|
/* dimmer */
|
||||||
|
|
||||||
.dimmer .loader {
|
.dimmer .loader {
|
||||||
|
Loading…
Reference in New Issue
Block a user