From 2cfc1a9a98f65d375f91ee1964cdb20bf0d8a35a Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Tue, 28 Sep 2021 20:43:39 +0200
Subject: [PATCH] =?UTF-8?q?Popis=20importov=C3=A1n=C3=AD=20p=C5=99id=C3=A1?=
 =?UTF-8?q?n=20do=20sekce=20s=20dokumentac=C3=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mo/web/doc.py                   | 5 +++++
 mo/web/org_contest.py           | 5 -----
 mo/web/templates/doc_index.html | 1 +
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/mo/web/doc.py b/mo/web/doc.py
index c909a6e8..4c8178ee 100644
--- a/mo/web/doc.py
+++ b/mo/web/doc.py
@@ -21,3 +21,8 @@ def doc_gdpr():
 @app.route('/doc/about')
 def doc_about():
     return render_template('doc_about.html')
+
+
+@app.route('/doc/import')
+def doc_import():
+    return render_template('doc_import.html')
diff --git a/mo/web/org_contest.py b/mo/web/org_contest.py
index 0a17429c..83e7f661 100644
--- a/mo/web/org_contest.py
+++ b/mo/web/org_contest.py
@@ -395,11 +395,6 @@ def generic_import(round: db.Round, master_round: db.Round, contest: Optional[db
     )
 
 
-@app.route('/doc/import')
-def doc_import():
-    return render_template('doc_import.html')
-
-
 @app.route('/org/contest/c/<int:id>/import', methods=('GET', 'POST'))
 def org_contest_import(id: int):
     contest, master_contest, rr = get_contest_rr(id, Right.manage_contest)
diff --git a/mo/web/templates/doc_index.html b/mo/web/templates/doc_index.html
index 70463f5e..0e1b6bea 100644
--- a/mo/web/templates/doc_index.html
+++ b/mo/web/templates/doc_index.html
@@ -12,6 +12,7 @@
 
 <ul>
 <li><a href='{{ url_for('doc_garant') }}'>Návod pro garanty</a>
+<li><a href='{{ url_for('doc_import') }}'>Importování</a>
 <li><a href='{{ url_for('static', filename='doc/import-navod.pdf') }}'>Podrobnější návod k importům</a> (PDF)
 </ul>
 
-- 
GitLab