diff --git a/app/admin/main_admin.py b/app/admin/main_admin.py index 8a63fed..a38ecae 100644 --- a/app/admin/main_admin.py +++ b/app/admin/main_admin.py @@ -106,11 +106,11 @@ def user_new(): @admin.route( - "/password//", + "/password//", methods=["GET", "POST"], ) @admin.route( - "/password/", + "/password/", defaults={"back": "None"}, methods=["GET", "POST"], ) diff --git a/app/main.py b/app/main.py index 18b4f7c..6b6d12a 100644 --- a/app/main.py +++ b/app/main.py @@ -35,7 +35,7 @@ def index(): return render_template("index.html", benchmarks=benchmarks) -@main.route("/set_benchmark/") +@main.route("/set_benchmark/") @login_required def set_benchmark(benchmark_id): if int(benchmark_id) == current_user.benchmark_id: diff --git a/app/templates/_benchmarks.html b/app/templates/_benchmarks.html index a4407d7..dfb997b 100644 --- a/app/templates/_benchmarks.html +++ b/app/templates/_benchmarks.html @@ -1,15 +1,17 @@
-
Benchmarks
-
- {% for benchmark in benchmarks %} - -
-
{{ benchmark.name }}
- {{ benchmark.num_files }} files -
-

{{ benchmark.description }}

-
- {% endfor %} +
diff --git a/app/templates/_nav.html b/app/templates/_nav.html index e42d105..cfad828 100644 --- a/app/templates/_nav.html +++ b/app/templates/_nav.html @@ -18,10 +18,10 @@ on {{ current_user.benchmark.name }} +
  • {{ render_nav_item('results.select', 'Results') }}
  • +
  • {{ render_nav_item('results.datasets', 'Datasets') }}
  • +
  • {{ render_nav_item('main.config', 'Config') }}
  • {% endif %} -
  • {{ render_nav_item('results.select', 'Results') }}
  • -
  • {{ render_nav_item('results.datasets', 'Datasets') }}
  • -
  • {{ render_nav_item('main.config', 'Config') }}