Rename templates outside of lexicon/
This commit is contained in:
parent
63745d2865
commit
8732d998cf
|
@ -1,4 +1,4 @@
|
||||||
{% extends "page_1col.html" %}
|
{% extends "page_1col.jinja" %}
|
||||||
{% block title %}Login | Amanuensis{% endblock %}
|
{% block title %}Login | Amanuensis{% endblock %}
|
||||||
{% block header %}<h2>Amanuensis - Login</h2>{% endblock %}
|
{% block header %}<h2>Amanuensis - Login</h2>{% endblock %}
|
||||||
{% block login_status_attr %}style="display:none"{% endblock %}
|
{% block login_status_attr %}style="display:none"{% endblock %}
|
||||||
|
|
|
@ -24,7 +24,7 @@ def home():
|
||||||
elif lexicon.cfg.join.public:
|
elif lexicon.cfg.join.public:
|
||||||
public_lexicons.append(lexicon)
|
public_lexicons.append(lexicon)
|
||||||
return render_template(
|
return render_template(
|
||||||
'home/home.html',
|
'home/home.jinja',
|
||||||
user_lexicons=user_lexicons,
|
user_lexicons=user_lexicons,
|
||||||
public_lexicons=public_lexicons)
|
public_lexicons=public_lexicons)
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ def admin():
|
||||||
root: RootConfigDirectoryContext = current_app.config['root']
|
root: RootConfigDirectoryContext = current_app.config['root']
|
||||||
users = list(load_all_users(root))
|
users = list(load_all_users(root))
|
||||||
lexicons = list(load_all_lexicons(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'])
|
@bp_home.route("/admin/create/", methods=['GET', 'POST'])
|
||||||
|
@ -55,4 +55,4 @@ def admin_create():
|
||||||
cfg.prompt = prompt
|
cfg.prompt = prompt
|
||||||
return redirect(url_for('lexicon.session', name=lexicon_name))
|
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)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "page_2col.html" %}
|
{% extends "page_2col.jinja" %}
|
||||||
{% import 'macros.html' as macros with context %}
|
{% import 'macros.jinja' as macros with context %}
|
||||||
{% block title %}Admin | Amanuensis{% endblock %}
|
{% block title %}Admin | Amanuensis{% endblock %}
|
||||||
{% block header %}<h2>Amanuensis - Admin Dashboard</h2>{% endblock %}
|
{% block header %}<h2>Amanuensis - Admin Dashboard</h2>{% endblock %}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "page_2col.html" %}
|
{% extends "page_2col.jinja" %}
|
||||||
{% import 'macros.html' as macros %}
|
{% import 'macros.jinja' as macros %}
|
||||||
{% block title %}Admin | Amanuensis{% endblock %}
|
{% block title %}Admin | Amanuensis{% endblock %}
|
||||||
{% block header %}<h2>Amanuensis - Create a Lexicon</h2>{% endblock %}
|
{% block header %}<h2>Amanuensis - Create a Lexicon</h2>{% endblock %}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "page_1col.html" %}
|
{% extends "page_1col.jinja" %}
|
||||||
{% import 'macros.html' as macros with context %}
|
{% import 'macros.jinja' as macros with context %}
|
||||||
{% block title %}Home | Amanuensis{% endblock %}
|
{% block title %}Home | Amanuensis{% endblock %}
|
||||||
{% block header %}<h2>Amanuensis - Home</h2>{% endblock %}
|
{% block header %}<h2>Amanuensis - Home</h2>{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends "page_2col.html" %}
|
{% extends "page_2col.jinja" %}
|
||||||
{% if g.lexicon.title %}
|
{% if g.lexicon.title %}
|
||||||
{% set lexicon_title = g.lexicon.title %}
|
{% set lexicon_title = g.lexicon.title %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{% extends "page.html" %}
|
{% extends "page.jinja" %}
|
||||||
{% block sidebar %}{% endblock %}
|
{% block sidebar %}{% endblock %}
|
||||||
{% block content_class %}content-1col{% endblock %}
|
{% block content_class %}content-1col{% endblock %}
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends "page.html" %}
|
{% extends "page.jinja" %}
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
{% if not template_sidebar_rows %}{% set template_sidebar_rows = [] %}{% endif %}
|
{% if not template_sidebar_rows %}{% set template_sidebar_rows = [] %}{% endif %}
|
Loading…
Reference in New Issue