]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/basic.py
initial import
[osqa.git] / forum / settings / basic.py
1 import os.path\r
2 \r
3 from base import Setting, SettingSet\r
4 from forms import ImageFormWidget\r
5 \r
6 from django.utils.translation import ugettext_lazy as _\r
7 from django.forms.widgets import Textarea\r
8 \r
9 BASIC_SET = SettingSet('basic', _('Basic Settings'), _("The basic settings for your application"), 1)\r
10 \r
11 APP_LOGO = Setting('APP_LOGO', '/m/default/media/images/logo.png', BASIC_SET, dict(\r
12 label = _("Application logo"),\r
13 help_text = _("""\r
14 Your site main logo.\r
15 """),\r
16 widget=ImageFormWidget))\r
17 \r
18 APP_FAVICON = Setting('APP_FAVICON', '/m/default/media/images/favicon.ico', BASIC_SET, dict(\r
19 label = _("Favicon"),\r
20 help_text = _("""\r
21 Your site favicon.\r
22 """),\r
23 widget=ImageFormWidget))\r
24 \r
25 APP_TITLE = Setting('APP_TITLE', 'OSQA: Open Source Q&A Forum', BASIC_SET, dict(\r
26 label = _("Application title"),\r
27 help_text = _("""\r
28 The title of your application that will show in the browsers title bar\r
29 """)))\r
30 \r
31 APP_SHORT_NAME = Setting('APP_SHORT_NAME', 'OSQA', BASIC_SET, dict(\r
32 label = _("Application short name"),\r
33 help_text = """\r
34 The short name for your application that will show up in many places.\r
35 """))\r
36 \r
37 APP_KEYWORDS = Setting('APP_KEYWORDS', 'OSQA,CNPROG,forum,community', BASIC_SET, dict(\r
38 label = _("Application keywords"),\r
39 help_text = _("""\r
40 The meta keywords that will be available through the HTML meta tags.\r
41 """)))\r
42 \r
43 APP_DESCRIPTION = Setting('APP_DESCRIPTION', 'Ask and answer questions.', BASIC_SET, dict(\r
44 label = _("Application description"),\r
45 help_text = _("""\r
46 The description of your application\r
47 """),\r
48 widget=Textarea))\r
49 \r
50 APP_INTRO = Setting('APP_INTRO', '<p>Ask and answer questions, make the world better!</p>', BASIC_SET, dict(\r
51 label = _("Application intro"),\r
52 help_text = _("""\r
53 The introductory page that is visible in the sidebar for anonymous users.\r
54 """),\r
55 widget=Textarea))\r
56 \r
57 APP_COPYRIGHT = Setting('APP_COPYRIGHT', 'Copyright OSQA, 2009. Some rights reserved under creative commons license.', BASIC_SET, dict(\r
58 label = _("Copyright notice"),\r
59 help_text = _("""\r
60 The copyright notice visible at the footer of your page.\r
61 """)))