Browse Source

rename all .html file to filename.html.j2

pull/5/head
Eragon 3 years ago
parent
commit
79257ddf56
Signed by: Eragon GPG Key ID: B2B1BF4DA61BBB85
22 changed files with 36 additions and 36 deletions
  1. +5
    -5
      app/routes.py
  2. +0
    -0
      app/templates/base/alerts.html.j2
  3. +0
    -16
      app/templates/base/base.html
  4. +16
    -0
      app/templates/base/base.html.j2
  5. +2
    -2
      app/templates/base/container.html.j2
  6. +1
    -1
      app/templates/base/errors.html.j2
  7. +0
    -0
      app/templates/base/footer.html.j2
  8. +0
    -0
      app/templates/base/head.html.j2
  9. +0
    -0
      app/templates/base/header.html.j2
  10. +7
    -7
      app/templates/base/navbar.html.j2
  11. +1
    -1
      app/templates/base/navbar/account.html.j2
  12. +0
    -0
      app/templates/base/navbar/forum.html.j2
  13. +0
    -0
      app/templates/base/navbar/news.html.j2
  14. +0
    -0
      app/templates/base/navbar/programs.html.j2
  15. +0
    -0
      app/templates/base/navbar/sprites.html.j2
  16. +0
    -0
      app/templates/base/navbar/tools.html.j2
  17. +0
    -0
      app/templates/base/navbar/tutorials.html.j2
  18. +0
    -0
      app/templates/base/scripts.html.j2
  19. +1
    -1
      app/templates/index.html.j2
  20. +1
    -1
      app/templates/login.html.j2
  21. +1
    -1
      app/templates/register.html.j2
  22. +1
    -1
      app/templates/validation.html.j2

+ 5
- 5
app/routes.py View File

@ -17,7 +17,7 @@ def index():
return redirect(url_for('index'))
login_user(user, remember=form.remember_me.data)
return render_template('index.html', form=form)
return render_template('index.html.j2', form=form)
@app.route('/logout/')
@ -45,7 +45,7 @@ def register():
db.session.commit()
flash('Congratulations, you are now a registered user!')
return redirect(url_for('validation'))
return render_template('register.html', title='Register', form=form, form2 = form2)
return render_template('register.html.j2', title='Register', form=form, form2 = form2)
@app.route('/register/validation/')
def validation():
@ -58,7 +58,7 @@ def validation():
flash('pseudo ou mot de passe invalide')
return redirect(url_for('index'))
login_user(user, remember=form.remember_me.data)
return render_template('validation.html', form = form)
return render_template('validation.html.j2', form = form)
@app.route('/error/<int:error>')
@app.errorhandler(400)
@ -78,6 +78,6 @@ def errors(error):
return redirect(url_for('index'))
login_user(user, remember=form.remember_me.data)
try:
return render_template("base/errors.html", error_code = error, form=form), error
return render_template("base/errors.html.j2", error_code = error, form=form), error
except:
return render_template("base/errors.html", error_code = error.code, form=form), error.code
return render_template("base/errors.html.j2", error_code = error.code, form=form), error.code

app/templates/base/alerts.html → app/templates/base/alerts.html.j2 View File


+ 0
- 16
app/templates/base/base.html View File

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html lang="fr-FR">
{% include "base/head.html" %}
<body>
{% include "base/navbar.html" %}
{% block container %}
{% endblock container %}
{% include "base/footer.html" %}
{% include "base/alerts.html" %}
{% include "base/scripts.html" %}
</body>
</html>

+ 16
- 0
app/templates/base/base.html.j2 View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="fr-FR">
{% include "base/head.html.j2" %}
<body>
{% include "base/navbar.html.j2" %}
{% block container %}
{% endblock container %}
{% include "base/footer.html.j2" %}
{% include "base/alerts.html.j2" %}
{% include "base/scripts.html.j2" %}
</body>
</html>

app/templates/base/container.html → app/templates/base/container.html.j2 View File


app/templates/base/errors.html → app/templates/base/errors.html.j2 View File


app/templates/base/footer.html → app/templates/base/footer.html.j2 View File


app/templates/base/head.html → app/templates/base/head.html.j2 View File


app/templates/base/header.html → app/templates/base/header.html.j2 View File


app/templates/base/navbar.html → app/templates/base/navbar.html.j2 View File


app/templates/base/navbar/account.html → app/templates/base/navbar/account.html.j2 View File


app/templates/base/navbar/forum.html → app/templates/base/navbar/forum.html.j2 View File


app/templates/base/navbar/news.html → app/templates/base/navbar/news.html.j2 View File


app/templates/base/navbar/programs.html → app/templates/base/navbar/programs.html.j2 View File


app/templates/base/navbar/sprites.html → app/templates/base/navbar/sprites.html.j2 View File


app/templates/base/navbar/tools.html → app/templates/base/navbar/tools.html.j2 View File


app/templates/base/navbar/tutorials.html → app/templates/base/navbar/tutorials.html.j2 View File


app/templates/base/scripts.html → app/templates/base/scripts.html.j2 View File


app/templates/index.html → app/templates/index.html.j2 View File


app/templates/login.html → app/templates/login.html.j2 View File


app/templates/register.html → app/templates/register.html.j2 View File


app/templates/validation.html → app/templates/validation.html.j2 View File


Loading…
Cancel
Save