File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,20 @@ <h2>Other People</h2>
22
22
< a href ="{% url 'accounts:view_profile_with_pk' pk=user.pk %} ">
23
23
< h3 > {{ user.username }}</ h3 >
24
24
</ a >
25
+ {% if not user in friends %}
26
+ < a href ="{% url 'home:change_friends' operation='add' pk=user.pk %} ">
27
+ < button type ="button " class ="btn btn-success "> Add Friend</ button >
28
+ </ a >
29
+ {% endif %}
25
30
{% endfor %}
26
31
< h2 > Friends</ h2 >
27
32
{% for friend in friends %}
28
- < a href ="{% url 'accounts:view_profile_with_pk' pk=user .pk %} ">
33
+ < a href ="{% url 'accounts:view_profile_with_pk' pk=friend .pk %} ">
29
34
< h3 > {{ friend.username }}</ h3 >
30
35
</ a >
36
+ < a href ="{% url 'home:change_friends' operation='remove' pk=friend.pk %} ">
37
+ < button type ="button " class ="btn btn-default "> Remove Friend</ button >
38
+ </ a >
31
39
{% endfor %}
32
40
</ div >
33
41
</ div >
You can’t perform that action at this time.
0 commit comments