forked from forks/microblog.pub
Hide lists action when there's no lists
This commit is contained in:
parent
679acce20a
commit
22c27dbd88
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||||
<button type="submit" class="bar-item">unfollow</button>
|
<button type="submit" class="bar-item">unfollow</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{% if lists %}
|
||||||
<form action="/api/add_to_list" class="action-form" method="post">
|
<form action="/api/add_to_list" class="action-form" method="post">
|
||||||
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
||||||
<input type="hidden" name="actor_id" value="{{ follow.id }}"/>
|
<input type="hidden" name="actor_id" value="{{ follow.id }}"/>
|
||||||
|
@ -31,6 +33,7 @@
|
||||||
</select>
|
</select>
|
||||||
<button type="submit" class="bar-item">add to list</button>
|
<button type="submit" class="bar-item">add to list</button>
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for l in lists %}
|
{% for l in lists %}
|
||||||
{% if follow.id in l.members %}
|
{% if follow.id in l.members %}
|
||||||
|
|
Loading…
Reference in a new issue