Commit 607350acdf6be99b16900f243e0e902284fb1fe6
1 parent
87966e6e
Exists in
master
and in
39 other branches
Customizing planet template and fixing translation
Showing
6 changed files
with
103 additions
and
4 deletions
Show diff stats
src/colab/static/css/screen.css
| @@ -176,6 +176,7 @@ label.avatar-placeholder { | @@ -176,6 +176,7 @@ label.avatar-placeholder { | ||
| 176 | color: #fff; | 176 | color: #fff; |
| 177 | margin-right: 5px; | 177 | margin-right: 5px; |
| 178 | line-height: 2; | 178 | line-height: 2; |
| 179 | + white-space: nowrap; | ||
| 179 | } | 180 | } |
| 180 | 181 | ||
| 181 | .tag:hover, | 182 | .tag:hover, |
| @@ -345,3 +346,19 @@ form#set-custom-xmpp-status .custom-xmpp-status { | @@ -345,3 +346,19 @@ form#set-custom-xmpp-status .custom-xmpp-status { | ||
| 345 | #available-chatrooms .available-chatroom { | 346 | #available-chatrooms .available-chatroom { |
| 346 | margin-left: 1px; | 347 | margin-left: 1px; |
| 347 | } | 348 | } |
| 349 | + | ||
| 350 | +.blog-post-item h3 a { | ||
| 351 | + text-decoration: none; | ||
| 352 | +} | ||
| 353 | + | ||
| 354 | +.blog-post-item h3 { | ||
| 355 | + margin-bottom: 0.5em; | ||
| 356 | +} | ||
| 357 | + | ||
| 358 | +.blog-post-item .post-meta { | ||
| 359 | + margin-bottom: 2em; | ||
| 360 | +} | ||
| 361 | + | ||
| 362 | +.blog-post-item .tags { | ||
| 363 | + margin-top: 1em; | ||
| 364 | +} |
src/planet/locale/pt_BR/LC_MESSAGES/django.po
| @@ -7,7 +7,7 @@ msgid "" | @@ -7,7 +7,7 @@ msgid "" | ||
| 7 | msgstr "" | 7 | msgstr "" |
| 8 | "Project-Id-Version: PACKAGE VERSION\n" | 8 | "Project-Id-Version: PACKAGE VERSION\n" |
| 9 | "Report-Msgid-Bugs-To: \n" | 9 | "Report-Msgid-Bugs-To: \n" |
| 10 | -"POT-Creation-Date: 2013-07-24 15:40-0300\n" | 10 | +"POT-Creation-Date: 2013-07-24 18:36-0300\n" |
| 11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 | "Language-Team: LANGUAGE <LL@li.org>\n" | 13 | "Language-Team: LANGUAGE <LL@li.org>\n" |
| @@ -25,6 +25,18 @@ msgstr "anterior" | @@ -25,6 +25,18 @@ msgstr "anterior" | ||
| 25 | msgid "next" | 25 | msgid "next" |
| 26 | msgstr "próxima" | 26 | msgstr "próxima" |
| 27 | 27 | ||
| 28 | +#: templates/feedzilla/_post_template.html:9 | ||
| 29 | +msgid "From" | ||
| 30 | +msgstr "De" | ||
| 31 | + | ||
| 32 | +#: templates/feedzilla/_post_template.html:9 | ||
| 33 | +msgid "on" | ||
| 34 | +msgstr "em" | ||
| 35 | + | ||
| 36 | +#: templates/feedzilla/_post_template.html:17 | ||
| 37 | +msgid "Read original" | ||
| 38 | +msgstr "Ler original" | ||
| 39 | + | ||
| 28 | #: templates/feedzilla/base.html:6 | 40 | #: templates/feedzilla/base.html:6 |
| 29 | msgid "Planet" | 41 | msgid "Planet" |
| 30 | msgstr "Planet" | 42 | msgstr "Planet" |
| @@ -38,5 +50,18 @@ msgid "Tags" | @@ -38,5 +50,18 @@ msgid "Tags" | ||
| 38 | msgstr "Tags" | 50 | msgstr "Tags" |
| 39 | 51 | ||
| 40 | #: templates/feedzilla/base.html:22 | 52 | #: templates/feedzilla/base.html:22 |
| 41 | -msgid "Blogs" | ||
| 42 | -msgstr "Blogs" | 53 | +msgid "Source Blogs" |
| 54 | +msgstr "Blogs Fonte" | ||
| 55 | + | ||
| 56 | +#: templates/feedzilla/tag.html:5 | ||
| 57 | +#, python-format | ||
| 58 | +msgid "Posts with «%(tag)s» label" | ||
| 59 | +msgstr "" | ||
| 60 | + | ||
| 61 | +#: templates/feedzilla/tag.html:14 | ||
| 62 | +msgid "No posts with such label" | ||
| 63 | +msgstr "" | ||
| 64 | + | ||
| 65 | +#, fuzzy | ||
| 66 | +#~ msgid "Blogs fonte" | ||
| 67 | +#~ msgstr "Blogs" |
| @@ -0,0 +1,30 @@ | @@ -0,0 +1,30 @@ | ||
| 1 | +{% load tagging_tags %} | ||
| 2 | +{% load i18n %} | ||
| 3 | + | ||
| 4 | +<div class="blog-post-item"> | ||
| 5 | + <a name="post-{{ post.pk }}"></a> | ||
| 6 | + | ||
| 7 | + <h3><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3> | ||
| 8 | + | ||
| 9 | + <div class="post-meta">{% trans "From" %} <a href="{{ post.feed.site_url }}">{{ post.feed.author_or_title }}</a> {% trans "on" %} {{ post.created }}</div> | ||
| 10 | + | ||
| 11 | + | ||
| 12 | + <div class="content"> | ||
| 13 | + {{ post.summary|safe }} | ||
| 14 | + </div> | ||
| 15 | + | ||
| 16 | + <div> | ||
| 17 | + <b><a href="{{ post.get_absolute_url }}">{% trans "Read original" %}</a></b> | ||
| 18 | + </div> | ||
| 19 | + | ||
| 20 | + {% if post.tags %} | ||
| 21 | + <div class="tags"> | ||
| 22 | + <span><b>Tags:</b> | ||
| 23 | + {% tags_for_object post as tags %} | ||
| 24 | + {% for tag in tags %} | ||
| 25 | + <a href="{% url "feedzilla_tag" tag.name %}" class="tag">{{ tag }}</a> | ||
| 26 | + {% endfor %} | ||
| 27 | + </span> | ||
| 28 | + </div> | ||
| 29 | + {% endif %} | ||
| 30 | +</div> |
src/planet/templates/feedzilla/base.html
| @@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
| 19 | {% feedzilla_tag_cloud %} | 19 | {% feedzilla_tag_cloud %} |
| 20 | </div> | 20 | </div> |
| 21 | <div class="box"> | 21 | <div class="box"> |
| 22 | - <h3>{% trans 'Blogs' %}</h3> | 22 | + <h3>{% trans 'Source Blogs' %}</h3> |
| 23 | {% feedzilla_donor_list %} | 23 | {% feedzilla_donor_list %} |
| 24 | </div> | 24 | </div> |
| 25 | </div> | 25 | </div> |
| @@ -0,0 +1,11 @@ | @@ -0,0 +1,11 @@ | ||
| 1 | +{% extends 'feedzilla/base.html' %} | ||
| 2 | +{% load i18n %} | ||
| 3 | + | ||
| 4 | +{% block feedzilla_content %} | ||
| 5 | + {% for post in page.object_list %} | ||
| 6 | + {% include 'feedzilla/_post_template.html' %} | ||
| 7 | + <hr> | ||
| 8 | + {% endfor %} | ||
| 9 | + | ||
| 10 | + {% include "pagination.html" %} | ||
| 11 | +{% endblock %} |
| @@ -0,0 +1,16 @@ | @@ -0,0 +1,16 @@ | ||
| 1 | +{% extends 'feedzilla/base.html' %} | ||
| 2 | +{% load i18n %} | ||
| 3 | + | ||
| 4 | +{% block feedzilla_content %} | ||
| 5 | +<h3>{% block title %}{% blocktrans %}Posts with «{{ tag }}» label{% endblocktrans %}{% endblock title %}</h3> | ||
| 6 | +<hr> | ||
| 7 | +{% if page.object_list %} | ||
| 8 | + {% for post in page.object_list %} | ||
| 9 | + {% include 'feedzilla/_post_template.html' %} | ||
| 10 | + <hr> | ||
| 11 | + {% endfor %} | ||
| 12 | + {% include "pagination.html" %} | ||
| 13 | +{% else %} | ||
| 14 | + <p>{% trans "No posts with such label" %}</p> | ||
| 15 | +{% endif %} | ||
| 16 | +{% endblock %} |