-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends 'layout/base.html' %} | ||
{% load static %} | ||
{% block content %} | ||
|
||
{% csrf_token %} | ||
<div class="container mx-auto px-2 flex flex-col"> | ||
<h3>Follow List</h3> | ||
<div>You are following {{ count }} summoner{{ count|pluralize}}.</div> | ||
<div class="flex flex-col gap-y-2 mt-2"> | ||
{% for summoner in object_list %} | ||
<div class="grid grid-cols-2"> | ||
<div> | ||
{{ summoner.get_name }} | ||
</div> | ||
<div> | ||
<form action="{% url 'following' %}" method="post"> | ||
{% csrf_token %} | ||
<input type="hidden" name="summoner_id" value="{{ summoner.id }}"> | ||
<button class="btn btn-danger" title="remove" type="submit"> | ||
x | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
{% endblock content %} |