This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
1 |
{% extends "layout.html" %} |
2 |
|
3 |
{% block body %} |
4 |
|
5 |
{% if sweets|length > 0 %} |
6 |
|
7 |
<ul class="entries unstyled"> |
8 |
{% for sweet in sweets %} |
9 |
<li> |
10 |
<span class="who"> |
11 |
<a href="#"> |
12 |
@{{ sweet.who.username }} |
13 |
</a> |
14 |
</span> |
15 |
<span class="what"> |
16 |
<b> #{{ sweet.what.name }} </b> |
17 |
</span> |
18 |
<span class="where"> |
19 |
{{ sweet.where }} |
20 |
</span> |
21 |
<p></p> |
22 |
<span class="how"> |
23 |
{{ sweet.how|tojson }} |
24 |
</span> |
25 |
|
26 |
<small><i>created: {{sweet.created }}</i></small> |
27 |
|
28 |
<span class="pull-right permalink"> |
29 |
<a href="#"> |
30 |
<i class="glyphicon glyphicon-share"></i> |
31 |
</a> |
32 |
</span> |
33 |
<span class="pull-right edit-sweet" for="{{ sweet.id }}"> |
34 |
<a href="#"> |
35 |
<i class="glyphicon glyphicon-edit"></i> |
36 |
</a> |
37 |
</span> |
38 |
</li> |
39 |
{% endfor %} |
40 |
</ul> |
41 |
|
42 |
{% else %} |
43 |
<div class="row"> |
44 |
<div class="col-md-5"> |
45 |
<h4><em>Unbelievable! No sweets yet!!</em></h4> |
46 |
</div> |
47 |
</div> |
48 |
{% endif %} |
49 |
|
50 |
<div class="modal fade" id="edit-sweet-modal"> |
51 |
<div class="modal-dialog"> |
52 |
<div class="modal-content"> |
53 |
<div class="modal-header"> |
54 |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
55 |
<h4 class="modal-title">Edit Sweet </h4> |
56 |
</div> |
57 |
<div class="modal-body"></div> |
58 |
<div |
59 |
class="modal-footer"> |
60 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
61 |
<button type="button" class="btn btn-primary" id="save-edited-sweet">Save changes</button> |
62 |
</div> |
63 |
</div><!-- /.modal-content --> |
64 |
</div><!-- /.modal-dialog --> |
65 |
</div><!-- /.modal --> |
66 |
|
67 |
{% endblock %} |