{% extends "main.html" %}
{% load karaage_tags %}
{% load forms %}
{% block title %}Projects{% endblock %}
{% block breadcrumbs %}
Project Details
{{ project }}
{% if project.has_notified_pending_expiration %}
- This project will expire in {{ project.days_until_expiration }} days. Renew Project.
{% endif %}
Active: |
{% if not project.is_active %}
Deleted
{% elif not project.is_approved %}
Not approved
{% else %}
Yes
{% endif %}
|
{% if not project.is_active %}
Deleted: |
Deleted by {{ project.deleted_by }} on {{ project.date_deleted }} |
{% endif %}
RCAO Email: | {{ project.rcao }} |
{% if project.leaders %}
Leaders: |
{% for l in project.leaders.all %}
-
{{ l }}
{% if l != request.user and can_edit %}
Revoke
{% endif %}
{% endfor %}
|
{% endif %}
Institute: | {{ project.institute }} |
{% if is_admin %}
Group: | {{ project.group }} |
{% else %}
Group: | {{ project.group }} |
{% endif %}
Description: | {{ project.description|linebreaks }} |
{% if is_admin %}
Last Usage: | {% if project.last_usage %}{{ project.last_usage|date }} ({{ project.last_usage|timesince }}){% else %}No usage{% endif %} |
{% endif %}
Start Date: | {{ project.start_date|date }} |
{% if project.end_date %}
End Date: | {{ project.end_date|date }} |
{% endif %}
Approved: | {% yes_no project.is_approved %} |
{% if is_admin %}
More.... |
Additional Req: | {{ project.additional_req|linebreaks }} |
{% if project.approved_by %}
Approved by: | {{ project.approved_by }} |
{% endif %}
{% if project.date_approved %}
Date Approved: | {{ project.date_approved|date }} |
{% endif %}
{% if project.deleted_by %}
Deleted by: | {{ project.deleted_by }} |
Date Deleted: | {{ project.date_deleted|date }} |
{% endif %}
Has notifed pending expiration: | {% yes_no project.has_notified_pending_expiration %} |
{% endif %}
{% if project.group.members.all %}
People
{% if user.is_authenticated %}
Username |
{% endif %}
Name |
{% if user.is_authenticated %}
Email |
Active |
{% endif %}
{% if is_admin %}
Last Usage |
{% endif %}
{% if can_edit %}
|
{% endif %}
{% for person in project.group.members.select_related %}
{% if user.is_authenticated %}
{{ person.username }} |
{% endif %}
{{ person.get_full_name }} |
{% if user.is_authenticated %}
{{ person.email|urlize }} |
{% if not person.is_active %}
{% else %}
{% if person.is_locked %}
{% else %}
{% endif %}
{% endif %}
|
{% endif %}
{% if is_admin %}
{{ person.last_usage }} |
{% endif %}
{% if can_edit %}
Remove
{% if person not in project.leaders.all %}
Grant leader
{% endif %}
|
{% endif %}
{% endfor %}
{% endif %}
{% for_each_app_include "project_detail_extra.html" %}
{% if is_admin and project.is_active %}
{% endif %}
{% if is_admin %}
Comments
{% comments project %}
{% endif %}
{% endblock %}