diff --git a/templates/board.html b/templates/board.html index 0fc1b72..de3603f 100644 --- a/templates/board.html +++ b/templates/board.html @@ -35,17 +35,17 @@ {% for thread in board_threads %} - + - + - + {{thread.thread_num}} {{thread.post_num}} diff --git a/templates/posts.html b/templates/posts.html index 6b45342..0f551d8 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -19,37 +19,30 @@ -
- - 0
-
- - 0 -
- -
-
-
- image.png - - - 901Кб, 1200x1200 -
- - 1200x1200 - -
-
- image.png - - - 623Кб, 954x960 -
- - 954x960 - -
+
+ {% for pic in thread.pic_links %} +
+
+ image.png + + +
+ + + + + + + + + + + + + + +
>>15135633 (OP)
{{thread.txt}} diff --git a/threads_with_posts.py b/threads_with_posts.py index d38969d..b8ece76 100644 --- a/threads_with_posts.py +++ b/threads_with_posts.py @@ -1,44 +1,44 @@ -# : {, , , } +# : {, , , } open_threads = { '123': { 'thread_num': '123', 'post_num': '9999', - 'pic_link': '16216445863900.jpg', + 'pic_links': ['16216445863900.jpg'], 'txt': 'фыва', 'name': 'anonius' }, '124': { 'thread_num': '124', 'post_num': '456', - 'pic_link': '16672846165910.png', + 'pic_linkss': ['16672846165910.png'], 'txt': 'Test', 'name': 'anonius' }, '1': { 'thread_num': '123', 'post_num': '1', - 'pic_link': '16211265989190.jpg', + 'pic_links': ['16211265989190.jpg'], 'txt': 'фыва', 'name': 'anonius' }, '44': { 'thread_num': '44', 'post_num': '12', - 'pic_link': '15937598937440.png', + 'pic_links': ['15937598937440.png'], 'txt': 'I hate my brother-nation..', 'name': 'Владимир Владимирович' }, '99': { 'thread_num': '99', 'post_num': '55', - 'pic_link': 'Экран-смерти.jpg', + 'pic_links': ['Экран-смерти.jpg'], 'txt': 'фыва', 'name': 'anonius' }, '1230': { 'thread_num': '1230', 'post_num': '1234', - 'pic_link': '15906018690140.png', + 'pic_links': ['15906018690140.png'], 'txt': '33333!', 'name': 'SIRNA' }