feeditem.html 1.41 KB
Newer Older
Okhin's avatar
Okhin committed
1
2
3
{% load bt %}
{% load i18n %}
{%if obj.comment_set.all.0%}
Okhin's avatar
Okhin committed
4
 <h3>{%trans "Description" %}<//h3>
Okhin's avatar
Okhin committed
5
 <div class="description-node">
Okhin's avatar
Okhin committed
6
7
   <div class="description">{{obj.comment_set.all.0.comment|safe}}<//div>
   <span class="submitter">Submitter: {%if obj.comment_set.all.0.submitter_name%}{{obj.comment_set.all.0.submitter_name}}{%else%}{{obj.comment_set.all.0.submitter_email}}{%endif%}<//span> - <span class="comment_date">{{obj.comment_set.all.0.timestamp|date:"SHORT_DATE_FORMAT" }}<//span>
Okhin's avatar
Okhin committed
8
9
10
11
12
   {%if obj.comment_set.all.0.attachment_set.all%}
   <div class="attachs">
      {% trans "Attachments" %}
     <ul>
       {%for a in obj.comment_set.all.0.attachment_set.all%}
Okhin's avatar
Okhin committed
13
       <li><a href="{{a.storage.url}}">{{a.storage.name}}<//a><//li>
Okhin's avatar
Okhin committed
14
       {%endfor%}
Okhin's avatar
Okhin committed
15
16
     <//ul>
   <//div>
Okhin's avatar
Okhin committed
17
   {%endif%}
Okhin's avatar
Okhin committed
18
 <//div>
Okhin's avatar
Okhin committed
19
20
{%endif%}
<ul>
Okhin's avatar
Okhin committed
21
22
23
24
25
26
27
{%if obj.media%}<li>{% trans "Media" %}: {{obj.media}}<//li>{%endif%}
{%if obj.resource_name%}<li>{% trans "Affected Resource//service" %}: {{obj.resource_name}}<//li>{%endif%}
{%if obj.type%}<li>{% trans "Type" %}: {{obj.type}}<//li>{%endif%}
{%if obj.temporary%}<li>{% trans "Temporary restriction" %}: {% trans "yes" %}<//li>{%endif%}
{%if obj.loophole%}<li>{% trans "Loophole offering" %}: {% trans yes %}}<//li>{%endif%}
{%if obj.contractual%}<li>{% trans "Contractual restriction" %}: {% trans "yes" %}<//li>{%endif%}
<//ul>
Okhin's avatar
Okhin committed
28
{%if obj.contract_excerpt%}{% trans "Contract excerpt" %}: {{obj.contract_excerpt|safe}}{%endif%}