Ejemplo n.º 1
0
 def display_summary(self, ticket):
     author_link = display_author(ticket, 'created_by')
     created = display_timesince(ticket.created_on)
     messages = ticket.messages.order_by('-created_on')
     updated = ''
     if messages:
         updated_on = display_timesince(messages[0].created_on)
         updated_by = get_admin_link(messages[0].author)
         updated = '. Updated by %s about %s' % (updated_by, updated_on)
     msg = '<h4>Added by %s about %s%s</h4>' % (author_link, created, updated)
     return mark_safe(msg)
Ejemplo n.º 2
0
 def content_html(self, obj):
     time = display_timesince(obj.created_on)
     author_link = display_author(obj, 'author')
     summary = 'Updated by %s about %s' % (author_link, time)
     header = '<span class="header">%s</span><hr />' % summary
     content = markdown(obj.content)
     content = content.replace('>\n', '>')
     return header + content
Ejemplo n.º 3
0
 def created(self, instance):
     return display_timesince(instance.created_on)
Ejemplo n.º 4
0
 def created(self, execution):
     return display_timesince(execution.created_on)
Ejemplo n.º 5
0
def last_try(instance):
    return display_timesince(instance.last_try)
Ejemplo n.º 6
0
 def last_contact(self, instance):
     return display_timesince(instance.last_contact_on)
Ejemplo n.º 7
0
 def last_change(self, instance):
     return display_timesince(instance.last_change_on)
Ejemplo n.º 8
0
 def created(self, execution):
     return display_timesince(execution.created_on)
Ejemplo n.º 9
0
 def last_seen(self, instance):
     return display_timesince(instance.last_seen_on)
Ejemplo n.º 10
0
 def date_since(self, instance):
     return display_timesince(instance.date)
Ejemplo n.º 11
0
 def last_contact(self, instance):
     return display_timesince(instance.last_contact_on)
Ejemplo n.º 12
0
 def last_change(self, instance):
     return display_timesince(instance.last_change_on)
Ejemplo n.º 13
0
 def last_try(self, instance):
     return display_timesince(instance.last_try_on)
Ejemplo n.º 14
0
 def last_seen(self, instance):
     return display_timesince(instance.last_seen_on)
Ejemplo n.º 15
0
 def last_modified(self, instance):
     return display_timesince(instance.last_modified_on)
Ejemplo n.º 16
0
 def last_try(self, instance):
     return display_timesince(instance.last_try_on)
Ejemplo n.º 17
0
def last_try(instance):
    return display_timesince(instance.last_try)