Merge pull request #120 from s0b0lev/issue-119

Refs Issue #119 replace session with current_user, remove unnecessary href
master
Steven Loria 8 years ago committed by GitHub
commit f2ac24cb0b
  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"> <div class="col-lg-4">
<h2><i class="fa fa-flask"></i> SQLAlchemy</h2> <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>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>
<div class="col-lg-4"> <div class="col-lg-4">
<h2><i class="fa fa-edit"></i> WTForms</h2> <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>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>
</div><!-- /.row --> </div><!-- /.row -->
</div> </div>

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

Loading…
Cancel
Save