Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
StepanShevchuk committed Dec 10, 2023
1 parent dfb4879 commit 97b7749
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions templates/taxi/driver_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ <h1>Driver list</h1>
<ul>
{% for driver in driver_list %}
<li>
{% if driver == user %}
<a href="{% url "taxi:driver-detail" pk=driver.id %}">{{ driver.username }}</a>
{{ driver.first_name }} {{ driver.last_name }} (Me)
{% else %}
<a href="{% url "taxi:driver-detail" pk=driver.id %}">{{ driver.username }}</a>
{{ driver.first_name }} {{ driver.last_name }}
{% endif %}
{% if driver == user %}
(Me)
{% endif %}
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 97b7749

Please sign in to comment.