-
Notifications
You must be signed in to change notification settings - Fork 102
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
[#360] Show that repos is Forked if Repositories #367
base: main
Are you sure you want to change the base?
[#360] Show that repos is Forked if Repositories #367
Conversation
<a href="{{ repository.get_absolute_url }}"> | ||
{{ repository.name }} | ||
</a> | ||
{% elif repository.organization.name != 'Hexlet' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вот эта штука не должна решаться на фронте. Ведь есть репозитории, которые форкнули в Хекслете, а есть проекты-оригиналы для тех. Посмотрите, что может отдавать гитхаб. Врое бы там есть атрибут, который говорит .что репозиторий - форк.
Можете подключить еще парочку репозиториев? Можно например |
operations = [ | ||
migrations.AddField( | ||
model_name="repository", | ||
name="fork", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тк это булево значение, давайте его так и назовем is_fork и дальше ниже по коду.
Bug: Отображаются форкнутые репозитории #360
https://dr-hexlet-friends-issue-360.onrender.com/repositories/