punkweb-bb 0.2.1__tar.gz → 0.2.3__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.1 → punkweb_bb-0.2.3}/PKG-INFO +3 -2
  2. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/README.md +2 -1
  3. punkweb_bb-0.2.3/punkweb_bb/__pycache__/admin.cpython-311.pyc +0 -0
  4. punkweb_bb-0.2.3/punkweb_bb/__pycache__/admin_forms.cpython-311.pyc +0 -0
  5. punkweb_bb-0.2.3/punkweb_bb/__pycache__/models.cpython-311.pyc +0 -0
  6. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/settings.cpython-311.pyc +0 -0
  7. punkweb_bb-0.2.3/punkweb_bb/__pycache__/sitemap.cpython-311.pyc +0 -0
  8. punkweb_bb-0.2.3/punkweb_bb/__pycache__/utils.cpython-311.pyc +0 -0
  9. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/views.cpython-311.pyc +0 -0
  10. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/admin.py +23 -1
  11. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/admin_forms.py +17 -1
  12. punkweb_bb-0.2.3/punkweb_bb/migrations/0004_groupstyle.py +58 -0
  13. punkweb_bb-0.2.3/punkweb_bb/migrations/__pycache__/0004_groupstyle.cpython-311.pyc +0 -0
  14. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/models.py +26 -2
  15. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/subcategory.css +1 -0
  16. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/thread.css +21 -28
  17. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/index.html +5 -5
  18. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/members.html +5 -3
  19. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/profile.html +8 -4
  20. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/shoutbox/shout_list.html +3 -3
  21. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/subcategory.html +8 -8
  22. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/thread.html +72 -60
  23. punkweb_bb-0.2.3/punkweb_bb/templatetags/__pycache__/styled_group_name.cpython-311.pyc +0 -0
  24. punkweb_bb-0.2.3/punkweb_bb/templatetags/__pycache__/styled_username.cpython-311.pyc +0 -0
  25. punkweb_bb-0.2.3/punkweb_bb/templatetags/__pycache__/username.cpython-311.pyc +0 -0
  26. punkweb_bb-0.2.3/punkweb_bb/templatetags/styled_group_name.py +11 -0
  27. punkweb_bb-0.2.3/punkweb_bb/templatetags/styled_username.py +9 -0
  28. punkweb_bb-0.2.3/punkweb_bb/utils.py +47 -0
  29. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/views.py +1 -3
  30. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb.egg-info/PKG-INFO +3 -2
  31. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb.egg-info/SOURCES.txt +9 -1
  32. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/setup.py +1 -1
  33. punkweb_bb-0.2.1/punkweb_bb/__pycache__/admin.cpython-311.pyc +0 -0
  34. punkweb_bb-0.2.1/punkweb_bb/__pycache__/admin_forms.cpython-311.pyc +0 -0
  35. punkweb_bb-0.2.1/punkweb_bb/__pycache__/models.cpython-311.pyc +0 -0
  36. punkweb_bb-0.2.1/punkweb_bb/__pycache__/utils.cpython-311.pyc +0 -0
  37. punkweb_bb-0.2.1/punkweb_bb/utils.py +0 -17
  38. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/LICENSE +0 -0
  39. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/MANIFEST.in +0 -0
  40. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__init__.py +0 -0
  41. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/__init__.cpython-311.pyc +0 -0
  42. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/apps.cpython-311.pyc +0 -0
  43. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/bbcode_tags.cpython-311.pyc +0 -0
  44. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/context_processors.cpython-311.pyc +0 -0
  45. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/forms.cpython-311.pyc +0 -0
  46. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/guests.cpython-311.pyc +0 -0
  47. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/middleware.cpython-311.pyc +0 -0
  48. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/mixins.cpython-311.pyc +0 -0
  49. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/pagination.cpython-311.pyc +0 -0
  50. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/parsers.cpython-311.pyc +0 -0
  51. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/response.cpython-311.pyc +0 -0
  52. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/signals.cpython-311.pyc +0 -0
  53. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/tests.cpython-311.pyc +0 -0
  54. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/urls.cpython-311.pyc +0 -0
  55. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/__pycache__/widgets.cpython-311.pyc +0 -0
  56. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/apps.py +0 -0
  57. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/bbcode_tags.py +0 -0
  58. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/context_processors.py +0 -0
  59. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/forms.py +0 -0
  60. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/guests.py +0 -0
  61. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/middleware.py +0 -0
  62. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/migrations/0001_initial.py +0 -0
  63. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/migrations/0002_thread_view_count.py +0 -0
  64. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/migrations/0003_alter_thread_options.py +0 -0
  65. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/migrations/__init__.py +0 -0
  66. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/migrations/__pycache__/0001_initial.cpython-311.pyc +0 -0
  67. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/migrations/__pycache__/0002_thread_view_count.cpython-311.pyc +0 -0
  68. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/migrations/__pycache__/0003_alter_thread_options.cpython-311.pyc +0 -0
  69. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/migrations/__pycache__/__init__.cpython-311.pyc +0 -0
  70. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/mixins.py +0 -0
  71. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/pagination.py +0 -0
  72. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/parsers.py +0 -0
  73. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/response.py +0 -0
  74. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/settings.py +0 -0
  75. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/signals.py +0 -0
  76. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/category-form.css +0 -0
  77. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/defaults.css +0 -0
  78. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/index.css +0 -0
  79. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/login.css +0 -0
  80. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/members.css +0 -0
  81. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/post-form.css +0 -0
  82. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/profile.css +0 -0
  83. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/punkweb-modal.css +0 -0
  84. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/punkweb.css +0 -0
  85. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/settings.css +0 -0
  86. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/shoutbox.css +0 -0
  87. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/subcategory-form.css +0 -0
  88. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/thread-form.css +0 -0
  89. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/typography.css +0 -0
  90. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/css/variables.css +0 -0
  91. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/editor/bbcode-editor-content.css +0 -0
  92. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/editor/bbcode-editor-tags.js +0 -0
  93. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/editor/bbcode-editor.css +0 -0
  94. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/editor/bbcode-editor.js +0 -0
  95. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/favicon.ico +0 -0
  96. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/img/default-profile-image.png +0 -0
  97. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/js/punkweb-modal.js +0 -0
  98. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/js/shoutbox.js +0 -0
  99. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/htmx-1.9.4.min.js +0 -0
  100. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/jquery-3.7.0.min.js +0 -0
  101. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/open-color.css +0 -0
  102. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/prism.css +0 -0
  103. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/prism.js +0 -0
  104. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/README.md +0 -0
  105. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/formats/bbcode.js +0 -0
  106. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/formats/xhtml.js +0 -0
  107. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/icons/material.js +0 -0
  108. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/icons/monocons.js +0 -0
  109. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/jquery.sceditor.bbcode.js +0 -0
  110. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/jquery.sceditor.js +0 -0
  111. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/jquery.sceditor.xhtml.js +0 -0
  112. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/alternative-lists.js +0 -0
  113. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/autosave.js +0 -0
  114. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/autoyoutube.js +0 -0
  115. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/dragdrop.js +0 -0
  116. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/format.js +0 -0
  117. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/plaintext.js +0 -0
  118. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/undo.js +0 -0
  119. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/plugins/v1compat.js +0 -0
  120. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/sceditor.js +0 -0
  121. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/content/default.css +0 -0
  122. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/default.css +0 -0
  123. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/defaultdark.css +0 -0
  124. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/famfamfam.png +0 -0
  125. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/modern.css +0 -0
  126. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/office-toolbar.css +0 -0
  127. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/office.css +0 -0
  128. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/development/themes/square.css +0 -0
  129. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/alien.png +0 -0
  130. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/angel.png +0 -0
  131. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/angry.png +0 -0
  132. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/blink.png +0 -0
  133. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/blush.png +0 -0
  134. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/cheerful.png +0 -0
  135. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/cool.png +0 -0
  136. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/credits.txt +0 -0
  137. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/cwy.png +0 -0
  138. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/devil.png +0 -0
  139. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/dizzy.png +0 -0
  140. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/ermm.png +0 -0
  141. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/face.png +0 -0
  142. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/getlost.png +0 -0
  143. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/grin.png +0 -0
  144. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/happy.png +0 -0
  145. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/heart.png +0 -0
  146. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/kissing.png +0 -0
  147. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/laughing.png +0 -0
  148. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/ninja.png +0 -0
  149. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/pinch.png +0 -0
  150. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/pouty.png +0 -0
  151. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/sad.png +0 -0
  152. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/shocked.png +0 -0
  153. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/sick.png +0 -0
  154. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/sideways.png +0 -0
  155. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/silly.png +0 -0
  156. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/sleeping.png +0 -0
  157. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/smile.png +0 -0
  158. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/tongue.png +0 -0
  159. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/unsure.png +0 -0
  160. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/w00t.png +0 -0
  161. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/wassat.png +0 -0
  162. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/whistling.png +0 -0
  163. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/wink.png +0 -0
  164. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/emoticons/wub.png +0 -0
  165. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/example.html +0 -0
  166. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/ar.js +0 -0
  167. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/ca.js +0 -0
  168. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/cn.js +0 -0
  169. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/cs.js +0 -0
  170. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/de.js +0 -0
  171. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/el.js +0 -0
  172. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/en-US.js +0 -0
  173. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/en.js +0 -0
  174. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/es.js +0 -0
  175. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/et.js +0 -0
  176. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/fa.js +0 -0
  177. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/fi.js +0 -0
  178. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/fr.js +0 -0
  179. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/gl.js +0 -0
  180. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/hu.js +0 -0
  181. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/id.js +0 -0
  182. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/it.js +0 -0
  183. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/ja.js +0 -0
  184. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/lt.js +0 -0
  185. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/nb.js +0 -0
  186. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/nl.js +0 -0
  187. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/pl.js +0 -0
  188. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/pt-BR.js +0 -0
  189. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/pt.js +0 -0
  190. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/ru.js +0 -0
  191. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/sk.js +0 -0
  192. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/sv.js +0 -0
  193. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/template.js +0 -0
  194. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/tr.js +0 -0
  195. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/tw.js +0 -0
  196. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/uk.js +0 -0
  197. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/languages/vi.js +0 -0
  198. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/formats/bbcode.js +0 -0
  199. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/formats/xhtml.js +0 -0
  200. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/icons/material.js +0 -0
  201. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/icons/monocons.js +0 -0
  202. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/jquery.sceditor.bbcode.min.js +0 -0
  203. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/jquery.sceditor.min.js +0 -0
  204. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/jquery.sceditor.xhtml.min.js +0 -0
  205. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/alternative-lists.js +0 -0
  206. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/autosave.js +0 -0
  207. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/autoyoutube.js +0 -0
  208. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/dragdrop.js +0 -0
  209. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/format.js +0 -0
  210. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/plaintext.js +0 -0
  211. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/undo.js +0 -0
  212. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/plugins/v1compat.js +0 -0
  213. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/sceditor.min.js +0 -0
  214. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/content/default.min.css +0 -0
  215. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/default.min.css +0 -0
  216. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/defaultdark.min.css +0 -0
  217. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/famfamfam.png +0 -0
  218. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/modern.min.css +0 -0
  219. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/office-toolbar.min.css +0 -0
  220. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/office.min.css +0 -0
  221. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/static/punkweb_bb/vendor/sceditor-3.2.0/minified/themes/square.min.css +0 -0
  222. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/base.html +0 -0
  223. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/base_modal.html +0 -0
  224. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/bbcode.html +0 -0
  225. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/category_create.html +0 -0
  226. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/category_update.html +0 -0
  227. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/login.html +0 -0
  228. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/partials/category_delete.html +0 -0
  229. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/partials/post_delete.html +0 -0
  230. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/partials/post_update.html +0 -0
  231. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/partials/shout_delete.html +0 -0
  232. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/partials/subcategory_delete.html +0 -0
  233. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/partials/thread_delete.html +0 -0
  234. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/settings.html +0 -0
  235. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/shoutbox/shoutbox.html +0 -0
  236. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/signup.html +0 -0
  237. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/subcategory_create.html +0 -0
  238. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/subcategory_update.html +0 -0
  239. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/thread_create.html +0 -0
  240. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templates/punkweb_bb/thread_update.html +0 -0
  241. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/__init__.py +0 -0
  242. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/__pycache__/__init__.cpython-311.pyc +0 -0
  243. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/__pycache__/can_delete.cpython-311.pyc +0 -0
  244. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/__pycache__/can_edit.cpython-311.pyc +0 -0
  245. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/__pycache__/can_post.cpython-311.pyc +0 -0
  246. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/__pycache__/humanize_count.cpython-311.pyc +0 -0
  247. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/__pycache__/humanize_int.cpython-311.pyc +0 -0
  248. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/__pycache__/shoutbox_bbcode.cpython-311.pyc +0 -0
  249. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/can_delete.py +0 -0
  250. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/can_edit.py +0 -0
  251. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/can_post.py +0 -0
  252. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/humanize_int.py +0 -0
  253. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/templatetags/shoutbox_bbcode.py +0 -0
  254. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/tests.py +0 -0
  255. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/urls.py +0 -0
  256. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb/widgets.py +0 -0
  257. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb.egg-info/dependency_links.txt +0 -0
  258. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb.egg-info/not-zip-safe +0 -0
  259. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb.egg-info/requires.txt +0 -0
  260. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/punkweb_bb.egg-info/top_level.txt +0 -0
  261. {punkweb_bb-0.2.1 → punkweb_bb-0.2.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: punkweb_bb
3
- Version: 0.2.1
3
+ Version: 0.2.3
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,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
+ ]
@@ -1,8 +1,8 @@
1
- import datetime
2
1
  import math
3
2
  import os
4
3
 
5
4
  from django.contrib.auth import get_user_model
5
+ from django.contrib.auth.models import Group
6
6
  from django.core.cache import cache
7
7
  from django.db import models
8
8
  from django.forms import ValidationError
@@ -11,6 +11,7 @@ from django.utils import timezone
11
11
  from precise_bbcode.fields import BBCodeTextField
12
12
 
13
13
  from punkweb_bb.mixins import TimestampMixin, UUIDPrimaryKeyMixin
14
+ from punkweb_bb.utils import get_highest_priority_group, get_styled_username
14
15
 
15
16
  User = get_user_model()
16
17
 
@@ -28,11 +29,19 @@ class BoardProfile(UUIDPrimaryKeyMixin, TimestampMixin):
28
29
  class Meta:
29
30
  ordering = ("user__username",)
30
31
 
32
+ @property
33
+ def priority_group(self):
34
+ return get_highest_priority_group(self.user)
35
+
36
+ @property
37
+ def styled_username(self):
38
+ return get_styled_username(self.user)
39
+
31
40
  @property
32
41
  def is_online(self):
33
42
  last_seen = cache.get(f"profile_online_{self.id}")
34
43
  if last_seen:
35
- return timezone.now() < last_seen + datetime.timedelta(minutes=5)
44
+ return timezone.now() < last_seen + timezone.timedelta(minutes=5)
36
45
  return False
37
46
 
38
47
  @property
@@ -205,3 +214,18 @@ class Shout(UUIDPrimaryKeyMixin, TimestampMixin):
205
214
 
206
215
  def can_delete(self, user):
207
216
  return user == self.user or user.has_perm("punkweb_bb.delete_shout")
217
+
218
+
219
+ class GroupStyle(UUIDPrimaryKeyMixin, TimestampMixin):
220
+ group = models.OneToOneField(Group, related_name="style", on_delete=models.CASCADE)
221
+ priority = models.PositiveIntegerField(
222
+ default=0,
223
+ help_text="Highest priority is displayed",
224
+ )
225
+ username_style = BBCodeTextField()
226
+
227
+ class Meta:
228
+ ordering = ("-priority",)
229
+
230
+ def __str__(self):
231
+ return f"{self.group} > {self.priority}"
@@ -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
 
@@ -28,13 +28,25 @@
28
28
  padding: 1rem;
29
29
  }
30
30
 
31
- .thread__user__usernameContainer {
31
+ .thread__user__info {
32
32
  align-items: center;
33
33
  display: flex;
34
+ flex-direction: column;
34
35
  gap: 0.25rem;
35
36
  }
36
37
 
37
- .thread__user__info {
38
+ .thread__user__username {
39
+ align-items: center;
40
+ display: flex;
41
+ gap: 0.25rem;
42
+ }
43
+
44
+ .thread__user__group {
45
+ font-size: 0.75rem;
46
+ font-weight: 700;
47
+ }
48
+
49
+ .thread__user__details {
38
50
  background-color: var(--oc-gray-0);
39
51
  border: 1px solid var(--border);
40
52
  border-radius: 0.25rem;
@@ -45,35 +57,16 @@
45
57
  width: 100%;
46
58
  }
47
59
 
48
- .thread__user__info__row {
60
+ .thread__user__details__row {
49
61
  align-items: center;
50
62
  display: flex;
51
63
  justify-content: space-between;
52
64
  }
53
65
 
54
- .thread__user__info__label {
66
+ .thread__user__details__label {
55
67
  color: var(--body-fg);
56
68
  }
57
69
 
58
- .thread__user__groups {
59
- display: flex;
60
- flex-direction: column;
61
- gap: 0.5rem;
62
- width: 100%;
63
- }
64
-
65
- .thread__user__group {
66
- background-color: var(--primary-8);
67
- border: 1px solid var(--primary-9);
68
- border-radius: 0.25rem;
69
- color: var(--text-on-primary);
70
- display: flex;
71
- font-size: 0.875rem;
72
- justify-content: center;
73
- padding: 0.5rem;
74
- width: 100%;
75
- }
76
-
77
70
  .thread__main {
78
71
  display: flex;
79
72
  flex-direction: column;
@@ -85,11 +78,6 @@
85
78
  padding: 1rem;
86
79
  }
87
80
 
88
- .thread__signature {
89
- border-top: 1px solid var(--border);
90
- padding: 1rem;
91
- }
92
-
93
81
  .thread__actions {
94
82
  align-items: center;
95
83
  display: flex;
@@ -98,6 +86,11 @@
98
86
  padding: 1rem;
99
87
  }
100
88
 
89
+ .thread__signature {
90
+ border-top: 1px solid var(--border);
91
+ padding: 1rem;
92
+ }
93
+
101
94
  .thread__reply__content {
102
95
  display: flex;
103
96
  flex-direction: column;
@@ -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' %}" />
@@ -101,7 +101,7 @@
101
101
  </time>
102
102
 
103
103
  <a href="{% url 'punkweb_bb:profile' subcategory.latest_thread.latest_post.user.id %}">
104
- {{subcategory.latest_thread.latest_post.user.username}}
104
+ {{subcategory.latest_thread.latest_post.user|styled_username}}
105
105
  </a>
106
106
  </div>
107
107
  </div>
@@ -125,7 +125,7 @@
125
125
  </time>
126
126
 
127
127
  <a href="{% url 'punkweb_bb:profile' subcategory.latest_thread.user.id %}">
128
- {{subcategory.latest_thread.user.username}}
128
+ {{subcategory.latest_thread.user|styled_username}}
129
129
  </a>
130
130
  </div>
131
131
  </div>
@@ -175,7 +175,7 @@
175
175
  </time>
176
176
 
177
177
  <a href="{% url 'punkweb_bb:profile' thread.user.id %}">
178
- {{thread.user.username}}
178
+ {{thread.user|styled_username}}
179
179
  </a>
180
180
  </div>
181
181
  </div>
@@ -206,7 +206,7 @@
206
206
  <div class="index__statistics__label">Newest member:</div>
207
207
  <div class="index__statistics__value">
208
208
  <a href="{% url 'punkweb_bb:profile' newest_user.id %}">
209
- {{newest_user.username}}
209
+ {{newest_user|styled_username}}
210
210
  </a>
211
211
  </div>
212
212
  </div>
@@ -1,5 +1,5 @@
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
5
  {% block og_title_prefix %}Members | {% endblock %}
@@ -33,7 +33,7 @@
33
33
  {% endif %}
34
34
  </div>
35
35
  <div class="members__user__info">
36
- <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>
37
37
  <div class="members__user__stats">
38
38
  <div class="members__user__stat">
39
39
  Posts:
@@ -41,7 +41,9 @@
41
41
  </div>
42
42
  <div class="members__user__stat">
43
43
  Date Joined:
44
- <span class="members__user__stat__value">{{user.date_joined | date:'m/d/Y'}}</span>
44
+ <span class="members__user__stat__value">
45
+ <time datetime="{{user.date_joined|date:'c'}}">{{user.date_joined | date:'m/d/Y'}}</time>
46
+ </span>
45
47
  </div>
46
48
  </div>
47
49
  </div>
@@ -1,5 +1,5 @@
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
5
  {% block og_title_prefix %}{{ user.username }} | {% endblock %}
@@ -35,15 +35,19 @@
35
35
  {% endif %}
36
36
  </div>
37
37
  <div class="profile__info__details">
38
- <div class="profile__info__username">{{user.username}}</div>
38
+ <div class="profile__info__username">{{user|styled_username}}</div>
39
39
  <div class="profile__info__stats">
40
40
  <div class="profile__info__stat">
41
41
  Date Joined:
42
- <span class="profile__info__stat__value">{{user.date_joined | date:'m/d/Y'}}</span>
42
+ <span class="profile__info__stat__value">
43
+ <time datetime="{{user.date_joined|date:'c'}}">{{user.date_joined | date:'m/d/Y'}}</time>
44
+ </span>
43
45
  </div>
44
46
  <div class="profile__info__stat">
45
47
  Last Login:
46
- <span class="profile__info__stat__value">{{user.last_login | date:'m/d/Y'}}</span>
48
+ <span class="profile__info__stat__value">
49
+ <time datetime="{{user.last_login|date:'c'}}">{{user.last_login | date:'m/d/Y'}}</time>
50
+ </span>
47
51
  </div>
48
52
  <div class="profile__info__stat">
49
53
  Posts:
@@ -1,10 +1,10 @@
1
- {% load shoutbox_bbcode can_delete %}
1
+ {% load shoutbox_bbcode can_delete styled_username %}
2
2
 
3
3
  {% for shout in shouts %}
4
4
  <div class="shoutbox__shout">
5
5
  <div class="shoutbox__shout__content">
6
- <span>{{shout.created_at|date:'g:i A'}}</span>
7
- <span><a href="{% url 'punkweb_bb:profile' shout.user.id %}">{{shout.user.username}}</a>: </span>
6
+ <time datetime="{{shout.created_at|date:'c'}}">{{shout.created_at | date:'g:i A'}}</time>
7
+ <span><a href="{% url 'punkweb_bb:profile' shout.user.id %}">{{shout.user|styled_username}}</a>: </span>
8
8
  <span>{{ shout.content | safe | shoutbox_bbcode }}</span>
9
9
  </div>
10
10
  {% if shout|can_delete:request.user %}
@@ -1,5 +1,5 @@
1
1
  {% extends 'punkweb_bb/base.html' %}
2
- {% load static humanize_int can_post %}
2
+ {% load static humanize_int can_post styled_username %}
3
3
 
4
4
  {% block title_prefix %}{{subcategory.name}} | {% endblock%}
5
5
  {% block og_title_prefix %}{{subcategory.name}} | {% endblock %}
@@ -70,10 +70,10 @@
70
70
  <div class="pw-table-container">
71
71
  <table class="pw-table">
72
72
  <colgroup>
73
- <col span="1">
74
- <col span="1" width="96px">
75
- <col span="1" width="96px">
76
- <col span="1" width="160px">
73
+ <col>
74
+ <col width="96px">
75
+ <col width="96px">
76
+ <col width="192px">
77
77
  </colgroup>
78
78
  <thead>
79
79
  <tr>
@@ -98,10 +98,10 @@
98
98
  </div>
99
99
  <div>
100
100
  <a href="{% url 'punkweb_bb:profile' thread.user.id %}">
101
- {{thread.user.username}}
101
+ {{thread.user|styled_username}}
102
102
  </a>
103
103
 
104
- {{thread.created_at|date:'M j, Y'}}</div>
104
+ <time datetime="{{thread.created_at|date:'c'}}">{{thread.created_at | date:'m j, Y'}}</time>
105
105
  </td>
106
106
  <td>{{thread.post_count}}</td>
107
107
  <td>{{thread.view_count | humanize_int}}</td>
@@ -117,7 +117,7 @@
117
117
  </a>
118
118
  <div>
119
119
  <a href="{% url 'punkweb_bb:profile' thread.latest_post.user.id %}">
120
- {{thread.latest_post.user.username}}
120
+ {{thread.latest_post.user|styled_username}}
121
121
  </a>
122
122
  </div>
123
123
  </div>