Follow button snippet
This commit is contained in:
parent
5b13959850
commit
808ca0bd60
4 changed files with 25 additions and 32 deletions
|
@ -4,10 +4,7 @@
|
|||
{% for result in results %}
|
||||
<div>
|
||||
<h2>{{ result.username }}</h2>
|
||||
<form action="/follow/{{ result.username }}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Follow"></input>
|
||||
</form>
|
||||
{% include 'snippets/follow_button.html' with user=result %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue