~deeptik/linaro-ci-dashboard/django-openid-changes

« back to all changes in this revision

Viewing changes to dashboard/templates/frontend/index.html

  • Committer: Deepti B. Kalakeri
  • Date: 2012-07-05 15:23:51 UTC
  • Revision ID: deepti.kalakeri@linaro.org-20120705152351-ann5102ksqtfv59x
Using the login_required decorator to for openid login

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% block content %}
2
 
{% if request.user.is_authenticated %}
3
 
    <p>You are signed in as <strong>{{request.user.username}}</strong> ({{request.user.get_full_name}}) </p>
4
 
    <a href="/logout">Sign out</a>
5
 
{% else %}
6
 
    <a href="/openid/login">Sign in with OpenID</a>
7
 
{% endif %}
8
 
{% load i18n %}
 
2
<p>You are signed in as <strong>{{request.user.username}}</strong> ({{request.user.get_full_name}}) </p>
 
3
<a href="/logout">Sign out</a>
9
4
{% endblock %}