better templating, improving rpc api calls
parent
adaae35cc0
commit
bf9a17a98a
@ -0,0 +1,53 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Monero LWS Web App</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="shortcut icon" href="/static/images/favicon.ico" type="image/png">
|
||||
<meta itemprop="name" content="MyThing app">
|
||||
<meta itemprop="description" content="Monero LWS web app">
|
||||
<meta itemprop="image" content="">
|
||||
<meta property="og:url" content="">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="">
|
||||
<meta property="og:description" content="Monero LWS web app">
|
||||
<meta property="og:image" content="">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="">
|
||||
<meta name="twitter:description" content="Monero LWS web app">
|
||||
<meta name="twitter:image" content="">
|
||||
<meta name="keywords" content="Wownero, Monero, crypto, wallet, explorer">
|
||||
<link rel="stylesheet" href="https://unpkg.com/chota@latest">
|
||||
<!-- <link rel="stylesheet" href="/static/css/normalize.css">
|
||||
<link rel="stylesheet" href="/static/css/skeleton.css">
|
||||
<link rel="stylesheet" href="/static/css/main.css"> -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="nav">
|
||||
<div class="nav-left">
|
||||
<a class="{% if request.path == '/' %}active{% endif %}" href="/">Home</a>
|
||||
<a>Settings</a>
|
||||
</div>
|
||||
<!-- <div class="nav-center">
|
||||
<a class="brand">
|
||||
<img src="logo.svg" alt="">
|
||||
</a>
|
||||
</div> -->
|
||||
<div class="nav-right">
|
||||
<a>Wallets</a>
|
||||
<a href="/logout">Logout</a>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="container">
|
||||
<div style="margin: 1em;">
|
||||
{% for message in get_flashed_messages() %}
|
||||
<li>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,5 +1,10 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
{% if current_user.is_authenticated %}
|
||||
<p>hi {{ current_user.username }}</p>
|
||||
{% else %}
|
||||
<p>hi anon</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue