Changeset View
Changeset View
Standalone View
Standalone View
users/templates/users/components/links.html
| {% if user.is_authenticated %} | {% if user.is_authenticated %} | ||||
| {% url 'user-activity' as my_activity_url %} | {% url 'user-activity' as my_activity_url %} | ||||
| {% url 'user-notification' as my_notifications_url %} | {% url 'user-notification' as my_notifications_url %} | ||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-2 mb-3">{% if request.path == my_activity_url %}My activity{% else %}<a href="{{ my_activity_url }}">My activity</a>{% endif %}</div> | <div class="col-2 mb-3">{% if request.path == my_activity_url %}My activity{% else %}<a href="{{ my_activity_url }}">My activity</a>{% endif %}</div> | ||||
| <div class="col-2 mb-3">{% if request.path == my_notifications_url %}My notifications{% else %}<a href="{{ my_notifications_url }}">My notifications</a>{% endif %}</div> | <div class="col-2 mb-3">{% if request.path == my_notifications_url %}My notifications{% else %}<a href="{{ my_notifications_url }}">My notifications</a>{% endif %}</div> | ||||
| </div> | </div> | ||||
| {% endif %} | {% endif %} | ||||