/delete/', views.delete_job, name='delete_job'),
+ path('notice/', views.notice), # 사용전 주의 사항 매뉴얼
]
\ No newline at end of file
diff --git a/ansible_manager/views.py b/ansible_manager/views.py
index dcdd90e..5f9d9b9 100644
--- a/ansible_manager/views.py
+++ b/ansible_manager/views.py
@@ -116,3 +116,7 @@ def delete_job(request, job_id):
job = get_object_or_404(AnsibleJob, id=job_id, owner=request.user)
job.delete()
return redirect('ansible_manager:job_list')
+
+
+def notice(request):
+ return render(request, "ansible_manager/notice.html", {})
diff --git a/butler_ddochi/settings.py b/butler_ddochi/settings.py
index 90f5f1d..b089e70 100644
--- a/butler_ddochi/settings.py
+++ b/butler_ddochi/settings.py
@@ -77,6 +77,7 @@ TEMPLATES = [
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
+ "butler_ddochi.version.context_processors.version_processor", # 추가
],
},
},
diff --git a/butler_ddochi/version/context_processors.py b/butler_ddochi/version/context_processors.py
new file mode 100644
index 0000000..716eb8d
--- /dev/null
+++ b/butler_ddochi/version/context_processors.py
@@ -0,0 +1,12 @@
+import os
+
+def version_processor(request):
+ version_file_path = os.path.join(os.path.dirname(__file__), "../../version")
+
+ try:
+ with open(version_file_path, "r", encoding="utf-8") as file:
+ version = file.read().strip()
+ except FileNotFoundError:
+ version = "Version not found"
+
+ return {"version": version}
diff --git a/components/templates/components/_footer.html b/components/templates/components/_footer.html
index 0696912..2d93475 100644
--- a/components/templates/components/_footer.html
+++ b/components/templates/components/_footer.html
@@ -4,15 +4,19 @@
Copyright © icurfer 2024
+
-