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

Структурировать шаблоны вьюшек #415

Open
fey opened this issue May 27, 2024 · 4 comments
Open

Структурировать шаблоны вьюшек #415

fey opened this issue May 27, 2024 · 4 comments

Comments

@fey
Copy link
Collaborator

fey commented May 27, 2024

Что-то у нас помойка вьюхах. Давайтер разложим аккуратно по разделам/ресурсам.

main ✔ $ tree -L 1 templates 
templates
├── about.html
├── achievements_list.html
├── admin
├── base.html
├── components
├── contributor_compare_with_yourself.html
├── contributor_details.html
├── contributor_issues.html
├── contributor_prs.html
├── contributors_for_period.html
├── contributors_list.html
├── home.html
├── landing
├── leaderboard_commits.html
├── leaderboard_issues.html
├── leaderboard_prs.html
├── open_issues.html
├── organization_details.html
├── organizations_list.html
├── project_details.html
├── projects_list.html
├── pull_requests_list.html
├── registration
├── repositories_list.html
├── repository_details.html
└── user_settings.html

4 directories, 22 files
@AleksandrKosmylev
Copy link
Contributor

возьму?

@fey
Copy link
Collaborator Author

fey commented May 28, 2024

Да, берите

@AleksandrKosmylev
Copy link
Contributor

Хочу уточнить:

  1. templates рассортировал (шаблоны вьюшек), а что на счет самих views? Они все в одной директории, не трогать их?
  2. Для https://friends.hexlet.io/projects/ непонятно предусмотрен ли вообще переход. Поэтому project_details.html и projects_list.html не отнесены в отдельный каталог. Пока оставлять так?

@fey
Copy link
Collaborator Author

fey commented May 31, 2024

Смотрите, мы видим, что у нас есть некие сущности/разделы - issues, projects, contributors, поэтому будет логично по этим ресурсам сделать разделение. Насчет вьюх - вероятно тоже. Вы можете создать пулл реквест и по нему посмотрим, что получается

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

No branches or pull requests

2 participants