mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-31 03:34:36 +01:00
add amboss & 1ml links
This commit is contained in:
committed by
Carsten Otto
parent
4f616242fa
commit
c4a463ae0b
@@ -32,3 +32,13 @@
|
||||
.tile-column-right {
|
||||
padding-left: 0.375rem;
|
||||
}
|
||||
|
||||
.link-button {
|
||||
color: black;
|
||||
background: rgba(0,0,0,.03);
|
||||
border-radius: 4px;
|
||||
border: 1px solid;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
padding: 5px 10px 5px 15px;
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body}, 'Channel: ' + ${id})}">
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body})}">
|
||||
|
||||
<body>
|
||||
|
||||
<div th:replace="~{fragments/page-title :: channel-link-title(${channel.channelId})}"/>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div th:replace="~{fragments/tiles :: channel-details(${channel})}"/>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body},'')}">
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body})}">
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body},'')}">
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body})}">
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body}, ${error})}">
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body})}">
|
||||
|
||||
<body>
|
||||
|
||||
<div th:replace="~{fragments/page-title :: title(${error})}"/>
|
||||
|
||||
<p>If you use the search, your query may be:</p>
|
||||
<ol class="list-group list-group-flush">
|
||||
<li class="list-group-item">1. Channel ID (e.g. 774909407114231809, 704776x2087x1, 704776:2087:1, b343cb900bc9d606c02dc01954c78a52be4f4653e8a4ed69ce06ff7087802756:1)</li>
|
||||
<li class="list-group-item">2. Node Public Key (e.g. 03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f)</li>
|
||||
<li class="list-group-item">1. Channel ID (e.g. 774909407114231809, 704776x2087x1, 704776:2087:1,
|
||||
b343cb900bc9d606c02dc01954c78a52be4f4653e8a4ed69ce06ff7087802756:1)
|
||||
</li>
|
||||
<li class="list-group-item">2. Node Public Key (e.g.
|
||||
03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f)
|
||||
</li>
|
||||
<li class="list-group-item">3. Node Alias (e.g. ACINQ)</li>
|
||||
</ol>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!doctype html>
|
||||
|
||||
<html th:fragment="layout (template, title)" xmlns:th="https://www.thymeleaf.org">
|
||||
<html th:fragment="layout (template)" xmlns:th="https://www.thymeleaf.org">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
@@ -42,10 +42,6 @@
|
||||
|
||||
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
||||
|
||||
<div th:if="${title != ''}" class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<h1 class="h3" th:text="${title}"></h1>
|
||||
</div>
|
||||
|
||||
<th:block th:include="${template}"/>
|
||||
|
||||
<div th:replace="~{fragments/footer :: footer}"/>
|
||||
|
||||
47
ui/src/main/resources/templates/fragments/page-title.html
Normal file
47
ui/src/main/resources/templates/fragments/page-title.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<!doctype html>
|
||||
|
||||
<html xmlns:th="https://www.thymeleaf.org">
|
||||
|
||||
<div th:fragment="title(text)"
|
||||
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<h1 class="h3" th:text="${text}"></h1>
|
||||
</div>
|
||||
|
||||
<li th:fragment="ext-link-item(text, link)" class="ms-3">
|
||||
<a class="link-button" target="_blank" th:href="${link}">
|
||||
<span th:text="${text}"></span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor"
|
||||
class="bi bi-box-arrow-up-right" viewBox="0 0 16 16" style="padding-bottom: 3px;">
|
||||
<path fill-rule="evenodd"
|
||||
d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z"/>
|
||||
<path fill-rule="evenodd"
|
||||
d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<div th:fragment="channel-link-title(channelId)"
|
||||
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<div class="col-md-4 d-flex align-items-center">
|
||||
<h1 class="h3" th:text="'Channel: ' + ${channelId}"></h1>
|
||||
</div>
|
||||
|
||||
<ul class="nav col-md-4 justify-content-end list-unstyled d-flex">
|
||||
<div th:replace="~{fragments/page-title :: ext-link-item('1ML', 'https://1ml.com/channel/'+${channelId.shortChannelId})}"/>
|
||||
<div th:replace="~{fragments/page-title :: ext-link-item('Amboss', 'https://www.amboss.space/edge/'+${channelId.shortChannelId})}"/>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div th:fragment="node-link-title(alias, pubkey)"
|
||||
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<div class="col-md-4 d-flex align-items-center">
|
||||
<h1 class="h3" th:text="${alias}"></h1>
|
||||
</div>
|
||||
|
||||
<ul class="nav col-md-4 justify-content-end list-unstyled d-flex">
|
||||
<div th:replace="~{fragments/page-title :: ext-link-item('1ML', 'https://1ml.com/node/'+${pubkey})}"/>
|
||||
<div th:replace="~{fragments/page-title :: ext-link-item('Amboss', 'https://www.amboss.space/node/'+${pubkey})}"/>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</html>
|
||||
@@ -1,9 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body}, ${node.alias})}">
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body})}">
|
||||
|
||||
<body>
|
||||
|
||||
<div th:replace="~{fragments/page-title :: node-link-title(${node.alias},${node.node})}"/>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div th:replace="~{fragments/tiles :: channel-tile(${node})}"/>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body},'')}">
|
||||
<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body})}">
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user