Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution #498

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

StepanShevchuk
Copy link

No description provided.

@StepanShevchuk
Copy link
Author

image

@StepanShevchuk
Copy link
Author

image

@StepanShevchuk
Copy link
Author

image

Comment on lines 10 to 15
<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 %}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost the same code change only in (ME)

Comment on lines 10 to 15
<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 %}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate code, change only in (Me)

Copy link

@vsmutok vsmutok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants