mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-25 16:33:57 +01:00
Small fixes
This commit is contained in:
parent
f21e610938
commit
cb3175d149
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
|||
!.gitkeep
|
||||
|
||||
imprint.html
|
||||
data/
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
|
|
|
@ -22,7 +22,11 @@ def get_finances():
|
|||
def register(app):
|
||||
@app.route('/finances')
|
||||
def finances_view():
|
||||
data = get_finances()
|
||||
try:
|
||||
data = get_finances()
|
||||
except Exception:
|
||||
return flask.Response('Error fetching finances from database. This might be cause the data is still being processed. Sorry.', status=500)
|
||||
|
||||
finances = {
|
||||
'donations_total': round(sum([i['amount_usd'] for i in data['donations']])),
|
||||
'donations_num': len(data['donations']),
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
<b>API credits: </b> {{ user.credits or 0 }}<br>
|
||||
<b>Secret API key (click to reveal): </b>
|
||||
<br>
|
||||
<span class="secret">{{ user.api_key or '-' }}</span>
|
||||
<!-- <span class="secret">{{ user.api_key or '-' }}</span> -->
|
||||
<span class="secret">{{ "API key not shown for security reasons" or '-' }}</span>
|
||||
<br>(Click again to copy)
|
||||
<br>
|
||||
<script>
|
||||
|
|
|
@ -3,18 +3,18 @@
|
|||
|
||||
<header>
|
||||
<h1>Free Generative AI for <span class="special-gradient">Everyone</span></h1>
|
||||
<h3>Open source ・ no CC required</h3>
|
||||
<h3>Open source</h3>
|
||||
<a href="https://discord.nova-oss.com" target="_blank">
|
||||
<button class="special">
|
||||
<i class="bi bi-discord"></i>
|
||||
Join 3,400+ members
|
||||
Join 3,600+ members
|
||||
</button>
|
||||
</a>
|
||||
<a href="/login">
|
||||
<!-- <a href="/login">
|
||||
<button class="secondary">
|
||||
Log in <mark>beta</mark>
|
||||
</button>
|
||||
</a>
|
||||
</a> -->
|
||||
<br>
|
||||
</header>
|
||||
<main>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<meta http-equiv="REFRESH" content="0; url=https://youtu.be/dQw4w9WgXcQ">
|
Loading…
Reference in a new issue