We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40d91fe commit 4706655Copy full SHA for 4706655
1 file changed
app/templates/main/index.html
@@ -1,8 +1,11 @@
1
{% extends 'layouts/base.html' %}
2
-
+{# Some special functionality here: current_user represents the current user. is_authticated is false for an AnonymousUser
3
+ i.e. a user that is not logged in. So we just display "Hello World" on load. Otherwise, we get their full_name(). See
4
+ User model for more information
5
+#}
6
{% block content %}
7
<div class="ui text container">
- <h1>Hello, world</h1>
8
+ <h1>Hello {% if (current_user.is_authenticated() == False) %} world {% else %} {{ current_user.full_name() }} {% endif %},</h1>
9
10
<p>This is <a href="http://hack4impact.org">Hack4Impact</a>'s web application template. We'll use this as a
11
foundation for each of our <a href="http://flask.pocoo.org">Flask</a> projects. The goal is to reduce the work
0 commit comments