ui: project info, hide button, form fix

This commit is contained in:
Dobin
2024-03-31 21:09:23 +01:00
parent 5aa49c325f
commit 4bf847b8a3
2 changed files with 22 additions and 12 deletions
+11
View File
@@ -41,6 +41,15 @@ def project(name):
project = storage.get_project(name)
if project == None:
return redirect("/projects", code=302)
exe_path = project.settings.inject_exe_out
is_built = False
if os.path.exists(exe_path):
is_built = True
project_dir = os.path.dirname(os.path.abspath(project.settings.inject_exe_out))
log_files = get_logfiles(project.settings.main_dir)
exes = []
@@ -60,6 +69,8 @@ def project(name):
return render_template('project.html',
project_name = name,
project=project,
is_built=is_built,
project_dir=project_dir,
exes=exes,
shellcodes=shellcodes,