aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/notes/search-results.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/notes/search-results.html
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/templates/notes/search-results.html')
-rwxr-xr-xservo/templates/notes/search-results.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/servo/templates/notes/search-results.html b/servo/templates/notes/search-results.html
new file mode 100755
index 0000000..a1ed78d
--- /dev/null
+++ b/servo/templates/notes/search-results.html
@@ -0,0 +1,25 @@
+{% load i18n %}
+{% load humanize %}
+{% load servo_tags %}
+
+<ul class="media-list">
+ {% for note in notes %}
+ <li class="media">
+ <a class="pull-left" href="#">
+ <img src="{{ note.created_by.get_avatar }}" alt="{{ note.created_by }}" title="{{ note.created_by }}" class="img-rounded avatar"/>
+ </a>
+ <div class="media-body">
+ <h5 class="media-heading">{{ note.get_sender_name }} {{ note.created_at|naturaltime }}{% if note.order %} <a href="{% url 'orders-edit' note.order.pk %}#note-{{ note.pk }}"><i class="icon-share-alt"></i></a>{% endif %}</h5>
+ {{ note.body|markdown }}
+ {% for a in note.attachments.all %}
+ <a class="label label-info window" href="{{ a.content.url }}"><i class="icon-download icon-white"></i> {{ a }}</a>
+ {% endfor %}
+ </div>
+ <hr/>
+ </li>
+ {% empty %}
+ <li class="muted empty">{% trans "No notes found" %}</li>
+ {% endfor %}
+</ul>
+
+{% include "pagination.html" with items=notes %}