cleaning up admin, getting tips shown
parent
bd3661c063
commit
c309953be3
@ -1,37 +0,0 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>admins</h1>
|
||||
<p>
|
||||
Add a homie to be an admin. <br />
|
||||
Admins can manage other admins as well as hide artwork, <br />
|
||||
approve/reject artwork, ban artists, and verify artists.
|
||||
</p>
|
||||
<form method="post" action="">
|
||||
{{ admin_form.csrf_token }}
|
||||
<div class="row">
|
||||
<div class="two columns">
|
||||
{{ admin_form.handle }}
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<input class="button-primary" type="submit" value="Submit">
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
{%- for field, errors in admin_form.errors.items() %}
|
||||
<li>{{ ', '.join(errors) }}</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</form>
|
||||
<ul>
|
||||
{% for admin in admins %}
|
||||
<li><h6>{{ admin.handle }} - <a href="?remove={{ admin.handle }}">remove</a></h6></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -1,36 +0,0 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>artists</h1>
|
||||
<p>
|
||||
Verified artists will skip the queue <br />
|
||||
and have their artwork displayed immediately.
|
||||
</p>
|
||||
<form method="post" action="">
|
||||
{{ artist_form.csrf_token }}
|
||||
<div class="row">
|
||||
<div class="two columns">
|
||||
{{ artist_form.handle }}
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<input class="button-primary" type="submit" value="Submit">
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
{%- for field, errors in artist_form.errors.items() %}
|
||||
<li>{{ ', '.join(errors) }}</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</form>
|
||||
<ul>
|
||||
{% for artist in artists %}
|
||||
<li><h6>{{ artist.handle }} - <a href="?unverify={{ artist.handle }}">remove</a></h6></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,55 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="four columns">
|
||||
<h1>{{ admins }}</h1>
|
||||
<h5>
|
||||
<a href="{{ url_for('admin.manage', item='admins') }}">
|
||||
admin{% if admins != 1 %}s{% endif %}
|
||||
</a>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="four columns">
|
||||
<h1>{{ artists }}</h1>
|
||||
<h5>
|
||||
<a href="{{ url_for('admin.manage', item='artists') }}">
|
||||
verified<br />artist{% if artists != 1 %}s{% endif %}
|
||||
</a>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="three columns">
|
||||
<h1>{{ pending_artworks }}</h1>
|
||||
<h5>
|
||||
<a href="{{ url_for('artwork.pending') }}">
|
||||
pending<br />artwork{% if pending_artworks != 1 %}s{% endif %}</h5>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="four columns">
|
||||
<h1>{{ confirmed_tips }}</h1>
|
||||
<h5>
|
||||
<a href="{{ url_for('main.tips') }}">
|
||||
confirmed<br />tip{% if confirmed_tips != 1 %}s{% endif %}</h5>
|
||||
</a>
|
||||
</div>
|
||||
<div class="four columns">
|
||||
<h1>{{ pending_tips }}</h1>
|
||||
<h5>pending<br />tip{% if pending_tips != 1 %}s{% endif %}</h5>
|
||||
</div>
|
||||
<div class="four columns">
|
||||
<h1>{{ active_artworks }}</h1>
|
||||
<h5>
|
||||
<a href="{{ url_for('artwork.list') }}">
|
||||
active<br />artwork{% if active_artworks != 1 %}s{% endif %}
|
||||
</a>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -1,37 +0,0 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="three columns">
|
||||
<h1>{{ admins }}</h1>
|
||||
<h5>admin{% if admins != 1 %}s{% endif %}</h5>
|
||||
</div>
|
||||
<div class="three columns">
|
||||
<h1>{{ artists }}</h1>
|
||||
<h5>verified<br />artist{% if artists != 1 %}s{% endif %}</h5>
|
||||
</div>
|
||||
<div class="three columns">
|
||||
<h1>{{ active_artworks }}</h1>
|
||||
<h5>active<br />artwork{% if active_artworks != 1 %}s{% endif %}</h5>
|
||||
</div>
|
||||
<div class="three columns">
|
||||
<h1>{{ pending_artworks }}</h1>
|
||||
<h5>pending<br />artwork{% if pending_artworks != 1 %}s{% endif %}</h5>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="three columns">
|
||||
<h1>{{ confirmed_tips }}</h1>
|
||||
<h5>confirmed<br />tip{% if confirmed_tips != 1 %}s{% endif %}</h5>
|
||||
</div>
|
||||
<div class="three columns">
|
||||
<h1>{{ pending_tips }}</h1>
|
||||
<h5>pending<br />tip{% if pending_tips != 1 %}s{% endif %}</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,49 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>{{ item }}</h1>
|
||||
{% if item == 'admins' %}
|
||||
<p>
|
||||
Add a homie to be an admin. <br />
|
||||
Admins can manage other admins as well as hide artwork, <br />
|
||||
approve/reject artwork, ban artists, and verify artists.
|
||||
</p>
|
||||
{% elif item == 'artists' %}
|
||||
<p>
|
||||
Verified artists will skip the queue <br />
|
||||
and have their artwork displayed immediately.
|
||||
</p>
|
||||
{% endif %}
|
||||
<form method="post" action="">
|
||||
{{ form.csrf_token }}
|
||||
<div class="row">
|
||||
<div class="three columns">
|
||||
{{ form.handle }}
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<input class="button-primary" type="submit" value="Submit">
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
{%- for field, errors in form.errors.items() %}
|
||||
<li>{{ ', '.join(errors) }}</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</form>
|
||||
<ul>
|
||||
{% for item in items %}
|
||||
<li>
|
||||
<h6>{{ item.handle }} - <a href="?{{ action }}={{ item.handle }}">{{ action }}</a></h6>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row mt-4">
|
||||
<a href="{{ url_for('admin.dashboard') }}">...back to admin</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,34 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>tips</h1>
|
||||
<h6>{{ total | atomic }} XMR has been confirmed as sent directly to the artists on this platform.</h6>
|
||||
<table class="u-full-width">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>TXID</th>
|
||||
<th>XMR</th>
|
||||
<th>Artwork</th>
|
||||
<th>Artist</th>
|
||||
<th>Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for tx in tips %}
|
||||
<tr>
|
||||
<td><a href="{{ tx.tx_id | xmr_block_explorer }}" target="_blank">{{ tx.tx_id | shorten }}</a></td>
|
||||
<td>{{ tx.atomic_xmr | atomic }}</td>
|
||||
<td><a href="{{ url_for('artwork.show', id=tx.artwork.id) }}">{{ tx.artwork.id }}</a></td>
|
||||
<td><a href="{{ url_for('user.show', handle=tx.artwork.user.handle) }}">{{ tx.artwork.user.handle }}</a></td>
|
||||
<td>{{ tx.tx_date | humanize }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue