punkweb-bb 0.5.0__py3-none-any.whl → 0.5.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- punkweb_bb/__pycache__/__init__.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/admin.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/admin_forms.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/apps.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/bbcode.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/decorators.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/forms.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/guests.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/middleware.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/mixins.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/models.cpython-311.pyc +0 -0
- punkweb_bb/__pycache__/models.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/pagination.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/response.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/searching.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/settings.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/signals.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/tests.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/urls.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/utils.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/views.cpython-311.pyc +0 -0
- punkweb_bb/__pycache__/views.cpython-313.pyc +0 -0
- punkweb_bb/__pycache__/widgets.cpython-313.pyc +0 -0
- punkweb_bb/bbcode.py +16 -4
- punkweb_bb/migrations/0008_alter_groupstyle_username_style.py +18 -0
- punkweb_bb/migrations/__pycache__/0001_initial.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0002_thread_view_count.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0003_alter_thread_options.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0004_groupstyle.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0005_alter_thread_options.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0006_remove_boardprofile__signature_rendered_and_more.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0007_boardprofile_bio.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0008_alter_groupstyle_username_style.cpython-311.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0008_alter_groupstyle_username_style.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/0009_report.cpython-313.pyc +0 -0
- punkweb_bb/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
- punkweb_bb/models.py +6 -3
- punkweb_bb/settings.py +2 -0
- punkweb_bb/static/punkweb_bb/css/bbcode-editor-content.css +4 -0
- punkweb_bb/static/punkweb_bb/css/members.css +6 -0
- punkweb_bb/static/punkweb_bb/css/punkweb.css +4 -0
- punkweb_bb/static/punkweb_bb/vendor/prism-duotone-sea.css +170 -0
- punkweb_bb/static/punkweb_bb/vendor/punkweb-ui.min.css +1 -1
- punkweb_bb/templates/punkweb_bb/base.html +84 -96
- punkweb_bb/templates/punkweb_bb/base_delete_dialog.html +13 -10
- punkweb_bb/templates/punkweb_bb/base_dialog.html +6 -6
- punkweb_bb/templates/punkweb_bb/bbcode.html +12 -14
- punkweb_bb/templates/punkweb_bb/category_create.html +26 -27
- punkweb_bb/templates/punkweb_bb/category_update.html +27 -30
- punkweb_bb/templates/punkweb_bb/components/pagination_controls.html +36 -44
- punkweb_bb/templates/punkweb_bb/components/profile_image.html +8 -8
- punkweb_bb/templates/punkweb_bb/forms/inline_form.html +5 -5
- punkweb_bb/templates/punkweb_bb/forms/stacked_form.html +35 -32
- punkweb_bb/templates/punkweb_bb/index.html +205 -211
- punkweb_bb/templates/punkweb_bb/login.html +24 -30
- punkweb_bb/templates/punkweb_bb/members.html +57 -61
- punkweb_bb/templates/punkweb_bb/partials/category_delete.html +3 -3
- punkweb_bb/templates/punkweb_bb/partials/post_delete.html +3 -3
- punkweb_bb/templates/punkweb_bb/partials/post_update.html +12 -11
- punkweb_bb/templates/punkweb_bb/partials/shout_delete.html +3 -3
- punkweb_bb/templates/punkweb_bb/partials/subcategory_delete.html +3 -3
- punkweb_bb/templates/punkweb_bb/partials/thread_delete.html +3 -3
- punkweb_bb/templates/punkweb_bb/partials/thread_move.html +13 -12
- punkweb_bb/templates/punkweb_bb/profile.html +73 -84
- punkweb_bb/templates/punkweb_bb/search.html +12 -16
- punkweb_bb/templates/punkweb_bb/settings.html +29 -36
- punkweb_bb/templates/punkweb_bb/shoutbox/shout_list.html +17 -19
- punkweb_bb/templates/punkweb_bb/shoutbox/shoutbox.html +18 -29
- punkweb_bb/templates/punkweb_bb/signup.html +24 -30
- punkweb_bb/templates/punkweb_bb/subcategory.html +114 -132
- punkweb_bb/templates/punkweb_bb/subcategory_create.html +32 -39
- punkweb_bb/templates/punkweb_bb/subcategory_update.html +33 -42
- punkweb_bb/templates/punkweb_bb/thread.html +207 -238
- punkweb_bb/templates/punkweb_bb/thread_create.html +36 -43
- punkweb_bb/templates/punkweb_bb/thread_update.html +36 -45
- punkweb_bb/templates/punkweb_bb/widgets/markdown-editor.html +3 -1
- punkweb_bb/templatetags/__pycache__/__init__.cpython-313.pyc +0 -0
- punkweb_bb/templatetags/__pycache__/can_delete.cpython-313.pyc +0 -0
- punkweb_bb/templatetags/__pycache__/can_edit.cpython-313.pyc +0 -0
- punkweb_bb/templatetags/__pycache__/can_post.cpython-313.pyc +0 -0
- punkweb_bb/templatetags/__pycache__/humanize_int.cpython-313.pyc +0 -0
- punkweb_bb/templatetags/__pycache__/punkweb_bb.cpython-313.pyc +0 -0
- punkweb_bb/templatetags/__pycache__/render.cpython-313.pyc +0 -0
- punkweb_bb/templatetags/__pycache__/styled_group_name.cpython-313.pyc +0 -0
- punkweb_bb/templatetags/__pycache__/styled_username.cpython-313.pyc +0 -0
- punkweb_bb/tests.py +21 -0
- punkweb_bb/views.py +27 -27
- {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info}/METADATA +93 -37
- {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info}/RECORD +92 -49
- {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info}/WHEEL +1 -1
- {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info/licenses}/LICENSE +0 -0
- {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base_delete_dialog.html' %}
|
|
2
2
|
|
|
3
3
|
{% block title %}Delete Post{% endblock %}
|
|
4
|
-
|
|
5
4
|
{% block object_type %}post{% endblock %}
|
|
6
|
-
|
|
7
|
-
{%
|
|
5
|
+
{% block delete_url %}
|
|
6
|
+
{% url 'punkweb_bb:post_delete' post.id %}
|
|
7
|
+
{% endblock %}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base_dialog.html' %}
|
|
2
2
|
|
|
3
3
|
{% block title %}Edit Post{% endblock %}
|
|
4
|
-
|
|
5
4
|
{% block content %}
|
|
6
|
-
<form class="pw-form"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{
|
|
5
|
+
<form class="pw-form"
|
|
6
|
+
action="{% url 'punkweb_bb:post_update' post.id %}"
|
|
7
|
+
method="post">
|
|
8
|
+
{% csrf_token %}
|
|
9
|
+
{{ form }}
|
|
10
|
+
<div class="pw-form-actions end">
|
|
11
|
+
<button class="pw-button raised primary" type="submit">Save</button>
|
|
12
|
+
</div>
|
|
13
|
+
</form>
|
|
14
|
+
{{ form.media.css }}
|
|
15
|
+
{{ form.media.js }}
|
|
16
|
+
{% endblock %}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base_delete_dialog.html' %}
|
|
2
2
|
|
|
3
3
|
{% block title %}Delete Shout{% endblock %}
|
|
4
|
-
|
|
5
4
|
{% block object_type %}shout{% endblock %}
|
|
6
|
-
|
|
7
|
-
{%
|
|
5
|
+
{% block delete_url %}
|
|
6
|
+
{% url 'punkweb_bb:shout_delete' shout.id %}
|
|
7
|
+
{% endblock %}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base_delete_dialog.html' %}
|
|
2
2
|
|
|
3
3
|
{% block title %}Delete Subcategory{% endblock %}
|
|
4
|
-
|
|
5
4
|
{% block object_type %}subcategory{% endblock %}
|
|
6
|
-
|
|
7
|
-
{%
|
|
5
|
+
{% block delete_url %}
|
|
6
|
+
{% url 'punkweb_bb:subcategory_delete' subcategory.slug %}
|
|
7
|
+
{% endblock %}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base_delete_dialog.html' %}
|
|
2
2
|
|
|
3
3
|
{% block title %}Delete Thread{% endblock %}
|
|
4
|
-
|
|
5
4
|
{% block object_type %}thread{% endblock %}
|
|
6
|
-
|
|
7
|
-
{%
|
|
5
|
+
{% block delete_url %}
|
|
6
|
+
{% url 'punkweb_bb:thread_delete' thread.id %}
|
|
7
|
+
{% endblock %}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base_dialog.html' %}
|
|
2
2
|
|
|
3
3
|
{% block title %}Move Thread{% endblock %}
|
|
4
|
-
|
|
5
4
|
{% block content %}
|
|
6
|
-
<form class="pw-form"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
</
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{
|
|
5
|
+
<form class="pw-form"
|
|
6
|
+
action="{% url 'punkweb_bb:thread_move' thread.id %}"
|
|
7
|
+
method="post">
|
|
8
|
+
{% csrf_token %}
|
|
9
|
+
{{ form }}
|
|
10
|
+
<div class="pw-form-actions end">
|
|
11
|
+
<button class="pw-dialog-cancel pw-button default">Cancel</button>
|
|
12
|
+
<button class="pw-button raised primary" type="submit">Move</button>
|
|
13
|
+
</div>
|
|
14
|
+
</form>
|
|
15
|
+
{{ form.media.css }}
|
|
16
|
+
{{ form.media.js }}
|
|
17
|
+
{% endblock %}
|
|
@@ -1,101 +1,90 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base.html' %}
|
|
2
|
-
{% load static render styled_username %}
|
|
3
2
|
|
|
4
|
-
{%
|
|
5
|
-
{% block og_title_prefix %}{{ user.username }} | {% endblock %}
|
|
3
|
+
{% load static render styled_username %}
|
|
6
4
|
|
|
5
|
+
{% block title_prefix %}{{ user.username }} |{% endblock %}
|
|
6
|
+
{% block og_title_prefix %}{{ user.username }} |{% endblock %}
|
|
7
7
|
{% block extra_head %}
|
|
8
|
-
<link rel="stylesheet" href="{% static 'punkweb_bb/css/profile.css' %}"
|
|
8
|
+
<link rel="stylesheet" href="{% static 'punkweb_bb/css/profile.css' %}" />
|
|
9
9
|
{% endblock %}
|
|
10
|
-
|
|
11
10
|
{% block content %}
|
|
11
|
+
<nav>
|
|
12
|
+
<ul class="pw-breadcrumb">
|
|
13
|
+
<li class="pw-breadcrumb-item">
|
|
14
|
+
<a href="{% url 'punkweb_bb:index' %}">Home</a>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="pw-breadcrumb-item">
|
|
17
|
+
<a href="{% url 'punkweb_bb:members' %}">Members</a>
|
|
18
|
+
</li>
|
|
19
|
+
<li class="pw-breadcrumb-item active">{{ user.username }}</li>
|
|
20
|
+
</ul>
|
|
21
|
+
</nav>
|
|
22
|
+
<div class="pw-card fluid mb-4">
|
|
23
|
+
<div class="pw-card-content">
|
|
24
|
+
<div class="profile__info">
|
|
25
|
+
<div class="profile__info__avatar">
|
|
12
26
|
|
|
13
|
-
|
|
14
|
-
<ul class="pw-breadcrumb">
|
|
15
|
-
<li class="pw-breadcrumb-item">
|
|
16
|
-
<a href="{% url 'punkweb_bb:index' %}">Home</a>
|
|
17
|
-
</li>
|
|
18
|
-
<li class="pw-breadcrumb-item">
|
|
19
|
-
<a href="{% url 'punkweb_bb:members' %}">Members</a>
|
|
20
|
-
</li>
|
|
21
|
-
<li class="pw-breadcrumb-item active">
|
|
22
|
-
{{ user.username }}
|
|
23
|
-
</li>
|
|
24
|
-
</ul>
|
|
25
|
-
</nav>
|
|
27
|
+
{% include 'punkweb_bb/components/profile_image.html' with user=user size="lg" %}
|
|
26
28
|
|
|
27
|
-
<div class="pw-card fluid mb-4">
|
|
28
|
-
<div class="pw-card-content">
|
|
29
|
-
<div class="profile__info">
|
|
30
|
-
<div class="profile__info__avatar">
|
|
31
|
-
{% include 'punkweb_bb/components/profile_image.html' with user=user size="lg" %}
|
|
32
|
-
</div>
|
|
33
|
-
<div class="profile__info__details">
|
|
34
|
-
<div class="profile__info__username">
|
|
35
|
-
{{user|styled_username}}
|
|
36
|
-
{% if user.profile.is_online %}
|
|
37
|
-
<div class="pw-badge xs green">Online</div>
|
|
38
|
-
{% else %}
|
|
39
|
-
<div class="pw-badge xs">Offline</div>
|
|
40
|
-
{% endif %}
|
|
41
29
|
</div>
|
|
42
|
-
<div class="
|
|
43
|
-
<div class="
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
30
|
+
<div class="profile__info__details">
|
|
31
|
+
<div class="profile__info__username">
|
|
32
|
+
{{ user|styled_username }}
|
|
33
|
+
{% if user.profile.is_online %}
|
|
34
|
+
<div class="pw-badge xs green">Online</div>
|
|
35
|
+
{% else %}
|
|
36
|
+
<div class="pw-badge xs">Offline</div>
|
|
37
|
+
{% endif %}
|
|
48
38
|
</div>
|
|
49
|
-
<div class="
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
39
|
+
<div class="profile__info__stats">
|
|
40
|
+
<div class="profile__info__stat">
|
|
41
|
+
Date Joined:
|
|
42
|
+
<span class="profile__info__stat__value">
|
|
43
|
+
<time datetime="{{ user.date_joined|date:'c' }}">{{ user.date_joined | date:'m/d/Y' }}</time>
|
|
44
|
+
</span>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="profile__info__stat">
|
|
47
|
+
Last Login:
|
|
48
|
+
<span class="profile__info__stat__value">
|
|
49
|
+
<time datetime="{{ user.last_login|date:'c' }}">{{ user.last_login | date:'m/d/Y' }}</time>
|
|
50
|
+
</span>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="profile__info__stat">
|
|
53
|
+
Posts:
|
|
54
|
+
<span class="profile__info__stat__value">{{ user.profile.post_count }}</span>
|
|
55
|
+
</div>
|
|
58
56
|
</div>
|
|
59
57
|
</div>
|
|
60
58
|
</div>
|
|
61
59
|
</div>
|
|
62
60
|
</div>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
{% if user.threads.count == 0 %}
|
|
70
|
-
<div class="pw-card-content">
|
|
71
|
-
<div>{{ user.username }} has not created any threads.</div>
|
|
72
|
-
</div>
|
|
61
|
+
<div class="pw-card fluid">
|
|
62
|
+
<div class="pw-card-header">Threads</div>
|
|
63
|
+
{% if user.threads.count == 0 %}
|
|
64
|
+
<div class="pw-card-content">
|
|
65
|
+
<div>{{ user.username }} has not created any threads.</div>
|
|
66
|
+
</div>
|
|
73
67
|
{% else %}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<a href="{% url 'punkweb_bb:subcategory' thread.subcategory.slug %}">
|
|
91
|
-
{{thread.subcategory.name}}
|
|
92
|
-
</a>
|
|
68
|
+
<ul class="profile__thread__list">
|
|
69
|
+
{% for thread in user.threads.all %}
|
|
70
|
+
<li class="profile__thread">
|
|
71
|
+
<div class="profile__thread__details">
|
|
72
|
+
<div class="profile__thread__title">
|
|
73
|
+
<a href="{% url 'punkweb_bb:thread' thread.id %}">{{ thread.title }}</a>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="profile__thread__preview">{{ thread.content|render|striptags|truncatechars:120 }}</div>
|
|
76
|
+
<div class="profile__thread__date">
|
|
77
|
+
<time datetime="{{ thread.created_at|date:'c' }}">
|
|
78
|
+
{{ thread.created_at|date:'M j, Y' }} at
|
|
79
|
+
{{ thread.created_at|date:'g:i A' }}
|
|
80
|
+
</time>
|
|
81
|
+
•
|
|
82
|
+
<a href="{% url 'punkweb_bb:subcategory' thread.subcategory.slug %}">{{ thread.subcategory.name }}</a>
|
|
83
|
+
</div>
|
|
93
84
|
</div>
|
|
94
|
-
</
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
{% endblock %}
|
|
85
|
+
</li>
|
|
86
|
+
{% endfor %}
|
|
87
|
+
</ul>
|
|
88
|
+
{% endif %}
|
|
89
|
+
</div>
|
|
90
|
+
{% endblock %}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base.html' %}
|
|
2
|
+
|
|
2
3
|
{% load static %}
|
|
3
4
|
|
|
4
5
|
{% block content %}
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{% comment %} <li class="pw-breadcrumb-item">
|
|
6
|
+
<nav>
|
|
7
|
+
<ul class="pw-breadcrumb">
|
|
8
|
+
<li class="pw-breadcrumb-item">
|
|
9
|
+
<a href="{% url 'punkweb_bb:index' %}">Home</a>
|
|
10
|
+
</li>
|
|
11
|
+
{% comment %} <li class="pw-breadcrumb-item">
|
|
12
12
|
<a href="{{thread.subcategory.category.get_absolute_url}}">{{thread.subcategory.category.name}}</a>
|
|
13
13
|
</li>
|
|
14
14
|
<li class="pw-breadcrumb-item">
|
|
@@ -16,12 +16,8 @@
|
|
|
16
16
|
</li>
|
|
17
17
|
<li class="pw-breadcrumb-item active">
|
|
18
18
|
{{thread.title}}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</nav>
|
|
22
|
-
|
|
23
|
-
{%
|
|
24
|
-
<p>{{ thread.title }}</p>
|
|
25
|
-
{% endfor %}
|
|
26
|
-
|
|
27
|
-
{% endblock %}
|
|
19
|
+
</li> {% endcomment %}
|
|
20
|
+
</ul>
|
|
21
|
+
</nav>
|
|
22
|
+
{% for thread in threads %}<p>{{ thread.title }}</p>{% endfor %}
|
|
23
|
+
{% endblock %}
|
|
@@ -1,42 +1,35 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base.html' %}
|
|
2
|
-
{% load static %}
|
|
3
|
-
|
|
4
|
-
{% block title_prefix %}Settings | {% endblock %}
|
|
5
|
-
{% block og_title_prefix %}Settings | {% endblock %}
|
|
6
2
|
|
|
7
|
-
{%
|
|
8
|
-
{{form.media.css}}
|
|
9
|
-
{% endblock %}
|
|
10
|
-
|
|
11
|
-
{% block extra_script %}
|
|
12
|
-
{{form.media.js}}
|
|
13
|
-
{% endblock %}
|
|
3
|
+
{% load static %}
|
|
14
4
|
|
|
5
|
+
{% block title_prefix %}Settings |{% endblock %}
|
|
6
|
+
{% block og_title_prefix %}Settings |{% endblock %}
|
|
7
|
+
{% block extra_head %}{{ form.media.css }}{% endblock %}
|
|
8
|
+
{% block extra_script %}{{ form.media.js }}{% endblock %}
|
|
15
9
|
{% block content %}
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
10
|
+
<nav>
|
|
11
|
+
<ul class="pw-breadcrumb">
|
|
12
|
+
<li class="pw-breadcrumb-item">
|
|
13
|
+
<a href="{% url 'punkweb_bb:index' %}">Home</a>
|
|
14
|
+
</li>
|
|
15
|
+
<li class="pw-breadcrumb-item active">Settings</li>
|
|
16
|
+
</ul>
|
|
17
|
+
</nav>
|
|
18
|
+
<div class="pw-card fluid">
|
|
19
|
+
<div class="pw-card-header">Settings</div>
|
|
20
|
+
<div class="pw-card-content">
|
|
21
|
+
<form class="pw-form"
|
|
22
|
+
action="{% url 'punkweb_bb:settings' %}"
|
|
23
|
+
enctype="multipart/form-data"
|
|
24
|
+
method="post">
|
|
25
|
+
{% csrf_token %}
|
|
26
|
+
{{ form }}
|
|
27
|
+
<div class="pw-form-actions end">
|
|
28
|
+
<a class="pw-button default"
|
|
29
|
+
href="{% url 'punkweb_bb:profile' request.user.id %}">Cancel</a>
|
|
30
|
+
<button class="pw-button raised primary" type="submit">Save</button>
|
|
31
|
+
</div>
|
|
32
|
+
</form>
|
|
33
|
+
</div>
|
|
39
34
|
</div>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
35
|
{% endblock %}
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
{% load render styled_username can_delete %}
|
|
2
2
|
|
|
3
3
|
{% for shout in shouts %}
|
|
4
|
-
<div class="shoutbox__shout">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<div class="shoutbox__shout">
|
|
5
|
+
<div class="shoutbox__shout__content">
|
|
6
|
+
<time datetime="{{ shout.created_at|date:'c' }}">{{ shout.created_at | date:'g:i A' }}</time>
|
|
7
|
+
<span><a href="{% url 'punkweb_bb:profile' shout.user.id %}">{{ shout.user|styled_username }}</a>: </span>
|
|
8
|
+
<span>{{ shout.content|render_shout }}</span>
|
|
9
|
+
</div>
|
|
10
|
+
{% if shout|can_delete:request.user %}
|
|
11
|
+
<div class="shoutbox__shout__actions">
|
|
12
|
+
<button class="pw-icon-button default red sm"
|
|
13
|
+
title="Delete"
|
|
14
|
+
hx-get="{% url 'punkweb_bb:shout_delete' shout.id %}"
|
|
15
|
+
hx-target="#dialog-portal">
|
|
16
|
+
<span class="material-symbols-outlined">delete</span>
|
|
17
|
+
</button>
|
|
18
|
+
</div>
|
|
19
|
+
{% endif %}
|
|
9
20
|
</div>
|
|
10
|
-
|
|
11
|
-
<div class="shoutbox__shout__actions">
|
|
12
|
-
<button
|
|
13
|
-
class="pw-icon-button default red sm"
|
|
14
|
-
title="Delete"
|
|
15
|
-
hx-get="{% url 'punkweb_bb:shout_delete' shout.id %}"
|
|
16
|
-
hx-target="#dialog-portal"
|
|
17
|
-
>
|
|
18
|
-
<span class="material-symbols-outlined">delete</span>
|
|
19
|
-
</button>
|
|
20
|
-
</div>
|
|
21
|
-
{% endif %}
|
|
22
|
-
</div>
|
|
23
|
-
{% endfor %}
|
|
21
|
+
{% endfor %}
|
|
@@ -1,36 +1,25 @@
|
|
|
1
1
|
{% load punkweb_bb %}
|
|
2
2
|
|
|
3
3
|
<div class="pw-card fluid mb-4">
|
|
4
|
-
<div class="pw-card-header">
|
|
5
|
-
Shoutbox
|
|
6
|
-
</div>
|
|
7
|
-
|
|
4
|
+
<div class="pw-card-header">Shoutbox</div>
|
|
8
5
|
{% punkweb_bb "SHOUTBOX_POLLING_ENABLED" as polling_enabled %}
|
|
9
6
|
{% punkweb_bb "SHOUTBOX_POLLING_INTERVAL" as polling_interval %}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
hx-trigger="load{% if polling_enabled %}, every {{ polling_interval }}s{% endif %}"
|
|
16
|
-
hx-on::after-request="shoutboxScrollToBottom(event)"
|
|
17
|
-
>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
7
|
+
<div class="shoutbox__shouts"
|
|
8
|
+
id="shoutlist"
|
|
9
|
+
hx-get="{% url 'punkweb_bb:shout_list' %}"
|
|
10
|
+
hx-trigger="load{% if polling_enabled %}, every {{ polling_interval }}s{% endif %}"
|
|
11
|
+
hx-on::after-request="shoutboxScrollToBottom(event)"></div>
|
|
20
12
|
{% if request.user.is_authenticated %}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
style="border: none;"
|
|
33
|
-
type="text" />
|
|
34
|
-
</form>
|
|
13
|
+
<form class="py-2"
|
|
14
|
+
hx-post="{% url 'punkweb_bb:shout_create' %}"
|
|
15
|
+
hx-target="#shoutlist"
|
|
16
|
+
hx-on::after-request="this.reset(); shoutboxScrollToBottom(event)">
|
|
17
|
+
<input autocomplete="off"
|
|
18
|
+
class="pw-input fluid"
|
|
19
|
+
name="content"
|
|
20
|
+
placeholder="Type your message here..."
|
|
21
|
+
style="border: none"
|
|
22
|
+
type="text" />
|
|
23
|
+
</form>
|
|
35
24
|
{% endif %}
|
|
36
|
-
</div>
|
|
25
|
+
</div>
|
|
@@ -1,37 +1,31 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base.html' %}
|
|
2
|
-
{% load static %}
|
|
3
2
|
|
|
4
|
-
{%
|
|
5
|
-
{% block og_title_prefix %}Sign Up | {% endblock %}
|
|
3
|
+
{% load static %}
|
|
6
4
|
|
|
5
|
+
{% block title_prefix %}Sign Up |{% endblock %}
|
|
6
|
+
{% block og_title_prefix %}Sign Up |{% endblock %}
|
|
7
7
|
{% block extra_head %}
|
|
8
|
-
<link rel="stylesheet" href="{% static 'punkweb_bb/css/signup.css' %}" />
|
|
8
|
+
<link rel="stylesheet" href="{% static 'punkweb_bb/css/signup.css' %}" />
|
|
9
9
|
{% endblock %}
|
|
10
|
-
|
|
11
10
|
{% block content %}
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<button class="pw-button fluid raised primary" type="submit">Sign Up</button>
|
|
32
|
-
</div>
|
|
33
|
-
</form>
|
|
11
|
+
<nav>
|
|
12
|
+
<ul class="pw-breadcrumb">
|
|
13
|
+
<li class="pw-breadcrumb-item">
|
|
14
|
+
<a href="{% url 'punkweb_bb:index' %}">Home</a>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="pw-breadcrumb-item active">Sign Up</li>
|
|
17
|
+
</ul>
|
|
18
|
+
</nav>
|
|
19
|
+
<div class="pw-card centerPage">
|
|
20
|
+
<div class="pw-card-header">Sign Up</div>
|
|
21
|
+
<div class="pw-card-content">
|
|
22
|
+
<form class="pw-form" action="{% url 'punkweb_bb:signup' %}" method="post">
|
|
23
|
+
{% csrf_token %}
|
|
24
|
+
{{ form }}
|
|
25
|
+
<div class="pw-form-actions">
|
|
26
|
+
<button class="pw-button fluid raised primary" type="submit">Sign Up</button>
|
|
27
|
+
</div>
|
|
28
|
+
</form>
|
|
29
|
+
</div>
|
|
34
30
|
</div>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{% endblock %}
|
|
31
|
+
{% endblock %}
|