Rename templates outside of lexicon/

This commit is contained in:
Tim Van Baak 2020-04-24 13:50:03 -07:00
parent 63745d2865
commit 8732d998cf
10 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
{% extends "page_1col.html" %}
{% extends "page_1col.jinja" %}
{% block title %}Login | Amanuensis{% endblock %}
{% block header %}<h2>Amanuensis - Login</h2>{% endblock %}
{% block login_status_attr %}style="display:none"{% endblock %}

View File

@ -24,7 +24,7 @@ def home():
elif lexicon.cfg.join.public:
public_lexicons.append(lexicon)
return render_template(
'home/home.html',
'home/home.jinja',
user_lexicons=user_lexicons,
public_lexicons=public_lexicons)
@ -36,7 +36,7 @@ def admin():
root: RootConfigDirectoryContext = current_app.config['root']
users = list(load_all_users(root))
lexicons = list(load_all_lexicons(root))
return render_template('home/admin.html', users=users, lexicons=lexicons)
return render_template('home/admin.jinja', users=users, lexicons=lexicons)
@bp_home.route("/admin/create/", methods=['GET', 'POST'])
@ -55,4 +55,4 @@ def admin_create():
cfg.prompt = prompt
return redirect(url_for('lexicon.session', name=lexicon_name))
return render_template('home/create.html', form=form)
return render_template('home/create.jinja', form=form)

View File

@ -1,5 +1,5 @@
{% extends "page_2col.html" %}
{% import 'macros.html' as macros with context %}
{% extends "page_2col.jinja" %}
{% import 'macros.jinja' as macros with context %}
{% block title %}Admin | Amanuensis{% endblock %}
{% block header %}<h2>Amanuensis - Admin Dashboard</h2>{% endblock %}

View File

@ -1,5 +1,5 @@
{% extends "page_2col.html" %}
{% import 'macros.html' as macros %}
{% extends "page_2col.jinja" %}
{% import 'macros.jinja' as macros %}
{% block title %}Admin | Amanuensis{% endblock %}
{% block header %}<h2>Amanuensis - Create a Lexicon</h2>{% endblock %}

View File

@ -1,5 +1,5 @@
{% extends "page_1col.html" %}
{% import 'macros.html' as macros with context %}
{% extends "page_1col.jinja" %}
{% import 'macros.jinja' as macros with context %}
{% block title %}Home | Amanuensis{% endblock %}
{% block header %}<h2>Amanuensis - Home</h2>{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends "page_2col.html" %}
{% extends "page_2col.jinja" %}
{% if g.lexicon.title %}
{% set lexicon_title = g.lexicon.title %}
{% else %}

View File

@ -1,3 +1,3 @@
{% extends "page.html" %}
{% extends "page.jinja" %}
{% block sidebar %}{% endblock %}
{% block content_class %}content-1col{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends "page.html" %}
{% extends "page.jinja" %}
{% block sidebar %}
<div id="sidebar">
{% if not template_sidebar_rows %}{% set template_sidebar_rows = [] %}{% endif %}