-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnote.html
More file actions
102 lines (93 loc) · 2.84 KB
/
Copy pathnote.html
File metadata and controls
102 lines (93 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{% extends "base.html" %}
{% load static %}
{% load webfinger_image %}
{% block title %}
Note page
{% endblock %}
{% block scripts %}
<script src="{% static 'js/vote.js' %}" defer></script>
{% endblock %}
{% block content %}
<div class="columns">
<div class="column">
</div>
<div class="column is-four-fifths box px-6 py-6">
<article class="media">
<figure class="media-left">
<p class="image is-64x64">
<img src="{{ note.acct | get_pkg_image }}" alt="purl-image">
</p>
</figure>
<form class="ml-5 mr-5" name="vote-notes">
<span class="icon ml-1">
<button name="vote-up" class="button is-rounded is-white" value="{{ note.id }}" type="submit">▲</button>
</span>
<p class="ml-3 mt-1 mb-1" name="{{ note.id }}">{{ note.reputation_value }}</p>
<span class="icon ml-1">
<button name="vote-down" class="button is-rounded is-white" value="{{ note.id }}" type="submit">▼</button>
</span>
</form>
<div class="media-content">
<div class="content">
<p>
<a href="{% url 'purl-profile' note.username %}">{{ note.acct }}</a>
<br>
<pre class="has-text-black">{{ note.content }}</pre>
</p>
</div>
</div>
<div class="media-right">
<small>last update: {{ note.updated_at }}</small>
</div>
</article>
{% for note_r in note.replies.all %}
<article class="media">
<figure class="media-left">
<p class="image is-64x64">
<img class="is-rounded" src="{{ note_r.acct_avatar }}">
</p>
</figure>
<div class="media-content">
<div class="content">
<p>
<a href="{% url 'user-profile' note_r.username %}">@{{ note_r.acct }}</a>
<p class="title is-6 has-text-weight-normal">{{ note_r.content }}</p>
</p>
</div>
</div>
<div class="media-right">
<small>last update: {{ note_r.updated_at }}</small>
</div>
</article>
{% endfor %}
<article class="media">
<figure class="media-left">
<p class="image is-64x64">
<img class="is-rounded" src="{{ user.person.avatar }}">
</p>
</figure>
<div class="media-content">
<form method="POST" action="">
<div class="field">
<p class="control">
{% csrf_token %}
<div class="columns">
<div class="column is-three-quarters">
{{ form }}
</div>
</div>
</p>
</div>
<div class="field">
<p class="control">
<button class="button is-info" type="submit">Post comment</button>
</p>
</div>
</form>
</div>
</article>
</div>
<div class="column">
</div>
</div>
{% endblock %}