diff --git a/db/moona_data.db b/db/moona_data.db index c2f3932..0b6bb7a 100644 Binary files a/db/moona_data.db and b/db/moona_data.db differ diff --git a/static/css/diary.css b/static/css/diary.css index 75bdca2..7d1804c 100644 --- a/static/css/diary.css +++ b/static/css/diary.css @@ -123,10 +123,12 @@ textarea { } table { margin-left: 5%; - width: 90%; } .like { width: 50%; margin-left: auto; margin-right: auto; +} +#row1_div, #row2_div, #row3_div { +width: 90%; } \ No newline at end of file diff --git a/static/css/publications.css b/static/css/publications.css index 7eca729..f70d347 100644 --- a/static/css/publications.css +++ b/static/css/publications.css @@ -1,10 +1,15 @@ table { -width: 90%; margin-left: auto; margin-right: auto; } #row1, #row2, #row3 { -width: 30%; +width: 32%; +display:inline-block; + vertical-align: top; + margin-top: 39px; +} +#row1_div, #row2_div, #row3_div { +width: 90%; } .post_zag, .card-text, .card-body, .post_zag, .author { width: 90%; @@ -21,4 +26,8 @@ margin-bottom: 20px; } details { color: #ffffff; +} +#add_post { + margin-top: 20px; + margin-left: 83%; } \ No newline at end of file diff --git a/templates/diary.html b/templates/diary.html index 300d878..d7b3b6e 100644 --- a/templates/diary.html +++ b/templates/diary.html @@ -11,227 +11,235 @@
- Публикации-
- {% if my_post != [] %}
- {% for item in pub_post %}
-
-
- {% if item.name != None %}
- Публикации+
+ {% if my_post != [] %}
+ {% for item in pub_post %}
+
+
+
- {% if emotion_pub[loop.index0]['pos_emot'] != None %}
- {% if item.name != None %}
+
+ {% if item.text != None %}
+ {{item.text}}
{% endif %}
-
- {% if item.text != None %}
- {{item.text}}
- {% endif %}
- |
- Мои мысли-
- {% if my_post != [] %}
- {% for item in my_post %}
-
-
- {% if item.name != None %}
- Мои мысли+
+ {% if my_post != [] %}
+ {% for item in my_post %}
+
+
+
- {% if emotion[loop.index0]['pos_emot'] != None %}
- {% if item.name != None %}
+
+ {% if item.text != None %}
+ {{item.text}}
{% endif %}
-
- {% if item.text != None %}
- {{item.text}}
- {% endif %}
- |
- Вопросы дня-
-
- {% for item in question %}
-
- {% if item.id in ans %}
-
- {{item.quest}}
-
- {% else %}
- Ответ есть
- {{ans[item.id].answer}}
-
- {{item.quest}}
-
- {% endif %}
-
- {% endfor %}
+ Ответа нет
-
+
Вопросы дня+
+
+ {% for item in question %}
+
+ {% if item.id in ans %}
+
+ {{item.quest}}
+
+ {% else %}
+ Ответ есть
+ {{ans[item.id].answer}}
+
+ {{item.quest}}
+
+ {% endif %}
+
+ {% endfor %}
+ Ответа нет
+ |
diff --git a/templates/publications.html b/templates/publications.html
index e172659..6ad70eb 100644
--- a/templates/publications.html
+++ b/templates/publications.html
@@ -2,203 +2,223 @@
{% extends "base.html" %}
{% block content %}
+{% if current_user.is_authenticated %}
+
+
+{% endif %}
- {% else %}
-
- {% endif %}
-
- {% if emotion_pub[loop.index0]['like'] != None %}
- {{emotion_pub[loop.index0]['like']}}
{% endif %} + {% if emotion_pub[loop.index0]['nig_emot'] != None %} +
+ {% else %}
+
+ {% endif %}
+
+ {% if emotion_pub[loop.index0]['like'] != None %}
+ {{emotion_pub[loop.index0]['like']}}
+ {% endif %} +
- Популярное-
- {% if pop_post != [] %}
- {% for item in pop_post %}
-
-
-
- {% if emotion_pop[loop.index0]['pos_emot'] != None %}
-
- {% if item.name != None %}
-
- {% if item.text != None %}
- {{item.text}}
- {% endif %}
- |
- Свежее-
- {% if fresh_post != [] %}
- {% for item in fresh_post %}
-
-
-
- {% if emotion_fresh[loop.index0]['pos_emot'] != None %}
-
- {% if item.name != None %}
-
- {% if item.text != None %}
- {{item.text}}
- {% endif %}
- |
+
+
+
- {% else %}
- Для вас
-
- {% endif %}
Ничего не нашлось :с- |
-