{% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %} {% block title %}RIGS Profile {{object.pk}}{% endblock %} {% block js %} {% endblock %} {% block content %}

Profile: {{object.name}}

{% if not request.is_ajax %}
{% if object.pk == user.pk %}
{% endif %}
{% endif %}
First Name
{{object.first_name}}
Last Name
{{object.last_name}}
Email
{{object.email}}
Last Login
{{object.last_login|date:"d/m/Y H:i"}}
Date Joined
{{object.date_joined|date:"d/m/Y H:i"}}
Initials
{{object.initials}}
Phone
{% if object.phone %}}{% endif %}{{object.phone}}{% if object.phone %}}{% endif %}
{% if not request.is_ajax and object.pk == user.pk %}

Personal iCal Details

API Key
{% if user.api_key %} {{user.api_key}} {% else %} No API Key Generated {% endif %}
{% if user.api_key %}Reset API Key{% else %}Generate API Key{% endif %}
Calendar Options
Calendar URL
{% if user.api_key %}

					        Click here for instructions on adding to google calendar.
To sync from google calendar to mobile device, visit this page on your device and tick "RIGS Calendar".
{% else %}
No API Key Generated
{% endif %}
{% endif %}

Events

{% with object.latest_events as events %} {% include 'event_table.html' %} {% endwith %} {% endblock %}