Refs Issue #119 replace session with current_user, remove unnecessary href

master
Aleksandr Sobolev 8 years ago
parent 16d886c0d4
commit 2d0dbc693a
  1. 4
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html
  2. 2
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/users/members.html

@ -20,12 +20,12 @@
<div class="col-lg-4">
<h2><i class="fa fa-flask"></i> SQLAlchemy</h2>
<p>SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.</p>
<p><a href="http://www.sqlalchemy.org/" class="btn btn-default" href="#">Official website &raquo;</a></p>
<p><a href="http://www.sqlalchemy.org/" class="btn btn-default">Official website &raquo;</a></p>
</div>
<div class="col-lg-4">
<h2><i class="fa fa-edit"></i> WTForms</h2>
<p>WTForms is a flexible forms validation and rendering library for python web development.</p>
<p><a href="http://wtforms.simplecodes.com/" class="btn btn-default" href="#">Official website &raquo;</a></p>
<p><a href="http://wtforms.simplecodes.com/" class="btn btn-default">Official website &raquo;</a></p>
</div>
</div><!-- /.row -->
</div>

@ -1,7 +1,7 @@
{% raw %}
{% extends "layout.html" %}
{% block content %}
<h1>Welcome {{ session.username }}</h1>
<h1>Welcome {{ current_user.username }}</h1>
<h3>This is the members-only page.</h3>
{% endblock %}
{% endraw%}

Loading…
Cancel
Save