remove about page
This commit is contained in:
@@ -336,27 +336,6 @@ class JobAdViewSet(ModelViewSet):
|
||||
return JsonResponse(status=404, data={"error": f"Job Ad {pk} not found"})
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
def about_view(request, *args, **kwargs):
|
||||
"""Render about page."""
|
||||
latest_commit = "Not found"
|
||||
latest_date = "Not found"
|
||||
latest_tag = "Not found"
|
||||
try:
|
||||
repo = git.init_repo()
|
||||
latest_commit = repo.git("rev-parse HEAD").decode("utf-8")
|
||||
latest_date = repo.git("show -s --format=%ci " + latest_commit).decode("utf-8")
|
||||
latest_tag = repo.git(
|
||||
"describe --tags "
|
||||
+ repo.git("rev-list --tags --max-count=1").decode("utf-8")
|
||||
).decode("utf-8")
|
||||
except Exception as e:
|
||||
print(f"Git failed:\n{e}")
|
||||
|
||||
context = {"commit": latest_commit, "date": latest_date, "tag": latest_tag}
|
||||
return render(request, "about.html", context)
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
def nginx_jwt_resp(request, *args, **kwargs):
|
||||
cookie = request.COOKIES.get("jwt", None)
|
||||
|
||||
Reference in New Issue
Block a user