@@ -25,34 +25,33 @@ <h3 class="section-title">
25
25
< div class ="large-12 columns ">
26
26
< div class ="article-row-section ">
27
27
< div class ="article-row-section-inner ">
28
- {% for followup in ticket.get_actions %}
28
+ {% for followup in followups %}
29
29
< div class ="article-row ">
30
-
31
30
< div class ="article-row-img ">
32
31
{% autoescape off %}
33
- {% if followup.user %}
34
- {{ followup.user|vtuserlogo:"profile-pic" }}
32
+ {% if followup.fup. user %}
33
+ {{ followup.fup. user|vtuserlogo:"profile-pic" }}
35
34
{% else %}
36
- {{ followup.html_logo }}
35
+ {{ followup.fup. html_logo }}
37
36
{% endif %}
38
37
{% endautoescape %}
39
38
</ div >
40
39
< div class ="article-row-content ">
41
- < p class ="article-row-content-description trescaped "> {{ followup.title|escape|email_to_user }} {% if followup.title in "Comment,Closed" and followup.user == user %} < small > < a href ="{% url 'vince:followup_edit' followup.id %} " class ='followup-edit '> < i class ="fas fa-edit " title ="Edit this comment "> </ i > </ a > </ small > {% elif "Email" in followup.title %}{% if followup.email_id %}< span class ="email-detail " title ="{{ followup.email_id }} in {{ followup.email_bucket }} "> < i class ="fas fa-envelope-open-text "> </ i > </ span > {% endif %}{% endif %}</ p >
40
+ < p class ="article-row-content-description trescaped "> {{ followup.fup. title|escape|email_to_user }} {% if followup.fup. title in "Comment,Closed" and followup.fup. user == user %} < small > < a href ="{% url 'vince:followup_edit' followup.fup. id %} " class ='followup-edit '> < i class ="fas fa-edit " title ="Edit this comment "> </ i > </ a > </ small > {% elif "Email" in followup.fup. title %}{% if followup.fup. email_id %}< span class ="email-detail " title ="{{ followup.fup. email_id }} in {{ followup.fup .email_bucket }} "> < i class ="fas fa-envelope-open-text "> </ i > </ span > {% endif %}{% endif %}</ p >
42
41
< p class ="article-row-content-detail ">
43
- {% if followup.comment|is_json %}
42
+ {% if followup.fup. comment|is_json %}
44
43
< div class ="long_text_container ">
45
44
< div class ="text_container textheightshort ">
46
45
< div class ="text_content ">
47
- {{ followup.comment }}
46
+ {{ followup.fup. comment }}
48
47
</ div >
49
48
</ div >
50
49
</ div >
51
- {% elif followup.comment %}
50
+ {% elif followup.fup. comment %}
52
51
< div class ="long_text_container ">
53
52
< div class ="text_container textheightshort ">
54
53
< div class ="text_content ">
55
- {{ followup.comment|force_escape|smarter_urlize:50|linebreaksbr }}
54
+ {{ followup.fup. comment|force_escape|smarter_urlize:50|linebreaksbr }}
56
55
</ div >
57
56
</ div >
58
57
< div class ="showfull moretext "> < i class ="fas fa-arrow-down "> </ i > Show More</ div >
@@ -64,39 +63,39 @@ <h3 class="section-title">
64
63
< a href ="{% url 'vince:contact' contact_link %} "> View changes.</ a >
65
64
{% endif %}
66
65
</ p >
67
- {% for change in followup.ticketchange_set.all %}
66
+ {% for change in followup.fup. ticketchange_set.all %}
68
67
{% if forloop.first %}< div class ='changes '> < ul > {% endif %}
69
68
< li > {% blocktrans with change.field as field and change.old_value as old_value and change.new_value as new_value %}Changed {{field }} from {{ old_value }} to {{ new_value }}.{% endblocktrans %}</ li >
70
69
{% if forloop.last %}</ ul > </ div > {% endif %}
71
70
{% endfor %}
72
- {% for attachment in followup.attachment_set.all %}
71
+ {% for attachment in followup.fup. attachment_set.all %}
73
72
{% if forloop.first %}< div class ='attachments '> < ul > {% endif %}
74
73
< li > < a href ="{% url 'vince:attachment' attachment.uuid %} "> {{ attachment.filename }}</ a > ({{ attachment.mime_type }}, {{ attachment.size|filesizeformat }})</ li >
75
74
{% if forloop.last %}</ ul > </ div > {% endif %}
76
75
{% endfor %}
77
- {% if "commented on report" in followup.title %}
76
+ {% if "commented on report" in followup.fup. title %}
78
77
< div >
79
78
< a href ="{{ vincecomm_link }} "> < button type ="button " class ="button primary tiny "> < i class ="fas fa-reply "> </ i > Respond</ button > </ a >
80
79
</ div >
81
80
{% endif %}
82
- {% for message in followup.followupmessage_set.all %}
81
+ {% for message in followup.msgset %}
83
82
< div >
84
- < a href ="{% url 'vinny:msg_detail' message.msg %} ">
85
- < button type ="button " class ="button primary tiny "> < i class ="fas fa-reply "> </ i > Reply to User </ button >
83
+ < a href ="{% url 'vinny:msg_detail' message.pk %} ">
84
+ < button type ="button " class ="button primary tiny "> < i class ="fas fa-reply "> </ i > Reply to {{ message.sender.first_name }} {{ message.sender.last_name }} </ button >
86
85
</ a >
87
86
</ div >
88
87
{% endfor %}
89
- {% if followup.title|review:followup and followup.ticket.review %}
88
+ {% if followup.fup. title|review:followup.fup and followup.fup .ticket.review %}
90
89
< div >
91
- < a href ="{% url 'vince:reviewdetail' followup.ticket.review.id %} ">
90
+ < a href ="{% url 'vince:reviewdetail' followup.fup. ticket.review.id %} ">
92
91
< button type ="button " class ="button primary tiny "> View Review</ button >
93
92
</ a >
94
93
</ div >
95
94
{% endif %}
96
- < time class ="article-row-content-time "> {{ followup.date|date:"Y-m-d H:i" }} ({{ followup.date|naturaltime }}) {% if followup.user %} by {{ followup.user.usersettings.vince_username }}{% endif %} {% if followup.last_edit %}< b > < i class ="fas fa-edit "> </ i > Edited: {{ followup.last_edit|date:"Y-m-d" }}</ b > {% endif %}</ time >
97
- {% if followup.is_email %}
95
+ < time class ="article-row-content-time "> {{ followup.fup. date|date:"Y-m-d H:i" }} ({{ followup.fup. date|naturaltime }}) {% if followup.fup. user %} by {{ followup.fup. user.usersettings.vince_username }}{% endif %} {% if followup.fup. last_edit %}< b > < i class ="fas fa-edit "> </ i > Edited: {{ followup.fup .last_edit|date:"Y-m-d" }}</ b > {% endif %}</ time >
96
+ {% if followup.fup. is_email %}
98
97
< div class ="edit-hover ">
99
- < a href ="{% url 'vince:replyemail' followup.id %} " type ="button " class ="edit-btn button primary " title ="Reply to Email "> < i aria-hidden ="true " class ="fas fa-reply "> </ i > </ a >
98
+ < a href ="{% url 'vince:replyemail' followup.fup. id %} " type ="button " class ="edit-btn button primary " title ="Reply to Email "> < i aria-hidden ="true " class ="fas fa-reply "> </ i > </ a >
100
99
</ div >
101
100
{% endif %}
102
101
</ div >
0 commit comments