aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslsav-95 <contact@yaroslavps.com>2018-10-08 12:21:24 +0300
committerYaroslsav-95 <contact@yaroslavps.com>2018-10-08 12:21:24 +0300
commit59b9260b28d330f89cb493a7c0ebfbf177be9e8c (patch)
tree888dd6da911ccdd273e84431b484736b4b4d12aa
parent7851ef3fd924987468b377b890cb37962805e6dc (diff)
downloadw3blog-59b9260b28d330f89cb493a7c0ebfbf177be9e8c.tar.gz
w3blog-59b9260b28d330f89cb493a7c0ebfbf177be9e8c.zip
minor fixes
-rw-r--r--[-rwxr-xr-x]weblog/locale/es/LC_MESSAGES/django.mobin3794 -> 3855 bytes
-rwxr-xr-xweblog/locale/es/LC_MESSAGES/django.po2
-rw-r--r--[-rwxr-xr-x]weblog/locale/ru/LC_MESSAGES/django.mobin4772 -> 4827 bytes
-rwxr-xr-xweblog/locale/ru/LC_MESSAGES/django.po2
-rwxr-xr-xweblog/static/weblog/js/weblog.js2
-rwxr-xr-xweblog/templates/weblog/post.html26
6 files changed, 13 insertions, 19 deletions
diff --git a/weblog/locale/es/LC_MESSAGES/django.mo b/weblog/locale/es/LC_MESSAGES/django.mo
index 1fba8ea..fcff025 100755..100644
--- a/weblog/locale/es/LC_MESSAGES/django.mo
+++ b/weblog/locale/es/LC_MESSAGES/django.mo
Binary files differ
diff --git a/weblog/locale/es/LC_MESSAGES/django.po b/weblog/locale/es/LC_MESSAGES/django.po
index 58aa82d..e38a930 100755
--- a/weblog/locale/es/LC_MESSAGES/django.po
+++ b/weblog/locale/es/LC_MESSAGES/django.po
@@ -209,8 +209,6 @@ msgid "Read more..."
msgstr "Leer más..."
#: templates/weblog/index.html:69
-#, fuzzy
-#| msgid "Read more..."
msgctxt "Load more pages"
msgid "Load more..."
msgstr "Mostrar más..."
diff --git a/weblog/locale/ru/LC_MESSAGES/django.mo b/weblog/locale/ru/LC_MESSAGES/django.mo
index 82203fb..956ebf8 100755..100644
--- a/weblog/locale/ru/LC_MESSAGES/django.mo
+++ b/weblog/locale/ru/LC_MESSAGES/django.mo
Binary files differ
diff --git a/weblog/locale/ru/LC_MESSAGES/django.po b/weblog/locale/ru/LC_MESSAGES/django.po
index fa92785..3c417c2 100755
--- a/weblog/locale/ru/LC_MESSAGES/django.po
+++ b/weblog/locale/ru/LC_MESSAGES/django.po
@@ -209,8 +209,6 @@ msgid "Read more..."
msgstr "Читать далее..."
#: templates/weblog/index.html:69
-#, fuzzy
-#| msgid "Read more..."
msgctxt "Load more pages"
msgid "Load more..."
msgstr "Ещё..."
diff --git a/weblog/static/weblog/js/weblog.js b/weblog/static/weblog/js/weblog.js
index 654fb4a..3e9ceba 100755
--- a/weblog/static/weblog/js/weblog.js
+++ b/weblog/static/weblog/js/weblog.js
@@ -20,8 +20,8 @@ function floatSidebar(){
document.querySelector(".breadcrumb").offsetHeight;
if((document.body.scrollTop > offset || document.documentElement.scrollTop > offset)){
sidebar.classList.add("float");
- sidebar.style.left = blog_content.offsetLeft + blog_content.offsetWidth + "px";
sidebar_filler.classList.remove("hidden");
+ sidebar.style.left = blog_content.offsetLeft + blog_content.offsetWidth + "px";
}
else{
sidebar.classList.remove("float");
diff --git a/weblog/templates/weblog/post.html b/weblog/templates/weblog/post.html
index 7a7a09a..ec999c7 100755
--- a/weblog/templates/weblog/post.html
+++ b/weblog/templates/weblog/post.html
@@ -60,24 +60,22 @@
</div>
{% endif %}
{% endif %}
- <div id="comment-section">
- {% for comment in comments %}
- <div class="media">
- <div class="media-body">
- <h4 class="media-heading">{% if comment.author %}{{ comment.author.get_username }}{% else %}{% trans 'Anonymous' context 'Unauthenticated comment poster' %}{% endif %}</h4>
- <p>{{ comment.content }}</p>
- <p class="media-date">{{ comment.publish_date }}</p>
- </div>
+ {% for comment in comments %}
+ <div class="media">
+ <div class="media-body">
+ <h4 class="media-heading">{% if comment.author %}{{ comment.author.get_username }}{% else %}{% trans 'Anonymous' context 'Unauthenticated comment poster' %}{% endif %}</h4>
+ <p>{{ comment.content }}</p>
+ <p class="media-date">{{ comment.publish_date }}</p>
</div>
- {% endfor %}
- {% else %}
- <div class="text-center">
- <br>
- <h3>{% trans 'Nobody has left a comment on this post yet' %}</h3>
</div>
- {% endif %}
+ {% endfor %}
+ {% else %}
+ <div class="text-center">
+ <br>
+ <h3>{% trans 'Nobody has left a comment on this post yet' %}</h3>
</div>
{% endif %}
+ {% endif %}
</div>
<script>
function changeLang(lang){