{% extends "main.html" %}
{% load karaage_tags %}
{% load forms %}
{% block title %}Projects{% endblock %}
{% block breadcrumbs %}
Project Details
{{ project }}
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 %}
{% 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 %} |
Categories: | {% for pq in project.projectquota_set.all %}{{ pq.machine_category }}{% if not forloop.last %}, {% endif %}{% endfor %} |
{% 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 %}
{% endif %}
{% if is_admin %}
Project Caps/quota
{% if project.projectquota_set.all %}
Machine Category |
Quota |
{% if is_admin %}
| |
{% endif %}
{% for pc in project.projectquota_set.all %}
{{ pc.machine_category }} |
{{ pc.get_cap }} |
{% if is_admin %}
edit |
Remove |
{% endif %}
{% endfor %}
{% endif %}
{% 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 %}
{% if is_admin %}
Allocations
Allocation pools
{% if project.allocationpool_set.all %}
Resource pool |
Period |
Quantity allocated |
Quantity used |
Quantity remaining |
Percent used |
{% for ap in project.allocationpool_set.all %}
{{ ap.resource_pool }} |
{{ ap.period }} |
{{ ap.allocated }} |
{{ ap.used }} |
{{ ap.remaining }} |
{{ ap.used_percent|default_if_none:"n/a" }} |
{% endfor %}
{% endif %}
Individual allocations
{% if allocations %}
Allocation description |
Resource pool |
Period |
Grant |
Quantity |
{% for a in allocations %}
{{ a.description }} |
{{ a.allocation_pool.resource_pool }} |
{{ a.allocation_pool.period }} |
{{ a.grant }} |
{{ a.quantity }} |
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}