Skip to content

Commit 4706655

Browse files
committed
small index changes
1 parent 40d91fe commit 4706655

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/templates/main/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{% extends 'layouts/base.html' %}
2-
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+
#}
36
{% block content %}
47
<div class="ui text container">
5-
<h1>Hello, world</h1>
8+
<h1>Hello {% if (current_user.is_authenticated() == False) %} world {% else %} {{ current_user.full_name() }} {% endif %},</h1>
69

710
<p>This is <a href="http://hack4impact.org">Hack4Impact</a>'s web application template. We'll use this as a
811
foundation for each of our <a href="http://flask.pocoo.org">Flask</a> projects. The goal is to reduce the work

0 commit comments

Comments
 (0)