{% extends "base.html" %} {% block title %}Issues{% endblock %} {% block content %}
| Reported | Severity | Facility / Area | Description | Status | Assigned | |
|---|---|---|---|---|---|---|
| {{ issue.reported_at.strftime('%Y-%m-%d %H:%M') }} | {{ issue.severity|title }} |
{{ issue.area.facility.name }} {{ issue.area.name }} |
{{ issue.description[:60] }}{% if issue.description|length > 60 %}…{% endif %} | {{ issue.status|replace('_',' ')|title }} | {% if issue.assigned_user %}{{ issue.assigned_user.username }} {% else %}—{% endif %} | {# Following badge + inline unfollow #} {% if is_following %} Following {% endif %} {% if current_user.role in ['admin','supervisor'] or issue.assigned_to == current_user.id %} Edit {% else %} View {% endif %} {% if current_user.role in ['admin', 'supervisor'] %} {% endif %} |