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.
Files changed (92) hide show
  1. punkweb_bb/__pycache__/__init__.cpython-313.pyc +0 -0
  2. punkweb_bb/__pycache__/admin.cpython-313.pyc +0 -0
  3. punkweb_bb/__pycache__/admin_forms.cpython-313.pyc +0 -0
  4. punkweb_bb/__pycache__/apps.cpython-313.pyc +0 -0
  5. punkweb_bb/__pycache__/bbcode.cpython-313.pyc +0 -0
  6. punkweb_bb/__pycache__/decorators.cpython-313.pyc +0 -0
  7. punkweb_bb/__pycache__/forms.cpython-313.pyc +0 -0
  8. punkweb_bb/__pycache__/guests.cpython-313.pyc +0 -0
  9. punkweb_bb/__pycache__/middleware.cpython-313.pyc +0 -0
  10. punkweb_bb/__pycache__/mixins.cpython-313.pyc +0 -0
  11. punkweb_bb/__pycache__/models.cpython-311.pyc +0 -0
  12. punkweb_bb/__pycache__/models.cpython-313.pyc +0 -0
  13. punkweb_bb/__pycache__/pagination.cpython-313.pyc +0 -0
  14. punkweb_bb/__pycache__/response.cpython-313.pyc +0 -0
  15. punkweb_bb/__pycache__/searching.cpython-313.pyc +0 -0
  16. punkweb_bb/__pycache__/settings.cpython-313.pyc +0 -0
  17. punkweb_bb/__pycache__/signals.cpython-313.pyc +0 -0
  18. punkweb_bb/__pycache__/tests.cpython-313.pyc +0 -0
  19. punkweb_bb/__pycache__/urls.cpython-313.pyc +0 -0
  20. punkweb_bb/__pycache__/utils.cpython-313.pyc +0 -0
  21. punkweb_bb/__pycache__/views.cpython-311.pyc +0 -0
  22. punkweb_bb/__pycache__/views.cpython-313.pyc +0 -0
  23. punkweb_bb/__pycache__/widgets.cpython-313.pyc +0 -0
  24. punkweb_bb/bbcode.py +16 -4
  25. punkweb_bb/migrations/0008_alter_groupstyle_username_style.py +18 -0
  26. punkweb_bb/migrations/__pycache__/0001_initial.cpython-313.pyc +0 -0
  27. punkweb_bb/migrations/__pycache__/0002_thread_view_count.cpython-313.pyc +0 -0
  28. punkweb_bb/migrations/__pycache__/0003_alter_thread_options.cpython-313.pyc +0 -0
  29. punkweb_bb/migrations/__pycache__/0004_groupstyle.cpython-313.pyc +0 -0
  30. punkweb_bb/migrations/__pycache__/0005_alter_thread_options.cpython-313.pyc +0 -0
  31. punkweb_bb/migrations/__pycache__/0006_remove_boardprofile__signature_rendered_and_more.cpython-313.pyc +0 -0
  32. punkweb_bb/migrations/__pycache__/0007_boardprofile_bio.cpython-313.pyc +0 -0
  33. punkweb_bb/migrations/__pycache__/0008_alter_groupstyle_username_style.cpython-311.pyc +0 -0
  34. punkweb_bb/migrations/__pycache__/0008_alter_groupstyle_username_style.cpython-313.pyc +0 -0
  35. punkweb_bb/migrations/__pycache__/0009_report.cpython-313.pyc +0 -0
  36. punkweb_bb/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
  37. punkweb_bb/models.py +6 -3
  38. punkweb_bb/settings.py +2 -0
  39. punkweb_bb/static/punkweb_bb/css/bbcode-editor-content.css +4 -0
  40. punkweb_bb/static/punkweb_bb/css/members.css +6 -0
  41. punkweb_bb/static/punkweb_bb/css/punkweb.css +4 -0
  42. punkweb_bb/static/punkweb_bb/vendor/prism-duotone-sea.css +170 -0
  43. punkweb_bb/static/punkweb_bb/vendor/punkweb-ui.min.css +1 -1
  44. punkweb_bb/templates/punkweb_bb/base.html +84 -96
  45. punkweb_bb/templates/punkweb_bb/base_delete_dialog.html +13 -10
  46. punkweb_bb/templates/punkweb_bb/base_dialog.html +6 -6
  47. punkweb_bb/templates/punkweb_bb/bbcode.html +12 -14
  48. punkweb_bb/templates/punkweb_bb/category_create.html +26 -27
  49. punkweb_bb/templates/punkweb_bb/category_update.html +27 -30
  50. punkweb_bb/templates/punkweb_bb/components/pagination_controls.html +36 -44
  51. punkweb_bb/templates/punkweb_bb/components/profile_image.html +8 -8
  52. punkweb_bb/templates/punkweb_bb/forms/inline_form.html +5 -5
  53. punkweb_bb/templates/punkweb_bb/forms/stacked_form.html +35 -32
  54. punkweb_bb/templates/punkweb_bb/index.html +205 -211
  55. punkweb_bb/templates/punkweb_bb/login.html +24 -30
  56. punkweb_bb/templates/punkweb_bb/members.html +57 -61
  57. punkweb_bb/templates/punkweb_bb/partials/category_delete.html +3 -3
  58. punkweb_bb/templates/punkweb_bb/partials/post_delete.html +3 -3
  59. punkweb_bb/templates/punkweb_bb/partials/post_update.html +12 -11
  60. punkweb_bb/templates/punkweb_bb/partials/shout_delete.html +3 -3
  61. punkweb_bb/templates/punkweb_bb/partials/subcategory_delete.html +3 -3
  62. punkweb_bb/templates/punkweb_bb/partials/thread_delete.html +3 -3
  63. punkweb_bb/templates/punkweb_bb/partials/thread_move.html +13 -12
  64. punkweb_bb/templates/punkweb_bb/profile.html +73 -84
  65. punkweb_bb/templates/punkweb_bb/search.html +12 -16
  66. punkweb_bb/templates/punkweb_bb/settings.html +29 -36
  67. punkweb_bb/templates/punkweb_bb/shoutbox/shout_list.html +17 -19
  68. punkweb_bb/templates/punkweb_bb/shoutbox/shoutbox.html +18 -29
  69. punkweb_bb/templates/punkweb_bb/signup.html +24 -30
  70. punkweb_bb/templates/punkweb_bb/subcategory.html +114 -132
  71. punkweb_bb/templates/punkweb_bb/subcategory_create.html +32 -39
  72. punkweb_bb/templates/punkweb_bb/subcategory_update.html +33 -42
  73. punkweb_bb/templates/punkweb_bb/thread.html +207 -238
  74. punkweb_bb/templates/punkweb_bb/thread_create.html +36 -43
  75. punkweb_bb/templates/punkweb_bb/thread_update.html +36 -45
  76. punkweb_bb/templates/punkweb_bb/widgets/markdown-editor.html +3 -1
  77. punkweb_bb/templatetags/__pycache__/__init__.cpython-313.pyc +0 -0
  78. punkweb_bb/templatetags/__pycache__/can_delete.cpython-313.pyc +0 -0
  79. punkweb_bb/templatetags/__pycache__/can_edit.cpython-313.pyc +0 -0
  80. punkweb_bb/templatetags/__pycache__/can_post.cpython-313.pyc +0 -0
  81. punkweb_bb/templatetags/__pycache__/humanize_int.cpython-313.pyc +0 -0
  82. punkweb_bb/templatetags/__pycache__/punkweb_bb.cpython-313.pyc +0 -0
  83. punkweb_bb/templatetags/__pycache__/render.cpython-313.pyc +0 -0
  84. punkweb_bb/templatetags/__pycache__/styled_group_name.cpython-313.pyc +0 -0
  85. punkweb_bb/templatetags/__pycache__/styled_username.cpython-313.pyc +0 -0
  86. punkweb_bb/tests.py +21 -0
  87. punkweb_bb/views.py +27 -27
  88. {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info}/METADATA +93 -37
  89. {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info}/RECORD +92 -49
  90. {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info}/WHEEL +1 -1
  91. {punkweb_bb-0.5.0.dist-info → punkweb_bb-0.5.2.dist-info/licenses}/LICENSE +0 -0
  92. {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
- {% block title_prefix %}Edit Category | {% endblock %}
3
+ {% load static %}
5
4
 
5
+ {% block title_prefix %}Edit Category |{% endblock %}
6
6
  {% block content %}
7
-
8
- <nav>
9
- <ul class="pw-breadcrumb">
10
- <li class="pw-breadcrumb-item">
11
- <a href="{% url 'punkweb_bb:index' %}">Home</a>
12
- </li>
13
- <li class="pw-breadcrumb-item">
14
- <a href="{{category.get_absolute_url}}">{{category.name}}</a>
15
- </li>
16
- <li class="pw-breadcrumb-item active">
17
- Edit
18
- </li>
19
- </ul>
20
- </nav>
21
-
22
- <div class="pw-card fluid">
23
- <div class="pw-card-header">Edit Category</div>
24
- <div class="pw-card-content">
25
- <form class="pw-form" action="{% url 'punkweb_bb:category_update' category.slug %}" method="post">
26
- {% csrf_token %}
27
- {{ form }}
28
- <div class="pw-form-actions end">
29
- <a class="pw-button default" href="{{category.get_absolute_url}}">Cancel</a>
30
- <button class="pw-button raised primary" type="submit">Save</button>
31
- </div>
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
- <ul class="pw-pagination">
4
- {% if paginator.has_previous %}
5
- <li class="pw-pagination-item">
6
- <a class="pw-pagination-link" href="?page={{paginator.previous_page_number}}">
7
- Prev
8
- </a>
9
- </li>
10
- {% else %}
11
- <li class="pw-pagination-item disabled">
12
- <a class="pw-pagination-link" href="#">
13
- Prev
14
- </a>
15
- </li>
16
- {% endif %}
17
- {% for i in paginator.paginator.page_range %}
18
- {% if paginator.number == i %}
19
- <li class="pw-pagination-item active">
20
- <a class="pw-pagination-link" href="#">
21
- {{i}}
22
- </a>
23
- </li>
24
- {% else %}
25
- <li class="pw-pagination-item">
26
- <a class="pw-pagination-link" href="?page={{i}}">
27
- {{i}}
28
- </a>
29
- </li>
30
- {% endif %}
31
- {% endfor %}
32
- {% if paginator.has_next %}
33
- <li class="pw-pagination-item">
34
- <a class="pw-pagination-link" href="?page={{paginator.next_page_number}}">
35
- Next
36
- </a>
37
- </li>
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
- <div class="pw-avatar {{size|default:"xs"}}">
2
+
3
+ <div class="pw-avatar {{ size|default:"xs" }}">
3
4
  {% if user.profile.image %}
4
- <img
5
- 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>
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
- <label class="pw-input-label" for="{{ field.id_for_label }}">{{ field.label }}</label>
4
- {{ field }}
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
- <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" src="{{ field.value.url }}" alt="{{ field.label }}">
8
- </div>
9
- <label>
10
- <input type="checkbox" name="{{ field.name }}-clear" id="{{ field.name }}-clear_id" />
11
- Remove
12
- </label>
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 %}