diff --git a/mo/web/doc.py b/mo/web/doc.py index c909a6e806b050acbd7ebbaf31c8161c0b203673..4c8178eee1894a3419f204c8921ca1c19f24a1a8 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 0a17429c8203b2b150d4357ebb562b8ca3db7910..83e7f6613fc2772dc00e9eb58db43c2c5a842981 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 70463f5e6ec3f6865a24db3f7b72a7dde9a12e8c..0e1b6beae4141c13655172682f7a5cb20b5f9917 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>