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
@@ -3,235 +3,229 @@
3
3
  {% load static punkweb_bb render styled_username %}
4
4
 
5
5
  {% block extra_head %}
6
- <link rel="stylesheet" href="{% static 'punkweb_bb/css/index.css' %}" />
7
- <link rel="stylesheet" href="{% static 'punkweb_bb/css/shoutbox.css' %}" />
6
+ <link rel="stylesheet" href="{% static 'punkweb_bb/css/index.css' %}" />
7
+ <link rel="stylesheet" href="{% static 'punkweb_bb/css/shoutbox.css' %}" />
8
8
  {% endblock %}
9
-
10
9
  {% block extra_script %}
11
- <script src="{% static 'punkweb_bb/js/shoutbox.js' %}"></script>
10
+ <script src="{% static 'punkweb_bb/js/shoutbox.js' %}"></script>
12
11
  {% endblock %}
13
-
14
12
  {% block content %}
13
+ <div class="index">
14
+ <div class="index__main">
15
+ <div class="index__categories">
16
+ {% punkweb_bb "SHOUTBOX_ENABLED" as shoutbox_enabled %}
17
+ {% if shoutbox_enabled %}
15
18
 
16
- <div class="index">
17
- <div class="index__main">
18
- <div class="index__categories">
19
- {% punkweb_bb "SHOUTBOX_ENABLED" as shoutbox_enabled %}
20
- {% if shoutbox_enabled %}
21
- {% include 'punkweb_bb/shoutbox/shoutbox.html' %}
22
- {% endif %}
23
- {% for category in categories %}
24
- <div id="{{category.slug}}.{{category.order}}" class="pw-card fluid mb-4">
25
- <div class="pw-table-container">
26
- <table class="pw-table">
27
- <colgroup>
28
- <col span="1">
29
- <col span="1" width="96px">
30
- <col span="1" width="96px">
31
- <col span="1" width="320px">
32
- </colgroup>
33
- <thead>
34
- <tr>
35
- <th>
36
- <div class="index__category__title">
37
- <a href="{{category.get_absolute_url}}">{{category.name}}</a>
38
- {% if perms.punkweb_bb.add_subcategory %}
39
- <a
40
- class="pw-icon-button default rounded sm"
41
- href="{% url 'punkweb_bb:subcategory_create' category.slug %}"
42
- title="Create subcategory"
43
- >
44
- <span class="material-symbols-outlined">add</span>
45
- </a>
46
- {% endif %}
47
- {% if perms.punkweb_bb.change_category %}
48
- <a
49
- class="pw-icon-button default rounded sm"
50
- href="{% url 'punkweb_bb:category_update' category.slug %}"
51
- title="Edit category"
52
- >
53
- <span class="material-symbols-outlined">edit</span>
54
- </a>
55
- {% endif %}
56
- {% if perms.punkweb_bb.delete_category %}
57
- <a
58
- class="pw-icon-button default red rounded sm"
59
- title="Delete category"
60
- hx-get="{% url 'punkweb_bb:category_delete' category.slug %}"
61
- hx-target="#dialog-portal"
62
- >
63
- <span class="material-symbols-outlined">delete</span>
64
- </a>
65
- {% endif %}
66
- </div>
67
- </th>
68
- <th>Threads</th>
69
- <th>Posts</th>
70
- <th></th>
71
- </tr>
72
- </thead>
73
- <tbody>
74
- {% for subcategory in category.subcategories.all %}
75
- <tr>
76
- <td>
77
- <a href="{{subcategory.get_absolute_url}}" title="{{subcategory.name}}">{{subcategory.name}}</a>
78
- <div>
79
- {{subcategory.description|render}}
80
- </div>
81
- </td>
82
- <td>{{subcategory.thread_count}}</td>
83
- <td>{{subcategory.post_count}}</td>
84
- <td>
85
- {% if subcategory.latest_thread %}
86
- {% if subcategory.latest_thread.latest_post %}
87
- <div class="subcategory__latestThread">
88
- {% include 'punkweb_bb/components/profile_image.html' with user=subcategory.latest_thread.latest_post.user %}
89
- <div class="subcategory__latestThread__info">
90
- <a class="subcategory__latestThread__info__title"
91
- href="{{subcategory.latest_thread.get_absolute_url}}" title="{{subcategory.latest_thread.title}}">
92
- {{subcategory.latest_thread.title}}
93
- </a>
94
- <div>
95
- <time datetime="{{subcategory.latest_thread.latest_post.created_at|date:'c'}}">
96
- {{subcategory.latest_thread.latest_post.created_at|date:'M j, Y'}} at
97
- {{subcategory.latest_thread.latest_post.created_at|date:'g:i A'}}
98
- </time>
99
-
100
- <a href="{% url 'punkweb_bb:profile' subcategory.latest_thread.latest_post.user.id %}">
101
- {{subcategory.latest_thread.latest_post.user|styled_username}}
102
- </a>
103
- </div>
104
- </div>
105
- </div>
106
- {% else %}
107
- <div class="subcategory__latestThread">
108
- {% include 'punkweb_bb/components/profile_image.html' with user=subcategory.latest_thread.user %}
109
- <div class="subcategory__latestThread__info">
110
- <a class="subcategory__latestThread__info__title"
111
- href="{{subcategory.latest_thread.get_absolute_url}}" title="{{subcategory.latest_thread.title}}">
112
- {{subcategory.latest_thread.title}}
113
- </a>
114
- <div>
115
- <time datetime="{{subcategory.latest_thread.created_at|date:'c'}}">
116
- {{subcategory.latest_thread.created_at|date:'M j, Y'}} at
117
- {{subcategory.latest_thread.created_at|date:'g:i A'}}
118
- </time>
119
-
120
- <a href="{% url 'punkweb_bb:profile' subcategory.latest_thread.user.id %}">
121
- {{subcategory.latest_thread.user|styled_username}}
122
- </a>
19
+ {% include 'punkweb_bb/shoutbox/shoutbox.html' %}
20
+
21
+ {% endif %}
22
+ {% for category in categories %}
23
+ <div id="{{ category.slug }}.{{ category.order }}"
24
+ class="pw-card fluid mb-4">
25
+ <div class="pw-table-container">
26
+ <table class="pw-table">
27
+ <colgroup>
28
+ <col span="1" />
29
+ <col span="1" width="96px" />
30
+ <col span="1" width="96px" />
31
+ <col span="1" width="320px" />
32
+ </colgroup>
33
+ <thead>
34
+ <tr>
35
+ <th>
36
+ <div class="index__category__title">
37
+ <a href="{{ category.get_absolute_url }}">{{ category.name }}</a>
38
+ {% if perms.punkweb_bb.add_subcategory %}
39
+ <a class="pw-icon-button default rounded sm"
40
+ href="{% url 'punkweb_bb:subcategory_create' category.slug %}"
41
+ title="Create subcategory">
42
+ <span class="material-symbols-outlined">add</span>
43
+ </a>
44
+ {% endif %}
45
+ {% if perms.punkweb_bb.change_category %}
46
+ <a class="pw-icon-button default rounded sm"
47
+ href="{% url 'punkweb_bb:category_update' category.slug %}"
48
+ title="Edit category">
49
+ <span class="material-symbols-outlined">edit</span>
50
+ </a>
51
+ {% endif %}
52
+ {% if perms.punkweb_bb.delete_category %}
53
+ <a class="pw-icon-button default red rounded sm"
54
+ title="Delete category"
55
+ hx-get="{% url 'punkweb_bb:category_delete' category.slug %}"
56
+ hx-target="#dialog-portal">
57
+ <span class="material-symbols-outlined">delete</span>
58
+ </a>
59
+ {% endif %}
123
60
  </div>
61
+ </th>
62
+ <th>Threads</th>
63
+ <th>Posts</th>
64
+ <th></th>
65
+ </tr>
66
+ </thead>
67
+ <tbody>
68
+ {% for subcategory in category.subcategories.all %}
69
+ <tr>
70
+ <td>
71
+ <a href="{{ subcategory.get_absolute_url }}"
72
+ title="{{ subcategory.name }}">{{ subcategory.name }}</a>
73
+ <div>{{ subcategory.description|render }}</div>
74
+ </td>
75
+ <td>{{ subcategory.thread_count }}</td>
76
+ <td>{{ subcategory.post_count }}</td>
77
+ <td>
78
+ {% if subcategory.latest_thread %}
79
+ {% if subcategory.latest_thread.latest_post %}
80
+ <div class="subcategory__latestThread">
81
+
82
+ {% include 'punkweb_bb/components/profile_image.html' with user=subcategory.latest_thread.latest_post.user %}
83
+
84
+ <div class="subcategory__latestThread__info">
85
+ <a class="subcategory__latestThread__info__title"
86
+ href="{{ subcategory.latest_thread.get_absolute_url }}"
87
+ title="{{ subcategory.latest_thread.title }}">
88
+ {{ subcategory.latest_thread.title }}
89
+ </a>
90
+ <div>
91
+ <time datetime="{{ subcategory.latest_thread.latest_post.created_at|date:'c' }}">
92
+ {{ subcategory.latest_thread.latest_post.created_at|date:'M j, Y' }} at
93
+ {{ subcategory.latest_thread.latest_post.created_at|date:'g:i A' }}
94
+ </time>
95
+
96
+ <a href="{% url 'punkweb_bb:profile' subcategory.latest_thread.latest_post.user.id %}">
97
+ {{ subcategory.latest_thread.latest_post.user|styled_username }}
98
+ </a>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ {% else %}
103
+ <div class="subcategory__latestThread">
104
+
105
+ {% include 'punkweb_bb/components/profile_image.html' with user=subcategory.latest_thread.user %}
106
+
107
+ <div class="subcategory__latestThread__info">
108
+ <a class="subcategory__latestThread__info__title"
109
+ href="{{ subcategory.latest_thread.get_absolute_url }}"
110
+ title="{{ subcategory.latest_thread.title }}">
111
+ {{ subcategory.latest_thread.title }}
112
+ </a>
113
+ <div>
114
+ <time datetime="{{ subcategory.latest_thread.created_at|date:'c' }}">
115
+ {{ subcategory.latest_thread.created_at|date:'M j, Y' }} at
116
+ {{ subcategory.latest_thread.created_at|date:'g:i A' }}
117
+ </time>
118
+
119
+ <a href="{% url 'punkweb_bb:profile' subcategory.latest_thread.user.id %}">
120
+ {{ subcategory.latest_thread.user|styled_username }}
121
+ </a>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ {% endif %}
126
+ {% else %}
127
+ No threads
128
+ {% endif %}
129
+ </td>
130
+ </tr>
131
+ {% endfor %}
132
+ </tbody>
133
+ </table>
134
+ </div>
135
+ </div>
136
+ {% endfor %}
137
+ {% if perms.punkweb_bb.add_category %}
138
+ <a class="pw-icon-button raised primary rounded"
139
+ href="{% url 'punkweb_bb:category_create' %}"
140
+ title="Create category">
141
+ <span class="material-symbols-outlined">add</span>
142
+ </a>
143
+ {% endif %}
144
+ </div>
145
+ <div class="index__sidebar">
146
+ <div class="pw-card fluid mb-4">
147
+ <div class="pw-card-header">Recent threads</div>
148
+ <div class="pw-card-content">
149
+ <div class="index__recentThreads">
150
+ {% for thread in recent_threads %}
151
+ <div class="index__recentThreads__thread">
152
+
153
+ {% include 'punkweb_bb/components/profile_image.html' with user=thread.user %}
154
+
155
+ <div class="index__recentThreads__thread__info">
156
+ <a class="index__recentThreads__thread__title"
157
+ href="{{ thread.get_absolute_url }}"
158
+ title="{{ thread.title }}">{{ thread.title }}</a>
159
+ <div>
160
+ <time datetime="{{ thread.created_at|date:'c' }}">
161
+ {{ thread.created_at|date:'M j, Y' }} at
162
+ {{ thread.created_at|date:'g:i A' }}
163
+ </time>
164
+
165
+ <a href="{% url 'punkweb_bb:profile' thread.user.id %}">{{ thread.user|styled_username }}</a>
124
166
  </div>
125
167
  </div>
126
- {% endif %}
127
- {% else %}
128
- No threads
129
- {% endif %}
130
- </td>
131
- </tr>
132
- {% endfor %}
133
- </tbody>
134
- </table>
135
- </div>
136
- </div>
137
- {% endfor %}
138
- {% if perms.punkweb_bb.add_category %}
139
- <a
140
- class="pw-icon-button raised primary rounded"
141
- href="{% url 'punkweb_bb:category_create' %}"
142
- title="Create category"
143
- >
144
- <span class="material-symbols-outlined">add</span>
145
- </a>
146
- {% endif %}
147
- </div>
148
- <div class="index__sidebar">
149
- <div class="pw-card fluid mb-4">
150
- <div class="pw-card-header">Recent threads</div>
151
- <div class="pw-card-content">
152
- <div class="index__recentThreads">
153
- {% for thread in recent_threads %}
154
- <div class="index__recentThreads__thread">
155
- {% include 'punkweb_bb/components/profile_image.html' with user=thread.user %}
156
- <div class="index__recentThreads__thread__info">
157
- <a class="index__recentThreads__thread__title" href="{{thread.get_absolute_url}}"
158
- title="{{thread.title}}">
159
- {{thread.title}}
160
- </a>
161
- <div>
162
- <time datetime="{{thread.created_at|date:'c'}}">
163
- {{thread.created_at|date:'M j, Y'}} at
164
- {{thread.created_at|date:'g:i A'}}
165
- </time>
166
-
167
- <a href="{% url 'punkweb_bb:profile' thread.user.id %}">
168
- {{thread.user|styled_username}}
169
- </a>
170
168
  </div>
171
- </div>
169
+ {% endfor %}
172
170
  </div>
173
- {% endfor %}
174
171
  </div>
175
172
  </div>
176
- </div>
177
- <div class="pw-card fluid">
178
- <div class="pw-card-header">Statistics</div>
179
- <div class="pw-card-content">
180
- <div class="index__statistics">
181
- <div class="index__statistics__list">
182
- <div class="index__statistics__row">
183
- <div class="index__statistics__label">Total threads:</div>
184
- <div class="index__statistics__value">
185
- {{thread_count}}
173
+ <div class="pw-card fluid mb-4">
174
+ <div class="pw-card-header">Statistics</div>
175
+ <div class="pw-card-content">
176
+ <div class="index__statistics">
177
+ <div class="index__statistics__list">
178
+ <div class="index__statistics__row">
179
+ <div class="index__statistics__label">Total threads:</div>
180
+ <div class="index__statistics__value">{{ thread_count }}</div>
186
181
  </div>
187
- </div>
188
- <div class="index__statistics__row">
189
- <div class="index__statistics__label">Total posts:</div>
190
- <div class="index__statistics__value">{{post_count}}</div>
191
- </div>
192
- <div class="index__statistics__row">
193
- <div class="index__statistics__label">Total members:</div>
194
- <div class="index__statistics__value">{{users|length}}</div>
195
- </div>
196
- {% if newest_user %}
197
- <div class="index__statistics__row">
198
- <div class="index__statistics__label">Newest member:</div>
199
- <div class="index__statistics__value">
200
- <a href="{% url 'punkweb_bb:profile' newest_user.id %}">
201
- {{newest_user|styled_username}}
202
- </a>
182
+ <div class="index__statistics__row">
183
+ <div class="index__statistics__label">Total posts:</div>
184
+ <div class="index__statistics__value">{{ post_count }}</div>
185
+ </div>
186
+ <div class="index__statistics__row">
187
+ <div class="index__statistics__label">Total members:</div>
188
+ <div class="index__statistics__value">{{ users|length }}</div>
189
+ </div>
190
+ {% if newest_user %}
191
+ <div class="index__statistics__row">
192
+ <div class="index__statistics__label">Newest member:</div>
193
+ <div class="index__statistics__value">
194
+ <a href="{% url 'punkweb_bb:profile' newest_user.id %}">{{ newest_user|styled_username }}</a>
195
+ </div>
196
+ </div>
197
+ {% endif %}
198
+ <div class="index__statistics__row">
199
+ <div class="index__statistics__label">Users online:</div>
200
+ <div class="index__statistics__value">
201
+ {{ total_online }} ({{ members_online|length }} members, {{ staff_online|length }} staff, {{ guests_online }} guests)
202
+ </div>
203
203
  </div>
204
- </div>
205
- {% endif %}
206
- <div class="index__statistics__row">
207
- <div class="index__statistics__label">Users online:</div>
208
- <div class="index__statistics__value">{{total_online}} ({{members_online|length}} members, {{staff_online|length}} staff, {{guests_online}} guests)</div>
209
204
  </div>
210
205
  </div>
211
206
  </div>
212
207
  </div>
208
+ {% punkweb_bb "DISCORD_WIDGET_ENABLED" as discord_widget_enabled %}
209
+ {% punkweb_bb "DISCORD_SERVER_ID" as discord_server_id %}
210
+ {% if discord_widget_enabled %}
211
+ {% if discord_server_id %}
212
+ <iframe src="https://discord.com/widget?id={{ discord_server_id }}&theme={% punkweb_bb "DISCORD_WIDGET_THEME" %}"
213
+ width="100%"
214
+ height="384"
215
+ allowtransparency="true"
216
+ frameborder="0"
217
+ sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts">
218
+ </iframe>
219
+ {% else %}
220
+ <div class="pw-callout red mt-4">
221
+ <h4>Discord Widget Error</h4>
222
+ <p>
223
+ <code>DISCORD_SERVER_ID</code> not configured in settings module.
224
+ </p>
225
+ </div>
226
+ {% endif %}
227
+ {% endif %}
213
228
  </div>
214
- {% punkweb_bb "DISCORD_WIDGET_ENABLED" as discord_widget_enabled %}
215
- {% punkweb_bb "DISCORD_SERVER_ID" as discord_server_id %}
216
- {% if discord_widget_enabled %}
217
- {% if discord_server_id %}
218
- <iframe
219
- src="https://discord.com/widget?id={{ discord_server_id }}&theme={% punkweb_bb "DISCORD_WIDGET_THEME" %}"
220
- width="100%"
221
- height="384"
222
- allowtransparency="true"
223
- frameborder="0"
224
- sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts">
225
- </iframe>
226
- {% else %}
227
- <div class="pw-callout red mt-4">
228
- <h4>Discord Widget Error</h4>
229
- <p><code>DISCORD_SERVER_ID</code> not configured in settings module.</p>
230
- </div>
231
- {% endif %}
232
- {% endif %}
233
229
  </div>
234
230
  </div>
235
- </div>
236
-
237
- {% endblock %}
231
+ {% endblock %}
@@ -1,37 +1,31 @@
1
1
  {% extends 'punkweb_bb/base.html' %}
2
- {% load static %}
3
2
 
4
- {% block title_prefix %}Login | {% endblock%}
5
- {% block og_title_prefix %}Login | {% endblock %}
3
+ {% load static %}
6
4
 
5
+ {% block title_prefix %}Login |{% endblock %}
6
+ {% block og_title_prefix %}Login |{% endblock %}
7
7
  {% block extra_head %}
8
- <link rel="stylesheet" href="{% static 'punkweb_bb/css/login.css' %}" />
8
+ <link rel="stylesheet" href="{% static 'punkweb_bb/css/login.css' %}" />
9
9
  {% endblock %}
10
-
11
10
  {% block content %}
12
-
13
- <nav>
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 active">
19
- Login
20
- </li>
21
- </ul>
22
- </nav>
23
-
24
- <div class="pw-card centerPage">
25
- <div class="pw-card-header">Login</div>
26
- <div class="pw-card-content">
27
- <form class="pw-form" action="{% url 'punkweb_bb:login' %}" method="post">
28
- {% csrf_token %}
29
- {{ form }}
30
- <div class="pw-form-actions">
31
- <button class="pw-button fluid raised primary" type="submit">Login</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">Login</li>
17
+ </ul>
18
+ </nav>
19
+ <div class="pw-card centerPage">
20
+ <div class="pw-card-header">Login</div>
21
+ <div class="pw-card-content">
22
+ <form class="pw-form" action="{% url 'punkweb_bb:login' %}" method="post">
23
+ {% csrf_token %}
24
+ {{ form }}
25
+ <div class="pw-form-actions">
26
+ <button class="pw-button fluid raised primary" type="submit">Login</button>
27
+ </div>
28
+ </form>
29
+ </div>
34
30
  </div>
35
- </div>
36
-
37
- {% endblock %}
31
+ {% endblock %}
@@ -1,72 +1,68 @@
1
1
  {% extends "punkweb_bb/base.html" %}
2
- {% load static styled_username %}
3
2
 
4
- {% block title_prefix %}Members | {% endblock%}
5
- {% block og_title_prefix %}Members | {% endblock %}
3
+ {% load static styled_username %}
6
4
 
5
+ {% block title_prefix %}Members |{% endblock %}
6
+ {% block og_title_prefix %}Members |{% endblock %}
7
7
  {% block extra_head %}
8
- <link rel="stylesheet" href="{% static 'punkweb_bb/css/members.css' %}" />
8
+ <link rel="stylesheet" href="{% static 'punkweb_bb/css/members.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 active">Members</li>
17
+ </ul>
18
+ </nav>
19
+ <div class="members__header">
20
+ <h1>Members</h1>
21
+ <form class="pw-form inline"
22
+ action="{% url 'punkweb_bb:members' %}"
23
+ method="get">
24
+ {{ form }}
25
+ <div class="pw-form-actions">
26
+ <button class="pw-button raised" type="submit">Search</button>
27
+ </div>
28
+ </form>
29
+ </div>
30
+ {% if users|length > 0 %}
31
+ <div class="pw-card fluid mb-4">
32
+ <ul class="members__list">
33
+ {% for user in users %}
34
+ <li class="members__user">
35
+ <div class="members__user__avatar">
12
36
 
13
- <nav>
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 active">
19
- Members
20
- </li>
21
- </ul>
22
- </nav>
37
+ {% include 'punkweb_bb/components/profile_image.html' with user=user size="sm" %}
23
38
 
24
- <div class="members__header">
25
- <h1>Members</h1>
26
- <form class="pw-form inline" action="{% url 'punkweb_bb:members' %}" method="get">
27
- {{ form }}
28
- <div class="pw-form-actions">
29
- <button class="pw-button raised" type="submit">Search</button>
39
+ </div>
40
+ <div class="members__user__info">
41
+ <div class="members__user__username">
42
+ <a href="{% url 'punkweb_bb:profile' user.id %}">{{ user|styled_username }}</a>
43
+ {% if user.profile.is_online %}<div class="onlineIndicator"></div>{% endif %}
44
+ </div>
45
+ <div class="members__user__stats">
46
+ <div class="members__user__stat">
47
+ Posts:
48
+ <span class="members__user__stat__value">{{ user.profile.post_count }}</span>
49
+ </div>
50
+ <div class="members__user__stat">
51
+ Date Joined:
52
+ <span class="members__user__stat__value">
53
+ <time datetime="{{ user.date_joined|date:'c' }}">{{ user.date_joined | date:'m/d/Y' }}</time>
54
+ </span>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </li>
59
+ {% endfor %}
60
+ </ul>
30
61
  </div>
31
- </form>
32
- </div>
62
+ {% else %}
63
+ <h3>No results found.</h3>
64
+ {% endif %}
33
65
 
34
- {% if users|length > 0 %}
35
- <div class="pw-card fluid mb-4">
36
- <ul class="members__list">
37
- {% for user in users %}
38
- <li class="members__user">
39
- <div class="members__user__avatar">
40
- {% include 'punkweb_bb/components/profile_image.html' with user=user size="sm" %}
41
- </div>
42
- <div class="members__user__info">
43
- <div class="members__user__username">
44
- <a href="{% url 'punkweb_bb:profile' user.id %}">{{ user|styled_username }}</a>
45
- {% if user.profile.is_online %}
46
- <div class="onlineIndicator"></div>
47
- {% endif %}
48
- </div>
49
- <div class="members__user__stats">
50
- <div class="members__user__stat">
51
- Posts:
52
- <span class="members__user__stat__value">{{user.profile.post_count}}</span>
53
- </div>
54
- <div class="members__user__stat">
55
- Date Joined:
56
- <span class="members__user__stat__value">
57
- <time datetime="{{user.date_joined|date:'c'}}">{{user.date_joined | date:'m/d/Y'}}</time>
58
- </span>
59
- </div>
60
- </div>
61
- </div>
62
- </li>
63
- {% endfor %}
64
- </ul>
65
- </div>
66
- {% else %}
67
- <h3>No results found.</h3>
68
- {% endif %}
66
+ {% include 'punkweb_bb/components/pagination_controls.html' with paginator=users %}
69
67
 
70
- {% include 'punkweb_bb/components/pagination_controls.html' with paginator=users %}
71
-
72
- {% endblock %}
68
+ {% endblock %}
@@ -1,7 +1,7 @@
1
1
  {% extends 'punkweb_bb/base_delete_dialog.html' %}
2
2
 
3
3
  {% block title %}Delete Category{% endblock %}
4
-
5
4
  {% block object_type %}category{% endblock %}
6
-
7
- {% block delete_url %}{% url 'punkweb_bb:category_delete' category.slug %}{% endblock %}
5
+ {% block delete_url %}
6
+ {% url 'punkweb_bb:category_delete' category.slug %}
7
+ {% endblock %}