| {% extends "base.html" %} |
| {% import 'bootstrap/wtf.html' as wtf %} |
| |
| {% block app_content %} |
| <div class="jumbotron"> |
| {% if current_user.is_anonymous %} |
| <h3>Please register to access full functionality</h3> |
| <p class="lead"></p> |
| <p><a class="btn btn-lg btn-success" href="register" role="button">Register</a></p> |
| {% else %} |
| {% if current_user.fullname != "" %} |
| {% set welcome_name = current_user.fullname %} |
| {% else %} |
| {% set welcome_name = current_user.email %} |
| {% endif %} |
| <h4>Welcome {{ welcome_name }}!</h4> |
| {% endif %} |
| </div> |
| <div class="jumbotron" style="background:lightyellow"> |
| {{ text|markdown }} |
| </div> |
| {% endblock %} |