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,36 +1,33 @@
|
|
|
1
1
|
{% extends 'punkweb_bb/base.html' %}
|
|
2
|
-
{% load static %}
|
|
3
2
|
|
|
4
|
-
{%
|
|
3
|
+
{% load static %}
|
|
5
4
|
|
|
5
|
+
{% block title_prefix %}Edit Category |{% endblock %}
|
|
6
6
|
{% block content %}
|
|
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
|
-
</form>
|
|
7
|
+
<nav>
|
|
8
|
+
<ul class="pw-breadcrumb">
|
|
9
|
+
<li class="pw-breadcrumb-item">
|
|
10
|
+
<a href="{% url 'punkweb_bb:index' %}">Home</a>
|
|
11
|
+
</li>
|
|
12
|
+
<li class="pw-breadcrumb-item">
|
|
13
|
+
<a href="{{ category.get_absolute_url }}">{{ category.name }}</a>
|
|
14
|
+
</li>
|
|
15
|
+
<li class="pw-breadcrumb-item active">Edit</li>
|
|
16
|
+
</ul>
|
|
17
|
+
</nav>
|
|
18
|
+
<div class="pw-card fluid">
|
|
19
|
+
<div class="pw-card-header">Edit Category</div>
|
|
20
|
+
<div class="pw-card-content">
|
|
21
|
+
<form class="pw-form"
|
|
22
|
+
action="{% url 'punkweb_bb:category_update' category.slug %}"
|
|
23
|
+
method="post">
|
|
24
|
+
{% csrf_token %}
|
|
25
|
+
{{ form }}
|
|
26
|
+
<div class="pw-form-actions end">
|
|
27
|
+
<a class="pw-button default" href="{{ category.get_absolute_url }}">Cancel</a>
|
|
28
|
+
<button class="pw-button raised primary" type="submit">Save</button>
|
|
29
|
+
</div>
|
|
30
|
+
</form>
|
|
31
|
+
</div>
|
|
33
32
|
</div>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
33
|
{% endblock %}
|
|
@@ -1,45 +1,37 @@
|
|
|
1
1
|
{% if paginator.has_other_pages %}
|
|
2
|
-
<nav>
|
|
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
|
-
{% else %}
|
|
39
|
-
<li class="pw-pagination-item disabled">
|
|
40
|
-
<a class="pw-pagination-link" href="#">Next</a>
|
|
41
|
-
</li>
|
|
42
|
-
{% endif %}
|
|
43
|
-
</ul>
|
|
44
|
-
</nav>
|
|
45
|
-
{% endif %}
|
|
2
|
+
<nav>
|
|
3
|
+
<ul class="pw-pagination">
|
|
4
|
+
{% if paginator.has_previous %}
|
|
5
|
+
<li class="pw-pagination-item">
|
|
6
|
+
<a class="pw-pagination-link"
|
|
7
|
+
href="?page={{ paginator.previous_page_number }}">Prev</a>
|
|
8
|
+
</li>
|
|
9
|
+
{% else %}
|
|
10
|
+
<li class="pw-pagination-item disabled">
|
|
11
|
+
<a class="pw-pagination-link" href="#">Prev</a>
|
|
12
|
+
</li>
|
|
13
|
+
{% endif %}
|
|
14
|
+
{% for i in paginator.paginator.page_range %}
|
|
15
|
+
{% if paginator.number == i %}
|
|
16
|
+
<li class="pw-pagination-item active">
|
|
17
|
+
<a class="pw-pagination-link" href="#">{{ i }}</a>
|
|
18
|
+
</li>
|
|
19
|
+
{% else %}
|
|
20
|
+
<li class="pw-pagination-item">
|
|
21
|
+
<a class="pw-pagination-link" href="?page={{ i }}">{{ i }}</a>
|
|
22
|
+
</li>
|
|
23
|
+
{% endif %}
|
|
24
|
+
{% endfor %}
|
|
25
|
+
{% if paginator.has_next %}
|
|
26
|
+
<li class="pw-pagination-item">
|
|
27
|
+
<a class="pw-pagination-link"
|
|
28
|
+
href="?page={{ paginator.next_page_number }}">Next</a>
|
|
29
|
+
</li>
|
|
30
|
+
{% else %}
|
|
31
|
+
<li class="pw-pagination-item disabled">
|
|
32
|
+
<a class="pw-pagination-link" href="#">Next</a>
|
|
33
|
+
</li>
|
|
34
|
+
{% endif %}
|
|
35
|
+
</ul>
|
|
36
|
+
</nav>
|
|
37
|
+
{% endif %}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{% load static %}
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
<div class="pw-avatar {{ size|default:"xs" }}">
|
|
3
4
|
{% if user.profile.image %}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<div class="pw-avatar-fallback">{{user.username|slice:":1"}}</div>
|
|
5
|
+
<img class="pw-avatar-image"
|
|
6
|
+
src="{{ user.profile.image.url }}"
|
|
7
|
+
alt="{{ user.username }}" />
|
|
8
|
+
{% else %}
|
|
9
|
+
<div class="pw-avatar-fallback">{{ user.username|slice:":1" }}</div>
|
|
10
10
|
{% endif %}
|
|
11
|
-
</div>
|
|
11
|
+
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% for field in form %}
|
|
2
|
-
<div class="pw-form-group">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
</div>
|
|
6
|
-
{% endfor %}
|
|
2
|
+
<div class="pw-form-group">
|
|
3
|
+
<label class="pw-input-label" for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
4
|
+
{{ field }}
|
|
5
|
+
</div>
|
|
6
|
+
{% endfor %}
|
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
{% for field in form %}
|
|
2
|
-
{% if field.widget_type == "clearablefile" %}
|
|
3
|
-
<div class="pw-form-group">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
{% if field.widget_type == "clearablefile" %}
|
|
3
|
+
<div class="pw-form-group">
|
|
4
|
+
<label class="pw-input-label" for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
5
|
+
{% if field.value %}
|
|
6
|
+
<div class="pw-avatar xl">
|
|
7
|
+
<img class="pw-avatar-image"
|
|
8
|
+
src="{{ field.value.url }}"
|
|
9
|
+
alt="{{ field.label }}" />
|
|
10
|
+
</div>
|
|
11
|
+
<label>
|
|
12
|
+
<input type="checkbox"
|
|
13
|
+
name="{{ field.name }}-clear"
|
|
14
|
+
id="{{ field.name }}-clear_id" />
|
|
15
|
+
Remove
|
|
16
|
+
</label>
|
|
17
|
+
{% endif %}
|
|
18
|
+
<input type="file"
|
|
19
|
+
name="{{ field.name }}"
|
|
20
|
+
accept="image/*"
|
|
21
|
+
id="{{ field.id_for_label }}" />
|
|
22
|
+
{{ field.errors }}
|
|
23
|
+
</div>
|
|
24
|
+
{% elif field.widget_type == "checkbox" %}
|
|
25
|
+
<div class="pw-form-group check">
|
|
26
|
+
{{ field }}
|
|
27
|
+
<label class="pw-checkbox-label" for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
28
|
+
{{ field.errors }}
|
|
29
|
+
</div>
|
|
30
|
+
{% else %}
|
|
31
|
+
<div class="pw-form-group">
|
|
32
|
+
{% if field.label %}<label class="pw-input-label" for="{{ field.id_for_label }}">{{ field.label }}</label>{% endif %}
|
|
33
|
+
{{ field }}
|
|
34
|
+
{{ field.errors }}
|
|
35
|
+
</div>
|
|
13
36
|
{% endif %}
|
|
14
|
-
<input type="file" name="{{ field.name }}" accept="image/*" id="{{ field.id_for_label }}" />
|
|
15
|
-
{{ field.errors }}
|
|
16
|
-
</div>
|
|
17
|
-
{% elif field.widget_type == "checkbox" %}
|
|
18
|
-
<div class="pw-form-group check">
|
|
19
|
-
{{ field }}
|
|
20
|
-
<label class="pw-checkbox-label" for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
21
|
-
{{ field.errors }}
|
|
22
|
-
</div>
|
|
23
|
-
{% else %}
|
|
24
|
-
<div class="pw-form-group">
|
|
25
|
-
{% if field.label %}
|
|
26
|
-
<label class="pw-input-label" for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
27
|
-
{% endif %}
|
|
28
|
-
{{ field }}
|
|
29
|
-
{{ field.errors }}
|
|
30
|
-
</div>
|
|
31
|
-
{% endif %}
|
|
32
37
|
{% endfor %}
|
|
33
|
-
{% if form.non_field_errors %}
|
|
34
|
-
{{ form.non_field_errors }}
|
|
35
|
-
{% endif %}
|
|
38
|
+
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
|