Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 1 | {% extends "base.html" %} |
| 2 | {% import 'bootstrap/wtf.html' as wtf %} |
| 3 | |
| 4 | {% block app_content %} |
| 5 | <div class="jumbotron"> |
| 6 | {% if current_user.is_anonymous %} |
| 7 | <h3>Please register to access full functionality</h3> |
| 8 | <p class="lead"></p> |
| 9 | <p><a class="btn btn-lg btn-success" href="register" role="button">Register</a></p> |
| 10 | {% else %} |
Fatih Degirmenci | e465180 | 2019-10-01 07:58:33 +0000 | [diff] [blame] | 11 | {% if current_user.fullname != "" %} |
| 12 | {% set welcome_name = current_user.fullname %} |
| 13 | {% else %} |
| 14 | {% set welcome_name = current_user.email %} |
| 15 | {% endif %} |
| 16 | <h4>Welcome {{ welcome_name }}!</h4> |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 17 | {% endif %} |
| 18 | </div> |
Fatih Degirmenci | 9fd6bfa | 2019-09-30 18:44:56 +0000 | [diff] [blame] | 19 | <div class="jumbotron" style="background:lightyellow"> |
| 20 | {{ text|markdown }} |
| 21 | </div> |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 22 | {% endblock %} |