a73x

src/server/http/templates/issue_detail.html

Ref:   Size: 1.2 KiB

{% extends "repo_base.html" %}

{% block title %}{{ issue.title }} — {{ repo_name }} — {{ site_title }}{% endblock %}

{% block content %}
<h2>{{ issue.title }}</h2>
<p>
  <span class="status-{{ issue.status }}">{{ issue.status }}</span>
  &nbsp; by <strong>{{ issue.author }}</strong>
</p>
{% if !issue.labels.is_empty() %}
<p style="color: #666;">Labels: {{ issue.labels }}</p>
{% endif %}
{% if !issue.assignees.is_empty() %}
<p style="color: #666;">Assignees: {{ issue.assignees }}</p>
{% endif %}
{% if !issue.body.is_empty() %}
<pre style="background: #f8f8f8; padding: 12px; border-radius: 4px; white-space: pre-wrap;">{{ issue.body }}</pre>
{% endif %}
{% if let Some(reason) = issue.close_reason %}
<p style="color: #666;">Close reason: {{ reason }}</p>
{% endif %}

{% if !issue.comments.is_empty() %}
<h3>Comments</h3>
{% for comment in issue.comments %}
<div style="border: 1px solid #ddd; border-radius: 4px; padding: 12px; margin-bottom: 12px;">
  <p style="margin: 0 0 8px 0;">
    <strong>{{ comment.author }}</strong>
    &nbsp; <span class="mono" style="color: #666; font-size: 0.85em;">{{ comment.timestamp }}</span>
  </p>
  <pre style="margin: 0; white-space: pre-wrap;">{{ comment.body }}</pre>
</div>
{% endfor %}
{% endif %}
{% endblock %}