From 44c177ac1e5df67ba6d3923fd09c75bb338ece76 Mon Sep 17 00:00:00 2001 From: rezashakeri Date: Sat, 20 Aug 2022 21:37:02 +0430 Subject: [PATCH] refactor: changing the directory component and moving files --- .../footer_component.html => shared/footer/footer.html} | 0 .../header/components/create_post_button.html} | 7 +++---- .../header/components}/drawer_side_component.html | 0 .../header/components}/profile_component.html | 0 .../header_component.html => shared/header/header.html} | 9 +++++---- templates/shared/{ => references}/footer_references.html | 3 ++- templates/shared/{ => references}/haeder_references.html | 0 {utility => utils}/generator.py | 0 8 files changed, 10 insertions(+), 9 deletions(-) rename templates/{components/footer/footer_component.html => shared/footer/footer.html} (100%) rename templates/{components/header/create_post_component.html => shared/header/components/create_post_button.html} (67%) rename templates/{components/header => shared/header/components}/drawer_side_component.html (100%) rename templates/{components/header => shared/header/components}/profile_component.html (100%) rename templates/{components/header/header_component.html => shared/header/header.html} (80%) rename templates/shared/{ => references}/footer_references.html (90%) rename templates/shared/{ => references}/haeder_references.html (100%) rename {utility => utils}/generator.py (100%) diff --git a/templates/components/footer/footer_component.html b/templates/shared/footer/footer.html similarity index 100% rename from templates/components/footer/footer_component.html rename to templates/shared/footer/footer.html diff --git a/templates/components/header/create_post_component.html b/templates/shared/header/components/create_post_button.html similarity index 67% rename from templates/components/header/create_post_component.html rename to templates/shared/header/components/create_post_button.html index 64a6354..73e2cc3 100644 --- a/templates/components/header/create_post_component.html +++ b/templates/shared/header/components/create_post_button.html @@ -1,9 +1,8 @@ - \ No newline at end of file + + \ No newline at end of file diff --git a/templates/components/header/drawer_side_component.html b/templates/shared/header/components/drawer_side_component.html similarity index 100% rename from templates/components/header/drawer_side_component.html rename to templates/shared/header/components/drawer_side_component.html diff --git a/templates/components/header/profile_component.html b/templates/shared/header/components/profile_component.html similarity index 100% rename from templates/components/header/profile_component.html rename to templates/shared/header/components/profile_component.html diff --git a/templates/components/header/header_component.html b/templates/shared/header/header.html similarity index 80% rename from templates/components/header/header_component.html rename to templates/shared/header/header.html index b6b3065..179a698 100644 --- a/templates/components/header/header_component.html +++ b/templates/shared/header/header.html @@ -17,14 +17,15 @@
- \ No newline at end of file + +{% render_partial "post.views.create_new_post_view" %} diff --git a/templates/shared/footer_references.html b/templates/shared/references/footer_references.html similarity index 90% rename from templates/shared/footer_references.html rename to templates/shared/references/footer_references.html index f8b25c4..92ea89d 100644 --- a/templates/shared/footer_references.html +++ b/templates/shared/references/footer_references.html @@ -1,9 +1,10 @@ {% load static %} - + + diff --git a/templates/shared/haeder_references.html b/templates/shared/references/haeder_references.html similarity index 100% rename from templates/shared/haeder_references.html rename to templates/shared/references/haeder_references.html diff --git a/utility/generator.py b/utils/generator.py similarity index 100% rename from utility/generator.py rename to utils/generator.py