view.html 1.62 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% extends "base.html" %}
{% load bt %}
{% load i18n %}
{% load babel %}
{% block styles %}
{% endblock %}
{% block scripts %}
{% endblock %}

{%block content%}
<ul>
  <li><dl><dt>Operator</dt><dd>{{v.operator}} ({{v.country}})</dd></dl></li>
  <li><dl><dt>Contract</dt><dd>{{v.contract}}</dd></dl></li>
  {%if v.resource%}<li><dl><dt>Resource</dt><dd>{{v.resource}}</dd></dl></li>{%endif%}
  {%if v.type%}<li><dl><dt>Type</dt><dd>{{v.type}}</dd></dl></li>{%endif%}
  {%if v.media%}<li><dl><dt>Media</dt><dd>{{v.media}}</dd></dl></li>{%endif%}
  {%if v.temporary%}<li><dl><dt>Temporary restriction</dt><dd>{{v.temporary}}</dd></dl></li>{%endif%}
  {%if v.contractual%}<li><dl><dt>Contractual restriction</dt><dd>{{v.Contractual}}</dd></dl></li>{%endif%}
19
  {%if v.contract_excerpt%}<li><dl><dt>Contract excerpt</dt><dd>{{v.contract_excerpt|safe}}</dd></dl></li>{%endif%}
20
21
22
23
24
25
26
  {%if v.loophole%}<li><dl><dt>Loophole offering</dt><dd>{{v.loophole}}</dd></dl></li>{%endif%}
  {%if v.comment_set.all%}
  <div id="comments">
    Comments
    {%for c in v.comment_set.all%}
    <div class="comment-node">
      <span class="commenter">{%if c.submitter_nick%}{{c.submitter_nick}}{%else%}{{c.submitter_email}}{%endif%}</span> - <span class="comment_date">{{c.timestamp|datetimefmt:"short" }}</span>
27
      <div class="comment">{{c.comment|safe}}</div>
28
29
30
31
32
33
34
35
36
37
38
39
40
41
      {%if c.attachment_set.all%}
      <div class="attachs">
        Attachments
        <ul>
          {%for a in c.attachment_set.all%}
          <li><a href="{{a.storage.url}}">{{a.storage.name}}</a></li>
          {%endfor%}
        </ul>
      </div>
      {%endif%}
    {%endfor%}
  </div>
  {%endif%}
{%endblock%}