punkweb-bb 0.2.0__tar.gz → 0.2.2__tar.gz

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 (261) hide show
  1. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/PKG-INFO +3 -2
  2. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/README.md +2 -1
  3. punkweb_bb-0.2.2/punkweb_bb/__pycache__/admin.cpython-311.pyc +0 -0
  4. punkweb_bb-0.2.2/punkweb_bb/__pycache__/admin_forms.cpython-311.pyc +0 -0
  5. punkweb_bb-0.2.2/punkweb_bb/__pycache__/models.cpython-311.pyc +0 -0
  6. punkweb_bb-0.2.2/punkweb_bb/__pycache__/settings.cpython-311.pyc +0 -0
  7. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/urls.cpython-311.pyc +0 -0
  8. punkweb_bb-0.2.2/punkweb_bb/__pycache__/utils.cpython-311.pyc +0 -0
  9. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/views.cpython-311.pyc +0 -0
  10. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/admin.py +23 -1
  11. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/admin_forms.py +17 -1
  12. punkweb_bb-0.2.2/punkweb_bb/migrations/0003_alter_thread_options.py +23 -0
  13. punkweb_bb-0.2.2/punkweb_bb/migrations/0004_groupstyle.py +58 -0
  14. punkweb_bb-0.2.2/punkweb_bb/migrations/__pycache__/0003_alter_thread_options.cpython-311.pyc +0 -0
  15. punkweb_bb-0.2.2/punkweb_bb/migrations/__pycache__/0004_groupstyle.cpython-311.pyc +0 -0
  16. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/models.py +25 -0
  17. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/settings.py +1 -0
  18. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/index.css +2 -2
  19. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/punkweb.css +95 -4
  20. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/subcategory.css +1 -0
  21. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/thread.css +3 -3
  22. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/editor/bbcode-editor.js +1 -1
  23. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/base.html +6 -0
  24. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/index.html +40 -25
  25. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/login.html +1 -0
  26. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/members.html +3 -2
  27. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/profile.html +3 -2
  28. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/settings.html +1 -0
  29. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/shoutbox/shout_list.html +9 -5
  30. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/signup.html +1 -0
  31. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/subcategory.html +21 -11
  32. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/thread.html +80 -24
  33. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/thread_create.html +1 -0
  34. punkweb_bb-0.2.2/punkweb_bb/templatetags/__pycache__/styled_group_name.cpython-311.pyc +0 -0
  35. punkweb_bb-0.2.2/punkweb_bb/templatetags/__pycache__/styled_username.cpython-311.pyc +0 -0
  36. punkweb_bb-0.2.2/punkweb_bb/templatetags/__pycache__/username.cpython-311.pyc +0 -0
  37. punkweb_bb-0.2.2/punkweb_bb/templatetags/styled_group_name.py +11 -0
  38. punkweb_bb-0.2.2/punkweb_bb/templatetags/styled_username.py +9 -0
  39. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/urls.py +2 -0
  40. punkweb_bb-0.2.2/punkweb_bb/utils.py +47 -0
  41. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/views.py +26 -0
  42. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb.egg-info/PKG-INFO +3 -2
  43. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb.egg-info/SOURCES.txt +10 -1
  44. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/setup.py +1 -1
  45. punkweb_bb-0.2.0/punkweb_bb/__pycache__/admin.cpython-311.pyc +0 -0
  46. punkweb_bb-0.2.0/punkweb_bb/__pycache__/admin_forms.cpython-311.pyc +0 -0
  47. punkweb_bb-0.2.0/punkweb_bb/__pycache__/models.cpython-311.pyc +0 -0
  48. punkweb_bb-0.2.0/punkweb_bb/__pycache__/settings.cpython-311.pyc +0 -0
  49. punkweb_bb-0.2.0/punkweb_bb/__pycache__/utils.cpython-311.pyc +0 -0
  50. punkweb_bb-0.2.0/punkweb_bb/utils.py +0 -17
  51. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/LICENSE +0 -0
  52. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/MANIFEST.in +0 -0
  53. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__init__.py +0 -0
  54. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/__init__.cpython-311.pyc +0 -0
  55. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/apps.cpython-311.pyc +0 -0
  56. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/bbcode_tags.cpython-311.pyc +0 -0
  57. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/context_processors.cpython-311.pyc +0 -0
  58. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/forms.cpython-311.pyc +0 -0
  59. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/guests.cpython-311.pyc +0 -0
  60. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/middleware.cpython-311.pyc +0 -0
  61. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/mixins.cpython-311.pyc +0 -0
  62. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/pagination.cpython-311.pyc +0 -0
  63. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/parsers.cpython-311.pyc +0 -0
  64. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/response.cpython-311.pyc +0 -0
  65. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/signals.cpython-311.pyc +0 -0
  66. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/tests.cpython-311.pyc +0 -0
  67. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/__pycache__/widgets.cpython-311.pyc +0 -0
  68. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/apps.py +0 -0
  69. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/bbcode_tags.py +0 -0
  70. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/context_processors.py +0 -0
  71. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/forms.py +0 -0
  72. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/guests.py +0 -0
  73. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/middleware.py +0 -0
  74. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/migrations/0001_initial.py +0 -0
  75. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/migrations/0002_thread_view_count.py +0 -0
  76. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/migrations/__init__.py +0 -0
  77. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/migrations/__pycache__/0001_initial.cpython-311.pyc +0 -0
  78. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/migrations/__pycache__/0002_thread_view_count.cpython-311.pyc +0 -0
  79. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/migrations/__pycache__/__init__.cpython-311.pyc +0 -0
  80. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/mixins.py +0 -0
  81. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/pagination.py +0 -0
  82. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/parsers.py +0 -0
  83. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/response.py +0 -0
  84. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/signals.py +0 -0
  85. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/category-form.css +0 -0
  86. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/defaults.css +0 -0
  87. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/login.css +0 -0
  88. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/members.css +0 -0
  89. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/post-form.css +0 -0
  90. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/profile.css +0 -0
  91. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/punkweb-modal.css +0 -0
  92. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/settings.css +0 -0
  93. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/shoutbox.css +0 -0
  94. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/subcategory-form.css +0 -0
  95. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/thread-form.css +0 -0
  96. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/typography.css +0 -0
  97. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/css/variables.css +0 -0
  98. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/editor/bbcode-editor-content.css +0 -0
  99. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/editor/bbcode-editor-tags.js +0 -0
  100. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/editor/bbcode-editor.css +0 -0
  101. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/favicon.ico +0 -0
  102. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/img/default-profile-image.png +0 -0
  103. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/js/punkweb-modal.js +0 -0
  104. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/js/shoutbox.js +0 -0
  105. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/htmx-1.9.4.min.js +0 -0
  106. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/jquery-3.7.0.min.js +0 -0
  107. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/open-color.css +0 -0
  108. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/prism.css +0 -0
  109. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/prism.js +0 -0
  110. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/README.md +0 -0
  111. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/formats/bbcode.js +0 -0
  112. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/formats/xhtml.js +0 -0
  113. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/icons/material.js +0 -0
  114. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/icons/monocons.js +0 -0
  115. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/jquery.sceditor.bbcode.js +0 -0
  116. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/jquery.sceditor.js +0 -0
  117. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/jquery.sceditor.xhtml.js +0 -0
  118. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/alternative-lists.js +0 -0
  119. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/autosave.js +0 -0
  120. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/autoyoutube.js +0 -0
  121. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/dragdrop.js +0 -0
  122. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/format.js +0 -0
  123. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/plaintext.js +0 -0
  124. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/undo.js +0 -0
  125. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/v1compat.js +0 -0
  126. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/sceditor.js +0 -0
  127. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/content/default.css +0 -0
  128. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/default.css +0 -0
  129. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/defaultdark.css +0 -0
  130. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/famfamfam.png +0 -0
  131. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/modern.css +0 -0
  132. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/office-toolbar.css +0 -0
  133. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/office.css +0 -0
  134. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/square.css +0 -0
  135. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/alien.png +0 -0
  136. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/angel.png +0 -0
  137. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/angry.png +0 -0
  138. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/blink.png +0 -0
  139. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/blush.png +0 -0
  140. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/cheerful.png +0 -0
  141. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/cool.png +0 -0
  142. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/credits.txt +0 -0
  143. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/cwy.png +0 -0
  144. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/devil.png +0 -0
  145. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/dizzy.png +0 -0
  146. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/ermm.png +0 -0
  147. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/face.png +0 -0
  148. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/getlost.png +0 -0
  149. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/grin.png +0 -0
  150. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/happy.png +0 -0
  151. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/heart.png +0 -0
  152. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/kissing.png +0 -0
  153. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/laughing.png +0 -0
  154. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/ninja.png +0 -0
  155. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/pinch.png +0 -0
  156. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/pouty.png +0 -0
  157. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/sad.png +0 -0
  158. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/shocked.png +0 -0
  159. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/sick.png +0 -0
  160. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/sideways.png +0 -0
  161. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/silly.png +0 -0
  162. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/sleeping.png +0 -0
  163. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/smile.png +0 -0
  164. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/tongue.png +0 -0
  165. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/unsure.png +0 -0
  166. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/w00t.png +0 -0
  167. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/wassat.png +0 -0
  168. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/whistling.png +0 -0
  169. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/wink.png +0 -0
  170. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/wub.png +0 -0
  171. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/example.html +0 -0
  172. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/ar.js +0 -0
  173. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/ca.js +0 -0
  174. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/cn.js +0 -0
  175. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/cs.js +0 -0
  176. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/de.js +0 -0
  177. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/el.js +0 -0
  178. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/en-US.js +0 -0
  179. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/en.js +0 -0
  180. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/es.js +0 -0
  181. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/et.js +0 -0
  182. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/fa.js +0 -0
  183. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/fi.js +0 -0
  184. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/fr.js +0 -0
  185. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/gl.js +0 -0
  186. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/hu.js +0 -0
  187. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/id.js +0 -0
  188. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/it.js +0 -0
  189. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/ja.js +0 -0
  190. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/lt.js +0 -0
  191. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/nb.js +0 -0
  192. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/nl.js +0 -0
  193. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/pl.js +0 -0
  194. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/pt-BR.js +0 -0
  195. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/pt.js +0 -0
  196. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/ru.js +0 -0
  197. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/sk.js +0 -0
  198. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/sv.js +0 -0
  199. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/template.js +0 -0
  200. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/tr.js +0 -0
  201. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/tw.js +0 -0
  202. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/uk.js +0 -0
  203. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/vi.js +0 -0
  204. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/formats/bbcode.js +0 -0
  205. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/formats/xhtml.js +0 -0
  206. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/icons/material.js +0 -0
  207. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/icons/monocons.js +0 -0
  208. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/jquery.sceditor.bbcode.min.js +0 -0
  209. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/jquery.sceditor.min.js +0 -0
  210. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/jquery.sceditor.xhtml.min.js +0 -0
  211. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/alternative-lists.js +0 -0
  212. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/autosave.js +0 -0
  213. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/autoyoutube.js +0 -0
  214. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/dragdrop.js +0 -0
  215. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/format.js +0 -0
  216. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/plaintext.js +0 -0
  217. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/undo.js +0 -0
  218. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/v1compat.js +0 -0
  219. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/sceditor.min.js +0 -0
  220. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/content/default.min.css +0 -0
  221. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/default.min.css +0 -0
  222. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/defaultdark.min.css +0 -0
  223. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/famfamfam.png +0 -0
  224. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/modern.min.css +0 -0
  225. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/office-toolbar.min.css +0 -0
  226. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/office.min.css +0 -0
  227. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/square.min.css +0 -0
  228. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/base_modal.html +0 -0
  229. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/bbcode.html +0 -0
  230. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/category_create.html +0 -0
  231. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/category_update.html +0 -0
  232. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/partials/category_delete.html +0 -0
  233. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/partials/post_delete.html +0 -0
  234. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/partials/post_update.html +0 -0
  235. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/partials/shout_delete.html +0 -0
  236. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/partials/subcategory_delete.html +0 -0
  237. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/partials/thread_delete.html +0 -0
  238. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/shoutbox/shoutbox.html +0 -0
  239. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/subcategory_create.html +0 -0
  240. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/subcategory_update.html +0 -0
  241. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templates/punkweb_bb/thread_update.html +0 -0
  242. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/__init__.py +0 -0
  243. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/__pycache__/__init__.cpython-311.pyc +0 -0
  244. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/__pycache__/can_delete.cpython-311.pyc +0 -0
  245. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/__pycache__/can_edit.cpython-311.pyc +0 -0
  246. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/__pycache__/can_post.cpython-311.pyc +0 -0
  247. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/__pycache__/humanize_count.cpython-311.pyc +0 -0
  248. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/__pycache__/humanize_int.cpython-311.pyc +0 -0
  249. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/__pycache__/shoutbox_bbcode.cpython-311.pyc +0 -0
  250. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/can_delete.py +0 -0
  251. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/can_edit.py +0 -0
  252. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/can_post.py +0 -0
  253. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/humanize_int.py +0 -0
  254. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/templatetags/shoutbox_bbcode.py +0 -0
  255. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/tests.py +0 -0
  256. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb/widgets.py +0 -0
  257. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb.egg-info/dependency_links.txt +0 -0
  258. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb.egg-info/not-zip-safe +0 -0
  259. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb.egg-info/requires.txt +0 -0
  260. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/punkweb_bb.egg-info/top_level.txt +0 -0
  261. {punkweb_bb-0.2.0 → punkweb_bb-0.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: punkweb_bb
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Django application that provides a simple and modern forum board software for your Django website.
5
5
  Home-page: https://github.com/Punkweb/PunkwebBB
6
6
  Author: Punkweb
@@ -35,7 +35,7 @@ Check out [punkweb.net](https://punkweb.net/board/) for documentation, support a
35
35
 
36
36
  ## Requirements
37
37
 
38
- - Python 3.11+
38
+ - Python 3.9+
39
39
  - Django 4.2+
40
40
  - django-precise-bbcode 1.2+
41
41
  - Pillow
@@ -111,6 +111,7 @@ PUNKWEB_BB = {
111
111
  "SITE_NAME": "PUNKWEB",
112
112
  "SITE_TITLE": "PunkwebBB",
113
113
  "FAVICON": "punkweb_bb/favicon.ico",
114
+ "OG_IMAGE": None, # Used for Open Graph meta tags, must be a full URL!
114
115
  "SHOUTBOX_ENABLED": True,
115
116
  "DISCORD_WIDGET_ENABLED": False,
116
117
  "DISCORD_WIDGET_THEME": "dark",
@@ -17,7 +17,7 @@ Check out [punkweb.net](https://punkweb.net/board/) for documentation, support a
17
17
 
18
18
  ## Requirements
19
19
 
20
- - Python 3.11+
20
+ - Python 3.9+
21
21
  - Django 4.2+
22
22
  - django-precise-bbcode 1.2+
23
23
  - Pillow
@@ -93,6 +93,7 @@ PUNKWEB_BB = {
93
93
  "SITE_NAME": "PUNKWEB",
94
94
  "SITE_TITLE": "PunkwebBB",
95
95
  "FAVICON": "punkweb_bb/favicon.ico",
96
+ "OG_IMAGE": None, # Used for Open Graph meta tags, must be a full URL!
96
97
  "SHOUTBOX_ENABLED": True,
97
98
  "DISCORD_WIDGET_ENABLED": False,
98
99
  "DISCORD_WIDGET_THEME": "dark",
@@ -4,11 +4,20 @@ from django.utils.safestring import mark_safe
4
4
  from punkweb_bb.admin_forms import (
5
5
  BoardProfileAdminModelForm,
6
6
  CategoryAdminModelForm,
7
+ GroupStyleAdminModelForm,
7
8
  PostAdminModelForm,
8
9
  SubcategoryAdminModelForm,
9
10
  ThreadAdminModelForm,
10
11
  )
11
- from punkweb_bb.models import BoardProfile, Category, Post, Shout, Subcategory, Thread
12
+ from punkweb_bb.models import (
13
+ BoardProfile,
14
+ Category,
15
+ GroupStyle,
16
+ Post,
17
+ Shout,
18
+ Subcategory,
19
+ Thread,
20
+ )
12
21
 
13
22
 
14
23
  @admin.register(BoardProfile)
@@ -114,3 +123,16 @@ class ShoutModelAdmin(admin.ModelAdmin):
114
123
  "user__email",
115
124
  "content",
116
125
  )
126
+
127
+
128
+ @admin.register(GroupStyle)
129
+ class GroupStyleModelAdmin(admin.ModelAdmin):
130
+ form = GroupStyleAdminModelForm
131
+ list_display = (
132
+ "group",
133
+ "priority",
134
+ )
135
+ search_fields = (
136
+ "group__name",
137
+ "username_style",
138
+ )
@@ -1,6 +1,13 @@
1
1
  from django import forms
2
2
 
3
- from punkweb_bb.models import BoardProfile, Category, Post, Subcategory, Thread
3
+ from punkweb_bb.models import (
4
+ BoardProfile,
5
+ Category,
6
+ GroupStyle,
7
+ Post,
8
+ Subcategory,
9
+ Thread,
10
+ )
4
11
  from punkweb_bb.widgets import BBCodeEditorWidget
5
12
 
6
13
 
@@ -47,3 +54,12 @@ class PostAdminModelForm(forms.ModelForm):
47
54
  widgets = {
48
55
  "content": BBCodeEditorWidget(),
49
56
  }
57
+
58
+
59
+ class GroupStyleAdminModelForm(forms.ModelForm):
60
+ class Meta:
61
+ model = GroupStyle
62
+ fields = "__all__"
63
+ widgets = {
64
+ "username_style": BBCodeEditorWidget(),
65
+ }
@@ -0,0 +1,23 @@
1
+ # Generated by Django 4.2.11 on 2024-05-29 01:03
2
+
3
+ from django.db import migrations
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("punkweb_bb", "0002_thread_view_count"),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterModelOptions(
14
+ name="thread",
15
+ options={
16
+ "ordering": ("subcategory", "-is_pinned", "-last_post_created_at"),
17
+ "permissions": (
18
+ ("pin_thread", "Can pin thread"),
19
+ ("close_thread", "Can close thread"),
20
+ ),
21
+ },
22
+ ),
23
+ ]
@@ -0,0 +1,58 @@
1
+ # Generated by Django 4.2.11 on 2024-05-29 19:48
2
+
3
+ from django.db import migrations, models
4
+ import django.db.models.deletion
5
+ import precise_bbcode.fields
6
+ import uuid
7
+
8
+
9
+ class Migration(migrations.Migration):
10
+
11
+ dependencies = [
12
+ ("auth", "0012_alter_user_first_name_max_length"),
13
+ ("punkweb_bb", "0003_alter_thread_options"),
14
+ ]
15
+
16
+ operations = [
17
+ migrations.CreateModel(
18
+ name="GroupStyle",
19
+ fields=[
20
+ (
21
+ "id",
22
+ models.UUIDField(
23
+ default=uuid.uuid4,
24
+ editable=False,
25
+ primary_key=True,
26
+ serialize=False,
27
+ ),
28
+ ),
29
+ ("created_at", models.DateTimeField(auto_now_add=True)),
30
+ ("updated_at", models.DateTimeField(auto_now=True)),
31
+ (
32
+ "priority",
33
+ models.PositiveIntegerField(
34
+ default=0, help_text="Highest priority is displayed"
35
+ ),
36
+ ),
37
+ (
38
+ "_username_style_rendered",
39
+ models.TextField(blank=True, editable=False, null=True),
40
+ ),
41
+ (
42
+ "username_style",
43
+ precise_bbcode.fields.BBCodeTextField(no_rendered_field=True),
44
+ ),
45
+ (
46
+ "group",
47
+ models.OneToOneField(
48
+ on_delete=django.db.models.deletion.CASCADE,
49
+ related_name="style",
50
+ to="auth.group",
51
+ ),
52
+ ),
53
+ ],
54
+ options={
55
+ "ordering": ("-priority",),
56
+ },
57
+ ),
58
+ ]
@@ -3,6 +3,7 @@ import math
3
3
  import os
4
4
 
5
5
  from django.contrib.auth import get_user_model
6
+ from django.contrib.auth.models import Group
6
7
  from django.core.cache import cache
7
8
  from django.db import models
8
9
  from django.forms import ValidationError
@@ -11,6 +12,7 @@ from django.utils import timezone
11
12
  from precise_bbcode.fields import BBCodeTextField
12
13
 
13
14
  from punkweb_bb.mixins import TimestampMixin, UUIDPrimaryKeyMixin
15
+ from punkweb_bb.utils import get_styled_username
14
16
 
15
17
  User = get_user_model()
16
18
 
@@ -28,6 +30,10 @@ class BoardProfile(UUIDPrimaryKeyMixin, TimestampMixin):
28
30
  class Meta:
29
31
  ordering = ("user__username",)
30
32
 
33
+ @property
34
+ def styled_username(self):
35
+ return get_styled_username(self.user)
36
+
31
37
  @property
32
38
  def is_online(self):
33
39
  last_seen = cache.get(f"profile_online_{self.id}")
@@ -119,6 +125,10 @@ class Thread(UUIDPrimaryKeyMixin, TimestampMixin):
119
125
  "-is_pinned",
120
126
  "-last_post_created_at",
121
127
  )
128
+ permissions = (
129
+ ("pin_thread", "Can pin thread"),
130
+ ("close_thread", "Can close thread"),
131
+ )
122
132
 
123
133
  def __str__(self):
124
134
  return f"{self.title}"
@@ -201,3 +211,18 @@ class Shout(UUIDPrimaryKeyMixin, TimestampMixin):
201
211
 
202
212
  def can_delete(self, user):
203
213
  return user == self.user or user.has_perm("punkweb_bb.delete_shout")
214
+
215
+
216
+ class GroupStyle(UUIDPrimaryKeyMixin, TimestampMixin):
217
+ group = models.OneToOneField(Group, related_name="style", on_delete=models.CASCADE)
218
+ priority = models.PositiveIntegerField(
219
+ default=0,
220
+ help_text="Highest priority is displayed",
221
+ )
222
+ username_style = BBCodeTextField()
223
+
224
+ class Meta:
225
+ ordering = ("-priority",)
226
+
227
+ def __str__(self):
228
+ return f"{self.group} > {self.priority}"
@@ -5,6 +5,7 @@ PUNKWEB_BB = getattr(settings, "PUNKWEB_BB", {})
5
5
  SITE_NAME = PUNKWEB_BB.get("SITE_NAME", "PUNKWEB")
6
6
  SITE_TITLE = PUNKWEB_BB.get("SITE_TITLE", "PunkwebBB")
7
7
  FAVICON = PUNKWEB_BB.get("FAVICON", "punkweb_bb/favicon.ico")
8
+ OG_IMAGE = PUNKWEB_BB.get("OG_IMAGE", None)
8
9
  SHOUTBOX_ENABLED = PUNKWEB_BB.get("SHOUTBOX_ENABLED", True)
9
10
  DISCORD_WIDGET_ENABLED = PUNKWEB_BB.get("DISCORD_WIDGET_ENABLED", False)
10
11
  DISCORD_WIDGET_THEME = PUNKWEB_BB.get("DISCORD_WIDGET_THEME", "dark")
@@ -7,10 +7,10 @@
7
7
  flex: 1;
8
8
  }
9
9
 
10
- .index__category__actions {
10
+ .index__category__title {
11
11
  align-items: center;
12
12
  display: flex;
13
- gap: 0.25rem;
13
+ gap: 0.5rem;
14
14
  }
15
15
 
16
16
  .index__sidebar {
@@ -390,12 +390,13 @@ blockquote cite {
390
390
  /** Icon Button **/
391
391
 
392
392
  .pw-icon-button {
393
+ align-items: center;
393
394
  border-radius: 0.25rem;
394
395
  cursor: pointer;
395
- display: inline-block;
396
+ display: flex;
397
+ justify-content: center;
396
398
  font-weight: 500;
397
399
  transition: all 0.15s ease;
398
- text-align: center;
399
400
 
400
401
  height: 2rem;
401
402
  line-height: 2rem;
@@ -463,7 +464,7 @@ blockquote cite {
463
464
  width: 3rem;
464
465
  }
465
466
 
466
- .pw-icon-button.sl .material-symbols-outlined {
467
+ .pw-icon-button.xl .material-symbols-outlined {
467
468
  font-size: 1.5rem;
468
469
  }
469
470
 
@@ -492,6 +493,30 @@ blockquote cite {
492
493
  background-color: var(--oc-gray-1);
493
494
  }
494
495
 
496
+ .pw-icon-button.default.primary {
497
+ color: var(--primary-9);
498
+ }
499
+
500
+ .pw-icon-button.default.primary:hover {
501
+ background-color: var(--primary-0);
502
+ }
503
+
504
+ .pw-icon-button.default.primary:active {
505
+ background-color: var(--primary-1);
506
+ }
507
+
508
+ .pw-icon-button.default.danger {
509
+ color: var(--oc-red-9);
510
+ }
511
+
512
+ .pw-icon-button.default.danger:hover {
513
+ background-color: var(--oc-red-0);
514
+ }
515
+
516
+ .pw-icon-button.default.danger:active {
517
+ background-color: var(--oc-red-1);
518
+ }
519
+
495
520
  /* Outlined */
496
521
 
497
522
  .pw-icon-button.outlined {
@@ -507,7 +532,33 @@ blockquote cite {
507
532
  background-color: var(--oc-gray-1);
508
533
  }
509
534
 
510
- /* Outlined */
535
+ .pw-icon-button.outlined.primary {
536
+ border-color: var(--primary-9);
537
+ color: var(--primary-9);
538
+ }
539
+
540
+ .pw-icon-button.outlined.primary:hover {
541
+ background-color: var(--primary-0);
542
+ }
543
+
544
+ .pw-icon-button.outlined.primary:active {
545
+ background-color: var(--primary-1);
546
+ }
547
+
548
+ .pw-icon-button.outlined.danger {
549
+ border-color: var(--oc-red-9);
550
+ color: var(--oc-red-9);
551
+ }
552
+
553
+ .pw-icon-button.outlined.danger:hover {
554
+ background-color: var(--oc-red-0);
555
+ }
556
+
557
+ .pw-icon-button.outlined.danger:active {
558
+ background-color: var(--oc-red-1);
559
+ }
560
+
561
+ /* Ghost */
511
562
 
512
563
  .pw-icon-button.ghost {
513
564
  border: 1px solid var(--oc-gray-9);
@@ -525,6 +576,38 @@ blockquote cite {
525
576
  color: white;
526
577
  }
527
578
 
579
+ .pw-icon-button.ghost.primary {
580
+ border: 1px solid var(--primary-9);
581
+ color: var(--primary-9);
582
+ }
583
+
584
+ .pw-icon-button.ghost.primary:not(:disabled):hover {
585
+ background-color: var(--primary-9);
586
+ color: white;
587
+ }
588
+
589
+ .pw-icon-button.ghost.primary:not(:disabled):active {
590
+ background-color: var(--primary-9);
591
+ box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.25);
592
+ color: white;
593
+ }
594
+
595
+ .pw-icon-button.ghost.danger {
596
+ border: 1px solid var(--oc-red-9);
597
+ color: var(--oc-red-9);
598
+ }
599
+
600
+ .pw-icon-button.ghost.danger:not(:disabled):hover {
601
+ background-color: var(--oc-red-9);
602
+ color: white;
603
+ }
604
+
605
+ .pw-icon-button.ghost.danger:not(:disabled):active {
606
+ background-color: var(--oc-red-9);
607
+ box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.25);
608
+ color: white;
609
+ }
610
+
528
611
  /* Raised */
529
612
 
530
613
  .pw-icon-button.raised {
@@ -533,6 +616,14 @@ blockquote cite {
533
616
  color: white;
534
617
  }
535
618
 
619
+ .pw-icon-button.raised.primary {
620
+ background-color: var(--primary-9);
621
+ }
622
+
623
+ .pw-icon-button.raised.danger {
624
+ background-color: var(--oc-red-9);
625
+ }
626
+
536
627
  .pw-icon-button.raised:not(:disabled):hover {
537
628
  box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.25);
538
629
  }
@@ -30,6 +30,7 @@
30
30
  .thread__latestPost {
31
31
  align-items: center;
32
32
  display: flex;
33
+ justify-content: end;
33
34
  gap: 0.75rem;
34
35
  }
35
36
 
@@ -63,8 +63,8 @@
63
63
  }
64
64
 
65
65
  .thread__user__group {
66
- background-color: var(--primary-8);
67
- border: 1px solid var(--primary-9);
66
+ background-color: var(--oc-gray-0);
67
+ border: 1px solid var(--border);
68
68
  border-radius: 0.25rem;
69
69
  color: var(--text-on-primary);
70
70
  display: flex;
@@ -94,7 +94,7 @@
94
94
  align-items: center;
95
95
  display: flex;
96
96
  justify-content: flex-end;
97
- gap: 1rem;
97
+ gap: 0.25rem;
98
98
  padding: 1rem;
99
99
  }
100
100
 
@@ -2,7 +2,7 @@ $(function () {
2
2
  $(document).ready(function () {
3
3
  $(".bbcode-editor").sceditor({
4
4
  emoticonsCompat: true,
5
- emoticonsEnabled: true,
5
+ emoticonsEnabled: false,
6
6
  emoticonsRoot: "/media/precise_bbcode/smilies/",
7
7
  emoticons: {
8
8
  dropdown: {},
@@ -6,6 +6,12 @@
6
6
  <meta charset="UTF-8" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
8
  <title>{% block title_prefix %}{% endblock %}{{ punkweb_bb.settings.SITE_TITLE|default:"PunkwebBB" }}</title>
9
+ <meta property="og:title" content="{% block og_title_prefix %}{% endblock %}{{ punkweb_bb.settings.SITE_TITLE|default:"PunkwebBB" }}" />
10
+ <meta property="og:type" content="website" />
11
+ <meta property="og:url" content="{{ request.build_absolute_uri }}" />
12
+ {% if punkweb_bb.settings.OG_IMAGE %}
13
+ <meta property="og:image" content="{{ punkweb_bb.settings.OG_IMAGE }}" />
14
+ {% endif %}
9
15
  <link rel="icon" href="{% static punkweb_bb.settings.FAVICON %}" />
10
16
  <link rel="stylesheet" href="{% static 'punkweb_bb/vendor/open-color.css' %}" />
11
17
  <link rel="stylesheet" href="{% static 'punkweb_bb/vendor/prism.css' %}" />
@@ -1,6 +1,6 @@
1
1
  {% extends 'punkweb_bb/base.html' %}
2
2
 
3
- {% load static %}
3
+ {% load static bbcode_tags styled_username %}
4
4
 
5
5
  {% block extra_head %}
6
6
  <link rel="stylesheet" href="{% static 'punkweb_bb/css/index.css' %}" />
@@ -31,36 +31,45 @@
31
31
  </colgroup>
32
32
  <thead>
33
33
  <tr>
34
- <th><a href="{{category.get_absolute_url}}">{{category.name}}</a></th>
35
- <th>Threads</th>
36
- <th>Posts</th>
37
- <th></th>
38
- </tr>
39
- </thead>
40
- <tbody>
41
- {% if perms.punkweb_bb.add_subcategory or perms.punkweb_bb.change_category or perms.punkweb_bb.delete_category %}
42
- <tr>
43
- <td colspan="4">
44
- <div class="index__category__actions">
34
+ <th>
35
+ <div class="index__category__title">
36
+ <a href="{{category.get_absolute_url}}">{{category.name}}</a>
45
37
  {% if perms.punkweb_bb.add_subcategory %}
46
- <a class="pw-button ghost xs" href="{% url 'punkweb_bb:subcategory_create' category.slug %}">
47
- Create Subcategory
38
+ <a
39
+ class="pw-icon-button default rounded sm"
40
+ href="{% url 'punkweb_bb:subcategory_create' category.slug %}"
41
+ title="Create subcategory"
42
+ >
43
+ <span class="material-symbols-outlined">add</span>
48
44
  </a>
49
45
  {% endif %}
50
46
  {% if perms.punkweb_bb.change_category %}
51
- <a class="pw-button ghost xs" href="{% url 'punkweb_bb:category_update' category.slug %}">
52
- Edit
47
+ <a
48
+ class="pw-icon-button default rounded sm"
49
+ href="{% url 'punkweb_bb:category_update' category.slug %}"
50
+ title="Edit category"
51
+ >
52
+ <span class="material-symbols-outlined">edit</span>
53
53
  </a>
54
54
  {% endif %}
55
55
  {% if perms.punkweb_bb.delete_category %}
56
- <a class="pw-button ghost danger xs" hx-get="{% url 'punkweb_bb:category_delete' category.slug %}" hx-target="#modal-portal">
57
- Delete
56
+ <a
57
+ class="pw-icon-button default danger rounded sm"
58
+ title="Delete category"
59
+ hx-get="{% url 'punkweb_bb:category_delete' category.slug %}"
60
+ hx-target="#modal-portal"
61
+ >
62
+ <span class="material-symbols-outlined">delete</span>
58
63
  </a>
59
64
  {% endif %}
60
65
  </div>
61
- </td>
66
+ </th>
67
+ <th>Threads</th>
68
+ <th>Posts</th>
69
+ <th></th>
62
70
  </tr>
63
- {% endif %}
71
+ </thead>
72
+ <tbody>
64
73
  {% for subcategory in category.subcategories.all %}
65
74
  <tr>
66
75
  <td>
@@ -92,7 +101,7 @@
92
101
  </time>
93
102
 
94
103
  <a href="{% url 'punkweb_bb:profile' subcategory.latest_thread.latest_post.user.id %}">
95
- {{subcategory.latest_thread.latest_post.user.username}}
104
+ {{subcategory.latest_thread.latest_post.user|styled_username}}
96
105
  </a>
97
106
  </div>
98
107
  </div>
@@ -116,7 +125,7 @@
116
125
  </time>
117
126
 
118
127
  <a href="{% url 'punkweb_bb:profile' subcategory.latest_thread.user.id %}">
119
- {{subcategory.latest_thread.user.username}}
128
+ {{subcategory.latest_thread.user|styled_username}}
120
129
  </a>
121
130
  </div>
122
131
  </div>
@@ -134,7 +143,13 @@
134
143
  </div>
135
144
  {% endfor %}
136
145
  {% if perms.punkweb_bb.add_category %}
137
- <a class="pw-button ghost xs" href="{% url 'punkweb_bb:category_create' %}">Create Category</a>
146
+ <a
147
+ class="pw-icon-button raised primary rounded"
148
+ href="{% url 'punkweb_bb:category_create' %}"
149
+ title="Create category"
150
+ >
151
+ <span class="material-symbols-outlined">add</span>
152
+ </a>
138
153
  {% endif %}
139
154
  </div>
140
155
  <div class="index__sidebar">
@@ -160,7 +175,7 @@
160
175
  </time>
161
176
 
162
177
  <a href="{% url 'punkweb_bb:profile' thread.user.id %}">
163
- {{thread.user.username}}
178
+ {{thread.user|styled_username}}
164
179
  </a>
165
180
  </div>
166
181
  </div>
@@ -191,7 +206,7 @@
191
206
  <div class="index__statistics__label">Newest member:</div>
192
207
  <div class="index__statistics__value">
193
208
  <a href="{% url 'punkweb_bb:profile' newest_user.id %}">
194
- {{newest_user.username}}
209
+ {{newest_user|styled_username}}
195
210
  </a>
196
211
  </div>
197
212
  </div>
@@ -2,6 +2,7 @@
2
2
  {% load static %}
3
3
 
4
4
  {% block title_prefix %}Login | {% endblock%}
5
+ {% block og_title_prefix %}Login | {% endblock %}
5
6
 
6
7
  {% block extra_head %}
7
8
  <link rel="stylesheet" href="{% static 'punkweb_bb/css/login.css' %}" />
@@ -1,7 +1,8 @@
1
1
  {% extends "punkweb_bb/base.html" %}
2
- {% load static %}
2
+ {% load static styled_username %}
3
3
 
4
4
  {% block title_prefix %}Members | {% endblock%}
5
+ {% block og_title_prefix %}Members | {% endblock %}
5
6
 
6
7
  {% block extra_head %}
7
8
  <link rel="stylesheet" href="{% static 'punkweb_bb/css/members.css' %}" />
@@ -32,7 +33,7 @@
32
33
  {% endif %}
33
34
  </div>
34
35
  <div class="members__user__info">
35
- <div class="members__user__username"><a href="{% url 'punkweb_bb:profile' user.id %}">{{ user.username }}</a></div>
36
+ <div class="members__user__username"><a href="{% url 'punkweb_bb:profile' user.id %}">{{ user|styled_username }}</a></div>
36
37
  <div class="members__user__stats">
37
38
  <div class="members__user__stat">
38
39
  Posts:
@@ -1,7 +1,8 @@
1
1
  {% extends 'punkweb_bb/base.html' %}
2
- {% load static %}
2
+ {% load static styled_username %}
3
3
 
4
4
  {% block title_prefix %}{{ user.username }} | {% endblock%}
5
+ {% block og_title_prefix %}{{ user.username }} | {% endblock %}
5
6
 
6
7
  {% block extra_head %}
7
8
  <link rel="stylesheet" href="{% static 'punkweb_bb/css/profile.css' %}">
@@ -34,7 +35,7 @@
34
35
  {% endif %}
35
36
  </div>
36
37
  <div class="profile__info__details">
37
- <div class="profile__info__username">{{user.username}}</div>
38
+ <div class="profile__info__username">{{user|styled_username}}</div>
38
39
  <div class="profile__info__stats">
39
40
  <div class="profile__info__stat">
40
41
  Date Joined:
@@ -2,6 +2,7 @@
2
2
  {% load static %}
3
3
 
4
4
  {% block title_prefix %}Settings | {% endblock %}
5
+ {% block og_title_prefix %}Settings | {% endblock %}
5
6
 
6
7
  {% block extra_head %}
7
8
  {{form.media.css}}