remove annoying "#" href buttons
This commit is contained in:
parent
3a2eda2566
commit
883cf0cee2
@ -46,7 +46,7 @@ async function initContentTable() {
|
|||||||
data: "title",
|
data: "title",
|
||||||
className: "text-truncate",
|
className: "text-truncate",
|
||||||
render: function(data, type, row) {
|
render: function(data, type, row) {
|
||||||
return `<a href="${row.url}" class="text-decoration-none" target="_blank">${data}</a>`
|
return `<a href="${row.url}" class="btn btn-link text-decoration-none" target="_blank">${data}</a>`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -54,7 +54,7 @@ async function initContentTable() {
|
|||||||
data: "subscription.name",
|
data: "subscription.name",
|
||||||
className: "text-nowrap",
|
className: "text-nowrap",
|
||||||
render: function(data, type, row) {
|
render: function(data, type, row) {
|
||||||
return `<a href="#" onclick="goToSubscription(${row.subscription.id})" class="text-decoration-none">${data}</a>`
|
return `<button type="button" onclick="goToSubscription(${row.subscription.id})" class="btn btn-link text-decoration-none">${data}</button>`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -143,7 +143,7 @@ function resolveChannelNames(guildId) {
|
|||||||
$("<a>").text(channel.text)
|
$("<a>").text(channel.text)
|
||||||
.attr("href", href)
|
.attr("href", href)
|
||||||
.attr("target", "_blank")
|
.attr("target", "_blank")
|
||||||
.addClass("text-decoration-none text-nowrap")
|
.addClass("btn btn-link text-decoration-none text-nowrap")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -40,7 +40,7 @@ async function initFiltersTable() {
|
|||||||
title: "Name",
|
title: "Name",
|
||||||
data: "name",
|
data: "name",
|
||||||
render: function(data, type, row) {
|
render: function(data, type, row) {
|
||||||
return `<a href="#" onclick="showEditFilterModal(${row.id})" class="text-decoration-none">${data}</a>`
|
return `<button type="button" onclick="showEditFilterModal(${row.id})" class="btn btn-link text-decoration-none">${data}</button>`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ async function initSubscriptionTable() {
|
|||||||
data: "name",
|
data: "name",
|
||||||
className: "text-truncate",
|
className: "text-truncate",
|
||||||
render: function(data, type, row) {
|
render: function(data, type, row) {
|
||||||
return `<a href="#" onclick="showEditSubModal(${row.id})" class="text-decoration-none">${data}</a>`;
|
return `<button type="button" onclick="showEditSubModal(${row.id})" class="btn btn-link text-decoration-none">${data}</button>`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -51,7 +51,7 @@ async function initSubscriptionTable() {
|
|||||||
data: "url",
|
data: "url",
|
||||||
className: "text-truncate",
|
className: "text-truncate",
|
||||||
render: function(data, type) {
|
render: function(data, type) {
|
||||||
return `<a href="${data}" class="text-decoration-none" target="_blank">${data}</a>`;
|
return `<a href="${data}" class="btn btn-link text-decoration-none" target="_blank">${data}</a>`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
<div class="offcanvas-body">
|
<div class="offcanvas-body">
|
||||||
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3 align-items-center">
|
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3 align-items-center">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="#" id="themeToggle" class="me-3 text-body">
|
<button type="button" id="themeToggle" class="me-3 btn btn-link p-0 text-body">
|
||||||
<i class="bi bi-sun"></i>
|
<i class="bi bi-sun"></i>
|
||||||
</a>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user