##// END OF EJS Templates
Added authors page. This fixes #22
neko259 -
r103:6d34bf73 default
parent child Browse files
Show More
@@ -0,0 +1,14 b''
1 __author__ = 'neko259'
2
3 authors = {
4 'neko259': {
5 'name': 'Pavel Ryapolov',
6 'contacts': ['neko259@gmail.com'],
7 'roles': ['author', 'developer'],
8 },
9 'ilyas': {
10 'name': 'Ilyas Babayev',
11 'contacts': ['zamesilyasa@gmail.com'],
12 'roles': ['author', 'developer'],
13 }
14 } No newline at end of file
@@ -0,0 +1,30 b''
1 {% extends "boards/base.html" %}
2
3 {% load i18n %}
4
5 {% block head %}
6 <title>{% trans "Authors" %}</title>
7 {% endblock %}
8
9 {% block content %}
10 <div class="post">
11 <h2>Authors</h2>
12 {% for nick, values in authors.items %}
13 <p>
14 <b>{{ nick }}</b> ({{ values.name }}):
15 {% for value in values.contacts %}
16 <a href="mailto:{{ value }}">{{ value }}</a>
17 {% endfor %} -
18 {% for role in values.roles %}
19 {% trans role %}
20 {% endfor %}
21 </p>
22 {% endfor %}
23 <br />
24 <p>{% trans "Distributed under the" %}
25 <a href="http://www.gnu.org/licenses/gpl.html" >GNU GPLv3</a>
26 {% trans "license" %}</p>
27 <p><a href="https://bitbucket.org/neko259/neboard">
28 {% trans "Repository" %}</a></p>
29 </div>
30 {% endblock %} No newline at end of file
1 NO CONTENT: modified file, binary diff hidden
@@ -7,7 +7,7 b' msgid ""'
7 7 msgstr ""
8 8 "Project-Id-Version: PACKAGE VERSION\n"
9 9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2013-07-04 20:35+0300\n"
10 "POT-Creation-Date: 2013-08-04 14:04+0300\n"
11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -18,6 +18,22 b' msgstr ""'
18 18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
20 20
21 #: templates/boards/authors.html:6
22 msgid "Authors"
23 msgstr "Авторы"
24
25 #: templates/boards/authors.html:24
26 msgid "Distributed under the"
27 msgstr "Распространяется под"
28
29 #: templates/boards/authors.html:26
30 msgid "license"
31 msgstr "лицензией"
32
33 #: templates/boards/authors.html:28
34 msgid "Repository"
35 msgstr "Репозиторий"
36
21 37 #: templates/boards/base.html:12
22 38 msgid "Feed"
23 39 msgstr "Лента"
@@ -41,7 +57,6 b' msgstr "\xd0\xa2\xd0\xb5\xd0\xb3: "'
41 57 #: templates/boards/posting_general.html:35
42 58 #: templates/boards/posting_general.html:79 templates/boards/thread.html:27
43 59 #: templates/boards/rss/post.html:5
44 #, fuzzy
45 60 msgid "Post image"
46 61 msgstr "Изображение сообщения"
47 62
@@ -49,16 +64,16 b' msgstr "\xd0\x98\xd0\xb7\xd0\xbe\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5 \xd1\x81\xd0\xbe\xd0\xbe\xd0\xb1\xd1\x89\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f"'
49 64 msgid "Reply"
50 65 msgstr "Ответ"
51 66
52 #: templates/boards/posting_general.html:53 templates/boards/thread.html:108
67 #: templates/boards/posting_general.html:53 templates/boards/thread.html:111
53 68 msgid "replies"
54 69 msgstr "ответов"
55 70
56 #: templates/boards/posting_general.html:54 templates/boards/thread.html:109
71 #: templates/boards/posting_general.html:54 templates/boards/thread.html:112
57 72 msgid "images"
58 73 msgstr "изображений"
59 74
60 75 #: templates/boards/posting_general.html:56
61 #: templates/boards/posting_general.html:127 templates/boards/thread.html:49
76 #: templates/boards/posting_general.html:127 templates/boards/thread.html:51
62 77 #: templates/boards/rss/post.html:10
63 78 msgid "Tags"
64 79 msgstr "Теги"
@@ -67,28 +82,28 b' msgstr "\xd0\xa2\xd0\xb5\xd0\xb3\xd0\xb8"'
67 82 msgid "Create new thread"
68 83 msgstr "Создать новую тему"
69 84
70 #: templates/boards/posting_general.html:112 templates/boards/thread.html:71
85 #: templates/boards/posting_general.html:112 templates/boards/thread.html:73
71 86 msgid "Title"
72 87 msgstr "Заголовок"
73 88
74 #: templates/boards/posting_general.html:117 templates/boards/thread.html:76
89 #: templates/boards/posting_general.html:117 templates/boards/thread.html:78
75 90 msgid "Text"
76 91 msgstr "Текст"
77 92
78 #: templates/boards/posting_general.html:122 templates/boards/thread.html:81
93 #: templates/boards/posting_general.html:122 templates/boards/thread.html:83
79 94 msgid "Image"
80 95 msgstr "Изображение"
81 96
82 #: templates/boards/posting_general.html:136 templates/boards/thread.html:91
97 #: templates/boards/posting_general.html:137 templates/boards/thread.html:94
83 98 msgid "Post"
84 99 msgstr "Отправить"
85 100
86 #: templates/boards/posting_general.html:138
101 #: templates/boards/posting_general.html:139
87 102 msgid "Tags must be delimited by spaces. Text or image is required."
88 103 msgstr ""
89 104 "Теги должны быть разделены пробелами. Текст или изображение обязательны."
90 105
91 #: templates/boards/posting_general.html:141 templates/boards/thread.html:93
106 #: templates/boards/posting_general.html:142 templates/boards/thread.html:96
92 107 msgid "Basic markdown syntax."
93 108 msgstr "Базовый синтаксис markdown."
94 109
@@ -112,31 +127,31 b' msgstr "\xd1\x82\xd0\xb5\xd0\xb3\xd0\xbe\xd0\xb2"'
112 127 msgid "Get!"
113 128 msgstr "Гет!"
114 129
115 #: templates/boards/thread.html:68
130 #: templates/boards/thread.html:70
116 131 msgid "Reply to thread"
117 132 msgstr "Ответить в тему"
118 133
119 #: templates/boards/thread.html:94
134 #: templates/boards/thread.html:97
120 135 msgid "Example: "
121 136 msgstr "Пример: "
122 137
123 #: templates/boards/thread.html:94
138 #: templates/boards/thread.html:97
124 139 msgid "italic"
125 140 msgstr "курсив"
126 141
127 #: templates/boards/thread.html:95
142 #: templates/boards/thread.html:98
128 143 msgid "bold"
129 144 msgstr "полужирный"
130 145
131 #: templates/boards/thread.html:96
146 #: templates/boards/thread.html:99
132 147 msgid "Quotes can be inserted with"
133 148 msgstr "Цитаты могут быть вставлены при помощи"
134 149
135 #: templates/boards/thread.html:97
150 #: templates/boards/thread.html:100
136 151 msgid "Links to answers can be inserted with"
137 152 msgstr "Ссылки на ответы могут быть вставлены с помощью"
138 153
139 #: templates/boards/thread.html:110
154 #: templates/boards/thread.html:113
140 155 msgid "Last update: "
141 156 msgstr "Последнее обновление: "
142 157
@@ -145,3 +160,9 b' msgstr "\xd0\x9f\xd0\xbe\xd1\x81\xd0\xbb\xd0\xb5\xd0\xb4\xd0\xbd\xd0\xb5\xd0\xb5 \xd0\xbe\xd0\xb1\xd0\xbd\xd0\xbe\xd0\xb2\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5: "'
145 160
146 161 #~ msgid "gets"
147 162 #~ msgstr "гетов"
163
164 msgid "author"
165 msgstr "автор"
166
167 msgid "developer"
168 msgstr "разработчик" No newline at end of file
@@ -148,8 +148,7 b''
148 148 {% block metapanel %}
149 149
150 150 <span class="metapanel">
151 <b><a href="https://bitbucket.org/neko259/neboard/">Neboard</a>
152 pre1.0</b>
151 <b><a href="{% url "authors" %}">Neboard</a> pre1.0</b>
153 152 {% trans "Pages:" %}
154 153 {% for page in pages %}
155 154 [<a href="
@@ -24,7 +24,8 b" urlpatterns = patterns('',"
24 24 url(r'^settings$', views.settings, name='settings'),
25 25 url(r'^tags$', views.all_tags, name='tags'),
26 26 url(r'^captcha/', include('captcha.urls')),
27 url(r'^jump/(?P<post_id>\w+)', views.jump_to_post, name='jumper'),
27 url(r'^jump/(?P<post_id>\w+)/$', views.jump_to_post, name='jumper'),
28 url(r'^authors/$', views.authors, name='authors'),
28 29
29 30 # RSS feeds
30 31 url(r'^rss/$', AllThreadsFeed()),
@@ -10,6 +10,7 b' from boards.forms import ThreadForm, Pos'
10 10 ThreadCaptchaForm, PostCaptchaForm
11 11
12 12 from boards.models import Post, Admin, Tag
13 from boards import authors
13 14 import neboard
14 15
15 16
@@ -214,6 +215,13 b' def jump_to_post(request, post_id):'
214 215 + '#' + str(post.id))
215 216
216 217
218 def authors(request):
219 context = _init_default_context(request)
220 context['authors'] = boards.authors.authors
221
222 return render(request, 'boards/authors.html', context)
223
224
217 225 def _get_theme(request):
218 226 """Get user's CSS theme"""
219 227
General Comments 0
You need to be logged in to leave comments. Login now