|
|
|
|
@ -2,22 +2,20 @@ |
|
|
|
|
|
|
|
|
|
{% load static %} |
|
|
|
|
|
|
|
|
|
{% block title %}Poker Rumble - {% endblock %} |
|
|
|
|
{% block title %}Poker Rumble - Your source of great poker content{% endblock %} |
|
|
|
|
|
|
|
|
|
{% block content %} |
|
|
|
|
{% if latest_post_list %} |
|
|
|
|
|
|
|
|
|
{% for post in latest_post_list %} |
|
|
|
|
|
|
|
|
|
<!-- <div class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}"> --> |
|
|
|
|
{% for post in latest_post_list %} |
|
|
|
|
|
|
|
|
|
<!-- A post --> |
|
|
|
|
<article> |
|
|
|
|
|
|
|
|
|
<div class="details lat_padding"> |
|
|
|
|
{{ post.date }} - {{ post.author.username }} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- A post --> |
|
|
|
|
{% if post.style == 0 %} |
|
|
|
|
|
|
|
|
|
<div class="imgcontainer"> |
|
|
|
|
@ -94,6 +92,18 @@ |
|
|
|
|
|
|
|
|
|
<iframe class="youtube" src="https://www.youtube.com/embed/{{ post.url }}"></iframe> |
|
|
|
|
|
|
|
|
|
<div class="post_padding"> |
|
|
|
|
<div class="details info"> |
|
|
|
|
<a href="{% url 'news:post' post.id %}">{% if post.comment_set.count > 0 %}{{ post.comment_set.count }} comment{% if post.comment_set.count > 1 %}s{% endif %}{% else %}write comment{% endif %}</a> |
|
|
|
|
</div> |
|
|
|
|
<!-- Some comments --> |
|
|
|
|
<div class="comments"> |
|
|
|
|
{% for comment in post.top_comments %} |
|
|
|
|
<span>{{ comment.body }} - {{ comment.author.username }}</span><br/> |
|
|
|
|
{% endfor %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<!-- {% if post.tag_set.count > 0 %} |
|
|
|
|
|