Show More
@@ -1,53 +1,57 b'' | |||||
1 | html { |
|
1 | html { | |
2 | background: #333; |
|
2 | background: #333; | |
3 | color: #ffffff; |
|
3 | color: #ffffff; | |
4 | } |
|
4 | } | |
5 |
|
5 | |||
6 | #admin_panel { |
|
6 | #admin_panel { | |
7 | background: #FF0000; |
|
7 | background: #FF0000; | |
8 | color: #00FF00 |
|
8 | color: #00FF00 | |
9 | } |
|
9 | } | |
10 |
|
10 | |||
11 | .title { |
|
11 | .title { | |
12 | font-weight: bold; |
|
12 | font-weight: bold; | |
13 | color: #ffcc00; |
|
13 | color: #ffcc00; | |
14 | } |
|
14 | } | |
15 |
|
15 | |||
16 | .post-form { |
|
16 | .post-form { | |
17 | text-align: left; |
|
17 | text-align: left; | |
18 | color: #ffffff; |
|
18 | color: #ffffff; | |
19 | display: table; |
|
19 | display: table; | |
20 | } |
|
20 | } | |
21 |
|
21 | |||
22 | .form-row { |
|
22 | .form-row { | |
23 | display: table-row; |
|
23 | display: table-row; | |
24 | } |
|
24 | } | |
25 |
|
25 | |||
26 | .form-input { |
|
26 | .form-input { | |
27 | display: table-cell; |
|
27 | display: table-cell; | |
28 | } |
|
28 | } | |
29 |
|
29 | |||
30 | .link { |
|
30 | .link { | |
31 |
color: # |
|
31 | color: #829dba; | |
32 | } |
|
32 | } | |
33 |
|
33 | |||
34 | .link:hover { |
|
34 | .link:hover { | |
35 |
color: # |
|
35 | color: #ba9f82; | |
36 | } |
|
36 | } | |
37 |
|
37 | |||
38 | .post_id { |
|
38 | .post_id { | |
39 | color: #ffffff; |
|
39 | color: #ffffff; | |
40 | } |
|
40 | } | |
41 |
|
41 | |||
42 | .block { |
|
42 | .block { | |
43 | display: inline-block; |
|
43 | display: inline-block; | |
44 | vertical-align: top; |
|
44 | vertical-align: top; | |
45 | } |
|
45 | } | |
46 |
|
46 | |||
47 | .tag { |
|
47 | .tag { | |
48 |
color: #b |
|
48 | color: #b4cfec; | |
49 | } |
|
49 | } | |
50 |
|
50 | |||
51 | .tag:hover { |
|
51 | .tag:hover { | |
52 |
color: #d |
|
52 | color: #d0edb4; | |
|
53 | } | |||
|
54 | ||||
|
55 | .post_id { | |||
|
56 | color: #fff380; | |||
53 | } No newline at end of file |
|
57 | } |
@@ -1,61 +1,63 b'' | |||||
1 | {% extends "base.html" %} |
|
1 | {% extends "base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 |
|
4 | |||
5 | {% block content %} |
|
5 | {% block content %} | |
6 |
|
6 | |||
7 | {% if threads %} |
|
7 | {% if threads %} | |
8 | {% for thread in threads %} |
|
8 | {% for thread in threads %} | |
9 | {% if thread.image %} |
|
9 | {% if thread.image %} | |
10 | <div class="block"> |
|
10 | <div class="block"> | |
11 | <a href="{{ thread.image.url }}"><img |
|
11 | <a href="{{ thread.image.url }}"><img | |
12 | src="{{ thread.image.url_200x150 }}" /> |
|
12 | src="{{ thread.image.url_200x150 }}" /> | |
13 | </a> |
|
13 | </a> | |
14 | </div> |
|
14 | </div> | |
15 | {% endif %} |
|
15 | {% endif %} | |
16 | <div class="block"> |
|
16 | <div class="block"> | |
17 | <span class="title">{{ thread.title }}</span> |
|
17 | <span class="title">{{ thread.title }}</span> | |
|
18 | <span class="post_id">(#{{ thread.id }})</span> | |||
|
19 | [{{ thread.pub_time }}] | |||
18 | <a class="link" href="/thread/{{ thread.id }}/"> |
|
20 | <a class="link" href="/thread/{{ thread.id }}/"> | |
19 | [{% trans "View" %}]</a><br /> |
|
21 | [{% trans "View" %}]</a><br /> | |
20 | {{ thread.text }}<br /> |
|
22 | {{ thread.text }}<br /> | |
21 | {% if thread.tags %} |
|
23 | {% if thread.tags %} | |
22 | <span class="tags">{% trans 'Tags' %}: |
|
24 | <span class="tags">{% trans 'Tags' %}: | |
23 | {% for tag in thread.tags.all %} |
|
25 | {% for tag in thread.tags.all %} | |
24 | <a class="tag" href="/tag/{{ tag.name }}"> |
|
26 | <a class="tag" href="/tag/{{ tag.name }}"> | |
25 | {{ tag.name }}</a> |
|
27 | {{ tag.name }}</a> | |
26 | {% endfor %} |
|
28 | {% endfor %} | |
27 | </span> |
|
29 | </span> | |
28 | {% endif %} |
|
30 | {% endif %} | |
29 | </div> |
|
31 | </div> | |
30 | <hr /> |
|
32 | <hr /> | |
31 | {% endfor %} |
|
33 | {% endfor %} | |
32 | {% else %} |
|
34 | {% else %} | |
33 | No threads found. |
|
35 | No threads found. | |
34 | <hr /> |
|
36 | <hr /> | |
35 | {% endif %} |
|
37 | {% endif %} | |
36 |
|
38 | |||
37 | <div class="post-form"> |
|
39 | <div class="post-form"> | |
38 | <div class="post-form"> |
|
40 | <div class="post-form"> | |
39 | <form enctype="multipart/form-data" method="post">{% csrf_token %} |
|
41 | <form enctype="multipart/form-data" method="post">{% csrf_token %} | |
40 | <div class="form-row"> |
|
42 | <div class="form-row"> | |
41 | <div class="form-input">{% trans 'Title' %}</div> |
|
43 | <div class="form-input">{% trans 'Title' %}</div> | |
42 | <div class="form-input">{{ form.title }}</div> |
|
44 | <div class="form-input">{{ form.title }}</div> | |
43 | </div> |
|
45 | </div> | |
44 | <div class="form-row"> |
|
46 | <div class="form-row"> | |
45 | <div class="form-input">{% trans 'Text' %}</div> |
|
47 | <div class="form-input">{% trans 'Text' %}</div> | |
46 | <div class="form-input">{{ form.text }}</div> |
|
48 | <div class="form-input">{{ form.text }}</div> | |
47 | </div> |
|
49 | </div> | |
48 | <div class="form-row"> |
|
50 | <div class="form-row"> | |
49 | <div class="form-input">{% trans 'Image' %}</div> |
|
51 | <div class="form-input">{% trans 'Image' %}</div> | |
50 | <div class="form-input">{{ form.image }}</div> |
|
52 | <div class="form-input">{{ form.image }}</div> | |
51 | </div> |
|
53 | </div> | |
52 | <div class="form-row"> |
|
54 | <div class="form-row"> | |
53 | <div class="form-input">{% trans 'Tags' %}</div> |
|
55 | <div class="form-input">{% trans 'Tags' %}</div> | |
54 | <div class="form-input">{{ form.tags }}</div> |
|
56 | <div class="form-input">{{ form.tags }}</div> | |
55 | </div> |
|
57 | </div> | |
56 | <input type="submit" value="{% trans 'Post' %}" /> |
|
58 | <input type="submit" value="{% trans 'Post' %}" /> | |
57 | </form> |
|
59 | </form> | |
58 | </div> |
|
60 | </div> | |
59 | </div> |
|
61 | </div> | |
60 |
|
62 | |||
61 | {% endblock %} No newline at end of file |
|
63 | {% endblock %} |
@@ -1,54 +1,55 b'' | |||||
1 | {% extends "base.html" %} |
|
1 | {% extends "base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 |
|
4 | |||
5 | {% block content %} |
|
5 | {% block content %} | |
6 |
|
6 | |||
7 | {% if posts %} |
|
7 | {% if posts %} | |
8 | {% for post in posts %} |
|
8 | {% for post in posts %} | |
9 | {% if post.image %} |
|
9 | {% if post.image %} | |
10 | <div class="block"> |
|
10 | <div class="block"> | |
11 | <a href="{{ post.image.url }}"><img |
|
11 | <a href="{{ post.image.url }}"><img | |
12 | src="{{ post.image.url_200x150 }}" /> |
|
12 | src="{{ post.image.url_200x150 }}" /> | |
13 | </a> |
|
13 | </a> | |
14 | </div> |
|
14 | </div> | |
15 | {% endif %} |
|
15 | {% endif %} | |
16 | <div class="block"> |
|
16 | <div class="block"> | |
17 | <span class="title">{{ post.title }}</span> |
|
17 | <span class="title">{{ post.title }}</span> | |
18 |
<span class="post_id">(#{{ post.id }})</span> |
|
18 | <span class="post_id">(#{{ post.id }})</span> | |
|
19 | [{{ post.pub_time }}]<br /> | |||
19 | {{ post.text }}<br /> |
|
20 | {{ post.text }}<br /> | |
20 | {% if post.tags %} |
|
21 | {% ifnotequal post.tags.all|length 0 %} | |
21 | <span class="tags">{% trans 'Tags' %}: |
|
22 | <span class="tags">{% trans 'Tags' %}: | |
22 | {% for tag in post.tags.all %} |
|
23 | {% for tag in post.tags.all %} | |
23 | <a class="tag" href="/tag/{{ tag.name }}"> |
|
24 | <a class="tag" href="/tag/{{ tag.name }}"> | |
24 | {{ tag.name }}</a> |
|
25 | {{ tag.name }}</a> | |
25 | {% endfor %} |
|
26 | {% endfor %} | |
26 | </span> |
|
27 | </span> | |
27 | {% endif %} |
|
28 | {% endifnotequal %} | |
28 | </div> |
|
29 | </div> | |
29 | <hr /> |
|
30 | <hr /> | |
30 | {% endfor %} |
|
31 | {% endfor %} | |
31 | {% else %} |
|
32 | {% else %} | |
32 | No threads found. |
|
33 | No threads found. | |
33 | <hr /> |
|
34 | <hr /> | |
34 | {% endif %} |
|
35 | {% endif %} | |
35 |
|
36 | |||
36 | <div class="post-form"> |
|
37 | <div class="post-form"> | |
37 | <form enctype="multipart/form-data" method="post">{% csrf_token %} |
|
38 | <form enctype="multipart/form-data" method="post">{% csrf_token %} | |
38 | <div class="form-row"> |
|
39 | <div class="form-row"> | |
39 | <div class="form-input">{% trans 'Title' %}</div> |
|
40 | <div class="form-input">{% trans 'Title' %}</div> | |
40 | <div class="form-input">{{ form.title }}</div> |
|
41 | <div class="form-input">{{ form.title }}</div> | |
41 | </div> |
|
42 | </div> | |
42 | <div class="form-row"> |
|
43 | <div class="form-row"> | |
43 | <div class="form-input">{% trans 'Text' %}</div> |
|
44 | <div class="form-input">{% trans 'Text' %}</div> | |
44 | <div class="form-input">{{ form.text }}</div> |
|
45 | <div class="form-input">{{ form.text }}</div> | |
45 | </div> |
|
46 | </div> | |
46 | <div class="form-row"> |
|
47 | <div class="form-row"> | |
47 | <div class="form-input">{% trans 'Image' %}</div> |
|
48 | <div class="form-input">{% trans 'Image' %}</div> | |
48 | <div class="form-input">{{ form.image }}</div> |
|
49 | <div class="form-input">{{ form.image }}</div> | |
49 | </div> |
|
50 | </div> | |
50 | <input type="submit" value="{% trans 'Post' %}" /> |
|
51 | <input type="submit" value="{% trans 'Post' %}" /> | |
51 | </form> |
|
52 | </form> | |
52 | </div> |
|
53 | </div> | |
53 |
|
54 | |||
54 | {% endblock %} No newline at end of file |
|
55 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now