basicsettings.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. from misago.utils.fixtures import load_settings_fixture, update_settings_fixture
  2. from misago.utils.translation import ugettext_lazy as _
  3. settings_fixture = (
  4. # Basic options
  5. ('basic', {
  6. 'name': _("Basic Settings"),
  7. 'settings': (
  8. ('board_name', {
  9. 'value': "Misago",
  10. 'type': "string",
  11. 'input': "text",
  12. 'separator': _("Board Name"),
  13. 'name': _("Board Name"),
  14. }),
  15. ('board_header', {
  16. 'type': "string",
  17. 'input': "text",
  18. 'name': _("Board Header"),
  19. 'description': _("Some themes allow you to define text in board header. Leave empty to use Board Name instead."),
  20. }),
  21. ('board_header_postscript', {
  22. 'value': "Work in progress",
  23. 'type': "string",
  24. 'input': "text",
  25. 'name': _("Board Header Postscript"),
  26. 'description': _("Additional text displayed in some themes board header after board name."),
  27. }),
  28. ('board_index_title', {
  29. 'type': "string",
  30. 'input': "text",
  31. 'separator': _("Board Index"),
  32. 'name': _("Board Index Title"),
  33. 'description': _("If you want to, you can replace page title content on Board Index with custom one."),
  34. }),
  35. ('board_index_meta', {
  36. 'type': "string",
  37. 'input': "text",
  38. 'name': _("Board Index Meta-Description"),
  39. 'description': _("Meta-Description used to describe your board's index page."),
  40. }),
  41. ('board_credits', {
  42. 'type': "string",
  43. 'input': "textarea",
  44. 'separator': _("Board Footer"),
  45. 'name': _("Custom Credit"),
  46. 'description': _("Custom Credit to display in board footer above software and theme copyright information. You can use HTML."),
  47. }),
  48. ('email_footnote', {
  49. 'type': "string",
  50. 'input': "textarea",
  51. 'separator': _("Board E-Mails"),
  52. 'name': _("Custom Footnote in HTML E-mails"),
  53. 'description': _("Custom Footnote to display in HTML e-mail messages sent by board."),
  54. }),
  55. ('email_footnote_plain', {
  56. 'type': "string",
  57. 'input': "textarea",
  58. 'name': _("Custom Footnote in plain text E-mails"),
  59. 'description': _("Custom Footnote to display in plain text e-mail messages sent by board."),
  60. }),
  61. ),
  62. }),
  63. )
  64. def load():
  65. load_settings_fixture(settings_fixture)
  66. def update():
  67. update_settings_fixture(settings_fixture)