add and remove front

list shows up in a header bar on the home page
This commit is contained in:
cube
2026-03-17 13:26:49 +00:00
parent b6732c2ebd
commit 5d770587b4
7 changed files with 83 additions and 32 deletions

View File

@@ -17,16 +17,16 @@
<div class="profile" id="{{ member[0] }}">
<div class="heading"><b>{{ member[3] }}</b> {{ member[4] }}</div>
{% if member[6] != None %}
{% if icons[member[0]] %}
<img src="{{ url_for('static', filename='icons/'+icons[member[0]]) }}" class="icon">
{% else %}
<img src="{{ url_for('static', filename='icons/any.jpg') }}" class="icon">
<img src="{{ url_for('static', filename='any.jpg') }}" class="icon">
{% endif %}
<div class="bio">
{{ member[5] }}
</div>
<br class="clear" />
{% if g.user %}<div class="heading links"><a href="">Add to Front</a> &#9734 <a href="{{ url_for('manage.edit', mid=member[0]) }}">Edit</a> &#9734 <a href="">Pin to Homepage</a></div>{% endif %}
{% if g.user %}<div class="heading links">{% if member[8]==0 %}<a href="{{ url_for('manage.add_to_front', mid=member[0]) }}">Add to Front</a>{% else %}<a href="{{ url_for('manage.remove_front', mid=member[0]) }}">Remove from Front</a>{% endif %} &#9734 <a href="{{ url_for('manage.edit', mid=member[0]) }}">Edit</a> &#9734 <a href="">Pin to Homepage</a></div>{% endif %}
<!-- <img src="/geo/dsgame.webp" class="dsgame"> -->
<br class="clear" />
</div>