diff --git a/rugwebsite/__init__.py b/rugwebsite/__init__.py index 6fd5ff1..f53b2e0 100644 --- a/rugwebsite/__init__.py +++ b/rugwebsite/__init__.py @@ -1 +1 @@ -__version__ = '0.1.15' \ No newline at end of file +__version__ = '0.1.16' \ No newline at end of file diff --git a/rugwebsite/templates/rugwebsite/base.html b/rugwebsite/templates/rugwebsite/base.html index 40d1be3..4a87888 100755 --- a/rugwebsite/templates/rugwebsite/base.html +++ b/rugwebsite/templates/rugwebsite/base.html @@ -38,7 +38,7 @@ {% if user.is_authenticated %}
  • - Welcome {{ user.get_username }} + Welcome {{ user.get_username }} {% comment %}
    {% endcomment %}
  • + {% else %} +
  • + Login +
  • {% endif %} diff --git a/rugwebsite/templates/rugwebsite/home.html b/rugwebsite/templates/rugwebsite/home.html index 1d90a6b..e7f824d 100755 --- a/rugwebsite/templates/rugwebsite/home.html +++ b/rugwebsite/templates/rugwebsite/home.html @@ -5,4 +5,14 @@ {% block content %} + {% if user.is_authenticated %} +

    Fantastic, you are logged in!

    +

    Username: {{ user.username }}

    +

    First name: {{ user.firsts_name }}

    +

    Last name: {{ user.last_name}}

    +

    E-mail: {{ user.email}}

    + {% else %} +

    Login and become awesome!

    +

    Login

    + {% endif %} {% endblock content %}