Cleanup CSS and old pages

This commit is contained in:
Taylor Helsper 2021-03-26 21:35:56 -05:00
parent 2db3d73c74
commit 095bb1ef01
23 changed files with 93 additions and 487 deletions

View File

@ -12,7 +12,7 @@ import hashlib
import json
import time
mynode_bitcoind = Blueprint('mynode_bitcoind',__name__)
mynode_bitcoin = Blueprint('mynode_bitcoin',__name__)
def runcmd(cmd):
@ -27,7 +27,7 @@ def cleanup_download_wallets():
os.system("rm -rf /tmp/download_wallets/*")
### Page functions
@mynode_bitcoind.route("/bitcoind")
@mynode_bitcoin.route("/bitcoin")
def bitcoind_status_page():
check_logged_in()
@ -94,10 +94,11 @@ def bitcoind_status_page():
except Exception as e:
templateData = {
"title": "myNode Bitcoin Error",
"header": "Bitcoin Status",
"message": Markup("Error communicating with bitcoind. Node may be busy syncing.<br/><br/>{}".format(str(e))),
"ui_settings": read_ui_settings()
}
return render_template('bitcoind_status_error.html', **templateData)
return render_template('error.html', **templateData)
templateData = {
@ -118,15 +119,15 @@ def bitcoind_status_page():
"version": version,
"ui_settings": read_ui_settings()
}
return render_template('bitcoind_status.html', **templateData)
return render_template('bitcoin.html', **templateData)
@mynode_bitcoind.route("/bitcoind/download_wallet", methods=["GET"])
@mynode_bitcoin.route("/download_wallet", methods=["GET"])
def bitcoin_download_wallet():
check_logged_in()
wallet_name = request.args.get('wallet')
if wallet_name is None:
flash("Error finding wallet to download!", category="error")
return redirect("/bitcoind")
return redirect("/bitcoin")
os.system("mkdir -p /tmp/download_wallets")
os.system("chmod 777 /tmp/download_wallets")
@ -134,19 +135,19 @@ def bitcoin_download_wallet():
if not os.path.isfile("/tmp/download_wallets/"+wallet_name):
flash("Error exporting wallet data for download", category="error")
return redirect("/bitcoind")
return redirect("/bitcoin")
t = Timer(3.0, cleanup_download_wallets)
t.start()
return send_from_directory(directory="/tmp/download_wallets/", filename=wallet_name, as_attachment=True)
@mynode_bitcoind.route("/bitcoind/bitcoin_whitepaper.pdf")
@mynode_bitcoin.route("/bitcoin/bitcoin_whitepaper.pdf")
def bitcoin_whitepaper_pdf():
check_logged_in()
return send_from_directory(directory="/mnt/hdd/mynode/bitcoin/", filename="bitcoin_whitepaper.pdf")
@mynode_bitcoind.route("/bitcoind/reset_config")
@mynode_bitcoin.route("/bitcoin/reset_config")
def bitcoin_reset_config_page():
check_logged_in()
@ -165,7 +166,7 @@ def bitcoin_reset_config_page():
}
return render_template('reboot.html', **templateData)
@mynode_bitcoind.route("/bitcoind/config", methods=['GET','POST'])
@mynode_bitcoin.route("/bitcoin/config", methods=['GET','POST'])
def bitcoind_config_page():
check_logged_in()
@ -197,9 +198,9 @@ def bitcoind_config_page():
"bitcoin_config": bitcoin_config,
"ui_settings": read_ui_settings()
}
return render_template('bitcoind_config.html', **templateData)
return render_template('bitcoin_config.html', **templateData)
@mynode_bitcoind.route("/bitcoind/cli")
@mynode_bitcoin.route("/bitcoin/cli")
def bitcoincli():
check_logged_in()
@ -210,7 +211,7 @@ def bitcoincli():
}
return render_template('bitcoin_cli.html', **templateData)
@mynode_bitcoind.route("/bitcoind/cli-run", methods=['POST'])
@mynode_bitcoin.route("/bitcoin/cli-run", methods=['POST'])
def runcmd_page():
check_logged_in()

View File

@ -130,10 +130,11 @@ def page_lnd():
except Exception as e:
templateData = {
"title": "myNode Lightning Status",
"header": "Lightning Status",
"message": str(e),
"ui_settings": read_ui_settings()
}
return render_template('lnd_error.html', **templateData)
return render_template('error.html', **templateData)
templateData = {
"title": "myNode Lightning Status",
@ -224,10 +225,12 @@ def page_lnd_create_wallet():
except:
templateData = {
"title": "myNode Lightning Wallet",
"show_lightning_back_button": True,
"header": "Lightning Status",
"message": Markup("Waiting on Lightning...<br/>Please try again in a minute."),
"ui_settings": read_ui_settings()
}
return render_template('lnd_error.html', **templateData)
return render_template('error.html', **templateData)
templateData = {
"title": "myNode Lightning Wallet",

View File

@ -3,7 +3,7 @@ from config import *
from flask import Flask, render_template, Markup, send_from_directory, redirect, request, url_for
from user_management import *
from api import mynode_api
from bitcoind import mynode_bitcoind
from bitcoin import mynode_bitcoin
from whirlpool import mynode_whirlpool, get_whirlpool_status
from dojo import mynode_dojo, get_dojo_status
from joininbox import mynode_joininbox
@ -73,7 +73,7 @@ my_logger.addHandler(handler)
app.logger.addHandler(my_logger)
app.logger.setLevel(logging.INFO)
app.register_blueprint(mynode_bitcoind)
app.register_blueprint(mynode_bitcoin)
app.register_blueprint(mynode_lnd)
app.register_blueprint(mynode_api)
app.register_blueprint(mynode_whirlpool)

View File

@ -1,7 +1,7 @@
from config import *
from flask import Blueprint, render_template, session, abort, Markup, request, redirect, send_from_directory, url_for, flash, current_app
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
from bitcoind import is_bitcoind_synced
from bitcoin import is_bitcoind_synced
from bitcoin_info import using_bitcoin_custom_config
from lightning_info import using_lnd_custom_config
from pprint import pprint, pformat

View File

@ -158,6 +158,14 @@ td, th {
padding-bottom: 10px;
}
.large_error_message {
color: #BB4444;
text-align: center;
font-size: 28px;
font-family: Arial, Helvetica, sans-serif;
padding-top: 20px;
}
.app_tile_row_divider_left {
width: 50%;
float: left;
@ -323,6 +331,34 @@ td, th {
background: green;
}
.bitcoind_table {
width: 1000px;
margin: auto;
text-align: center;
vertical-align: middle;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
}
.bitcoind_table_header {
font-size: 16px;
background-color: #FFFFFF;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
}
table.bitcoind_table tbody tr:nth-child(odd) td{
background-color: #ffa5000d;
}
table.bitcoind_table tbody tr:nth-child(even) td{
background-color: #fff;
}
table.bitcoind_table td {
padding: 10px 0;
margin: 0px;
}
.green { background-color: green; }
.yellow { background-color: yellow; }

View File

@ -1,63 +0,0 @@
.bitcoind_search {
width: 600px;
margin: auto;
display: table;
padding: 10px;
vertical-align: middle;
}
.bitcoind_search_input {
width: 480px;
font-size: 20px;
vertical-align: middle;
}
.bitcoind_search_button {
width: 100px;
font-size: 16px;
vertical-align: middle;
}
.bitcoind_search_text {
font-size: 12px;
font-style: italic;
color: #888888;
}
.bitcoind_error_message {
color: #BB4444;
text-align: center;
font-size: 28px;
font-family: Arial, Helvetica, sans-serif;
padding-top: 20px;
}
.bitcoind_table {
width: 1000px;
margin: auto;
text-align: center;
vertical-align: middle;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
}
.bitcoind_table_header {
font-size: 16px;
background-color: #FFFFFF;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
}
table.bitcoind_table tbody tr:nth-child(odd) td{
background-color: #ffa5000d;
}
table.bitcoind_table tbody tr:nth-child(even) td{
background-color: #fff;
}
table.bitcoind_table td {
padding: 10px 0;
margin: 0px;
}
.bitcoind_dump_contents {
margin: auto;
width: 600px;
}

View File

@ -1,19 +0,0 @@
.bitcoind_search_text {
color: #888888;
}
.bitcoind_error_message {
color: #BB4444;
}
.bitcoind_table_header {
border-bottom: 2px solid gray;
background-color: unset;
}
table.bitcoind_table tbody tr:nth-child(odd) td{
background-color: #ffffff05;
}
table.bitcoind_table tbody tr:nth-child(even) td{
background-color: unset;
}

View File

@ -70,6 +70,17 @@ table,
background-color: #f9c132;
}
.bitcoind_table_header {
border-bottom: 2px solid gray;
background-color: unset;
}
table.bitcoind_table tbody tr:nth-child(odd) td{
background-color: #ffffff05;
}
table.bitcoind_table tbody tr:nth-child(even) td{
background-color: unset;
}
.settings_block_header {

View File

@ -95,15 +95,15 @@
<table class="info_table">
<tr>
<th>Config</th>
<td><a class="ui-button ui-widget ui-corner-all mynode_button_small" style="width: 100px;" href="/bitcoind/config">view / edit</a></td>
<td><a class="ui-button ui-widget ui-corner-all mynode_button_small" style="width: 100px;" href="/bitcoin/config">view / edit</a></td>
</tr>
<tr>
<th>CLI</th>
<td><a class="ui-button ui-widget ui-corner-all mynode_button_small" style="width: 100px;" href="/bitcoind/cli">CLI</a></td>
<td><a class="ui-button ui-widget ui-corner-all mynode_button_small" style="width: 100px;" href="/bitcoin/cli">CLI</a></td>
</tr>
<tr>
<th>Whitepaper</th>
<td><a class="ui-button ui-widget ui-corner-all mynode_button_small" style="width: 100px;" href="/bitcoind/bitcoin_whitepaper.pdf">download</a></td>
<td><a class="ui-button ui-widget ui-corner-all mynode_button_small" style="width: 100px;" href="/bitcoin/bitcoin_whitepaper.pdf">download</a></td>
</tr>
</table>
</div>
@ -138,7 +138,7 @@
{% endif %}
</td>
<td>
<a class="ui-button ui-widget ui-corner-all mynode_button_small" style="width: 100px;" href="/bitcoind/download_wallet?wallet={{wallet.walletname|urlencode}}">download</a>
<a class="ui-button ui-widget ui-corner-all mynode_button_small" style="width: 100px;" href="/bitcoin/download_wallet?wallet={{wallet.walletname|urlencode}}">download</a>
</td>
</tr>
{% endfor %}

View File

@ -26,7 +26,7 @@
$("#cmd").prop("disabled", true);
$("#submit_btn").prop("disabled", true);
var posting = $.post( "/bitcoind/cli-run", {cmd: cmd} );
var posting = $.post( "/bitcoin/cli-run", {cmd: cmd} );
posting.done(function( data ) {
console.log("Response:" + data)
@ -49,7 +49,7 @@
<body>
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/bitcoind"><span class="ui-icon ui-icon-arrowthick-1-w"></span>back&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/bitcoin"><span class="ui-icon ui-icon-arrowthick-1-w"></span>back&nbsp;</a>
</div>
<div class="main_header">Bitcoin CLI</div>
@ -57,7 +57,7 @@
<div class="cli_contents" id="cli_scrollable"><pre id="cli_contents"></pre></div>
<div class="cli_command">
<form id="cmd_form" action="/bitcoind/cli-run">
<form id="cmd_form" action="/bitcoin/cli-run">
<input class="ui-corner-all cli_command_input" id="cmd" name="cmd" type="text" autofocus>
<input type="submit" id="submit_btn" class="ui-button ui-widget ui-corner-all cli_enter_button" value="Enter">
<div class="small_message">Enter 'help' to see the list of possible commands.</div>

View File

@ -8,7 +8,7 @@
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/bitcoind"><span class="ui-icon ui-icon-arrowthick-1-w"></span>back&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/bitcoin"><span class="ui-icon ui-icon-arrowthick-1-w"></span>back&nbsp;</a>
</div>
{% include 'includes/message_display.html' %}
@ -27,11 +27,11 @@
{% endif %}
</div>
<div class="centered_text_div">
<form action="/bitcoind/config" method="POST">
<form action="/bitcoin/config" method="POST">
<textarea class="config_textarea" name="custom_config" id="custom_config">{{ bitcoin_config }}</textarea>
<br/><br/>
<input class="ui-button ui-widget ui-corner-all" type="submit" value="Save"/>
<a href="/bitcoind/reset_config" class="ui-button ui-widget ui-corner-all">Reset Config</a>
<a href="/bitcoin/reset_config" class="ui-button ui-widget ui-corner-all">Reset Config</a>
</form>
</div>

View File

@ -1,62 +0,0 @@
<!DOCTYPE html lang="en">
<head>
<title>{{ title }}</title>
{% include 'includes/head.html' %}
</head>
<body>
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/explorer"><span class="ui-icon ui-icon-search"></span>bitcoin&nbsp;</a>
</div>
<div class="main_header">Bitcoin Explorer</div>
<br/>
<div class="bitcoind_search">
<form action="/explorer/search" method="POST">
<input class="ui-corner-all bitcoind_search_input" name="search" type="text">
<input type="submit" class="ui-button ui-widget ui-corner-all bitcoind_search_button" value="Search">
<br/>
<span class="bitcoind_search_text">Search for addresses, blocks, or transactions...</span>
</form>
</div>
<br/>
<div class="main_header">Address</div>
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">Address</div>
<div class="info_tile_contents">{{address}}</div>
</div>
</div>
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">Confirmed Balance</div>
<div class="info_tile_contents">{{confirmed_balance}} BTC</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Unconfirmed Balance</div>
<div class="info_tile_contents">{{unconfirmed_balance}} BTC</div>
</div>
</div>
<div class="main_header">Transactions</div>
<table class="bitcoind_table">
<thead class="bitcoind_table_header">
<td>TX ID</td>
<td>Block</td>
</thead>
<tbody>
{% for tx in txs %}
<tr>
<td><a href="/explorer/tx/{{ tx.tx_hash }}">{{ tx.tx_hash }}</a></td>
<td>{% if tx.height %} {{ tx.height }} {% else %} Unconfirmed {% endif %}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% include 'includes/footer.html' %}
</body>
</html>

View File

@ -1,71 +0,0 @@
<!DOCTYPE html lang="en">
<head>
<title>{{ title }}</title>
{% include 'includes/head.html' %}
</head>
<body>
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/explorer"><span class="ui-icon ui-icon-search"></span>bitcoin&nbsp;</a>
</div>
<div class="main_header">Bitcoin Explorer</div>
<br/>
<div class="bitcoind_search">
<form action="/explorer/search" method="POST">
<input class="ui-corner-all bitcoind_search_input" name="search" type="text">
<input type="submit" class="ui-button ui-widget ui-corner-all bitcoind_search_button" value="Search">
<br/>
<span class="bitcoind_search_text">Search for addresses, blocks, or transactions...</span>
</form>
</div>
<br/>
<div class="main_header">Block {{height}}</div>
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">Hash</div>
<div class="info_tile_contents">{{hash}}</div>
</div>
</div>
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">Confirmations</div>
<div class="info_tile_contents">{{confirmations}}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Transactions</div>
<div class="info_tile_contents">{{num_tx}}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Difficulty</div>
<div class="info_tile_contents">{{difficulty}}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Size</div>
<div class="info_tile_contents">{{size}} kB</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Date</div>
<div class="info_tile_contents">{{date}}</div>
</div>
</div>
<div class="main_header">Transactions</div>
<table class="bitcoind_table">
<thead class="bitcoind_table_header">
<td>TX ID</td>
</thead>
<tbody>
{% for tx in txs %}
<tr>
<td><a href="/explorer/tx/{{ tx }}">{{ tx }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% include 'includes/footer.html' %}
</body>
</html>

View File

@ -1,30 +0,0 @@
<!DOCTYPE html lang="en">
<head>
<title>{{ title }}</title>
{% include 'includes/head.html' %}
</head>
<body>
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/explorer"><span class="ui-icon ui-icon-search"></span>bitcoin&nbsp;</a>
</div>
<div class="main_header">Bitcoin Status</div>
<br/>
<div class="bitcoind_search">
<form action="/explorer/search" method="POST">
<input class="ui-corner-all bitcoind_search_input" name="search" type="text">
<input type="submit" class="ui-button ui-widget ui-corner-all bitcoind_search_button" value="Search">
<br/>
<span class="bitcoind_search_text">Search for addresses, blocks, or transactions...</span>
</form>
</div>
<div class="bitcoind_error_message">{{message}}</div>
{% include 'includes/footer.html' %}
</body>
</html>

View File

@ -1,64 +0,0 @@
<!DOCTYPE html lang="en">
<head>
<title>{{ title }}</title>
{% include 'includes/head.html' %}
</head>
<body>
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
</div>
<div class="main_header">Bitcoin Explorer</div>
<br/>
<div class="bitcoind_search">
<form action="/explorer/search" method="POST">
<input class="ui-corner-all bitcoind_search_input" name="search" type="text">
<input type="submit" class="ui-button ui-widget ui-corner-all bitcoind_search_button" value="Search">
<br/>
<span class="bitcoind_search_text">Search for addresses, blocks, or transactions...</span>
</form>
</div>
<br/>
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">Blocks</div>
<div class="info_tile_contents">{{block_num}}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Mempool TX</div>
<div class="info_tile_contents">{{mempool_tx}}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Mempool Size</div>
<div class="info_tile_contents">{{mempool_size}}</div>
</div>
</div>
<br/>
<div class="main_header">Recent Blocks</div>
<table class="bitcoind_table">
<thead class="bitcoind_table_header">
<td>Height</td>
<td>Age</td>
<td>Transactions</td>
<td>Size (kB)</td>
</thead>
<tbody>
{% for block in blocks %}
<tr>
<td><a href="/explorer/block/{{ block.hash }}">{{ block.height }}</a></td>
<td>{{ block.age }}</td>
<td>{{ block.nTx }}</td>
<td>{{ block.size }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% include 'includes/footer.html' %}
</body>
</html>

View File

@ -1,20 +0,0 @@
<!DOCTYPE html lang="en">
<head>
<title>{{ title }}</title>
{% include 'includes/head.html' %}
</head>
<body>
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/bitcoind"><span class="ui-icon ui-icon-info"></span>bitcoin&nbsp;</a>
</div>
<div class="main_header">Bitcoin Status</div>
<div class="bitcoind_error_message">{{message}}</div>
{% include 'includes/footer.html' %}
</body>
</html>

View File

@ -1,106 +0,0 @@
<!DOCTYPE html lang="en">
<head>
<title>{{ title }}</title>
{% include 'includes/head.html' %}
</head>
<body>
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/explorer"><span class="ui-icon ui-icon-search"></span>bitcoin&nbsp;</a>
</div>
<div class="main_header">Bitcoin Explorer</div>
<br/>
<div class="bitcoind_search">
<form action="/explorer/search" method="POST">
<input class="ui-corner-all bitcoind_search_input" name="search" type="text">
<input type="submit" class="ui-button ui-widget ui-corner-all bitcoind_search_button" value="Search">
<br/>
<span class="bitcoind_search_text">Search for addresses, blocks, or transactions...</span>
</form>
</div>
<br/>
<div class="main_header">Transaction</div>
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">TX ID</div>
<div class="info_tile_contents">{{txid}}</div>
</div>
</div>
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">Size</div>
<div class="info_tile_contents">{{size}}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Weight</div>
<div class="info_tile_contents">{{weight}}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Total</div>
<div class="info_tile_contents">{{total}} BTC</div>
</div>
</div>
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">Confirmations</div>
<div class="info_tile_contents">{{confirmations}}</div>
</div>
{% if confirmed %}
<!--
<div class="info_tile">
<div class="info_tile_header">In Block</div>
<div class="info_tile_contents"><a href="/explorer/block/{{block_hash}}">{{block_height}}</a></div>
</div>
-->
<div class="info_tile">
<div class="info_tile_header">Confirm Date</div>
<div class="info_tile_contents">{{block_date}}</div>
</div>
{% endif %}
</div>
<div class="main_header">Inputs</div>
<table class="bitcoind_table">
<thead class="bitcoind_table_header">
<td>Address</td>
</thead>
<tbody>
{% for i in inputs %}
<tr>
{% if i == "New Coins" %}
<td>{{ i }}</td>
{% else %}
<td><a href="/explorer/addr/{{ i }}">{{ i }}</a></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
<br/>
<div class="main_header">Outputs</div>
<table class="bitcoind_table">
<thead class="bitcoind_table_header">
<td>Address</td>
<td>Amount</td>
</thead>
<tbody>
{% for o in outputs %}
<tr>
<td><a href="/explorer/addr/{{ o.address }}">{{ o.address }}</a></td>
<td>{{ o.amount }} BTC</td>
</tr>
{% endfor %}
</tbody>
</table>
{% include 'includes/footer.html' %}
</body>
</html>

View File

@ -52,7 +52,7 @@
<li>You may need to visit the URL in your browser and accept the HTTPS certificate</li>
</ul>
<li>Change the Username to "mynode"</li>
<li>Change the Password to the RPC Password from the <a href="/bitcoind">Bitcoin page</a></li>
<li>Change the Password to the RPC Password from the <a href="/bitcoin">Bitcoin page</a></li>
<li>Click "Test Connection"</li>
<li>You should see a success message!</li>
</ol>

View File

@ -8,11 +8,21 @@
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
{% if show_bitcoin_back_button is defined and show_bitcoin_back_button is not none %}
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/bitcoin"><span class="ui-icon ui-icon-info"></span>bitcoin&nbsp;</a>
{% endif %}
{% if show_lightning_back_button is defined and show_lightning_back_button is not none %}
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/lnd"><span class="ui-icon ui-icon-transfer-e-w"></span>lightning&nbsp;</a>
{% endif %}
</div>
{% if header is defined and header is not none %}
<div class="main_header">{{header}}</div>
{% else %}
<div class="main_header">myNode Error</div>
{% endif %}
<div class="bitcoind_error_message">{{message}}</div>
<div class="large_error_message">{{message}}</div>
{% include 'includes/footer.html' %}
</body>

View File

@ -1,10 +1,8 @@
<link rel="shortcut icon" href="{{ url_for('static', filename='images/favicon.ico') }}">
<link href="{{ url_for('static', filename='jquery_ui/jquery-ui.css')}}" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/mynode.css')}}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/mynode_bitcoind.css')}}">
{% if ui_settings['darkmode'] %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/mynode_dark.css')}}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/mynode_bitcoind_dark.css')}}">
{% endif %}
<link href="{{ url_for('static', filename='jquery_ui/jquery-ui.css')}}" rel="stylesheet">
<meta http-equiv="Content-Language" content="en">

View File

@ -10,7 +10,7 @@
<div class="app_status" style="color: green; margin-top: 3px;">Testnet</div>
{% endif %}
<div class="app_contents">
<a class="ui-button ui-widget ui-corner-all mynode_button" href="/bitcoind">Manage</a>
<a class="ui-button ui-widget ui-corner-all mynode_button" href="/bitcoin">Manage</a>
</div>
</div>
<div style="width: 230px; padding-left: 10px; float: right;">

View File

@ -1,18 +0,0 @@
<!DOCTYPE html lang="en">
<head>
<title>{{ title }}</title>
{% include 'includes/head.html' %}
</head>
<body>
{% include 'includes/logo_header.html' %}
<div class="mynode_back_div">
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/"><span class="ui-icon ui-icon-home"></span>home&nbsp;</a>
<a class="ui-button ui-widget ui-corner-all mynode_back" href="/lnd"><span class="ui-icon ui-icon-transfer-e-w"></span>ln status&nbsp;</a>
</div>
<div class="bitcoind_error_message">{{message}}</div>
{% include 'includes/footer.html' %}
</body>
</html>

View File

@ -660,7 +660,7 @@
<i>You are currently using a custom Bitcoin config.</i>
<br/><br/>
{% endif %}
<a href="/bitcoind/config" class="ui-button ui-widget ui-corner-all settings_button">Edit Config</a>
<a href="/bitcoin/config" class="ui-button ui-widget ui-corner-all settings_button">Edit Config</a>
<div class="divider"></div>