|
|
|
@ -39,84 +39,96 @@ |
|
|
|
|
|
|
|
|
|
<div class="col-md-9"> |
|
|
|
|
<div class="blog" id="post-{{ post.id_post }}"> |
|
|
|
|
<div class="panel panel-default"> |
|
|
|
|
<div class="panel panel-default" id="blog-header"> |
|
|
|
|
<div class="panel-heading"> |
|
|
|
|
<div id="post-action" class="text-right"> |
|
|
|
|
<div class="btn-group btn-group-sm" role="group" aria-label="{{ 'Actions'|get_lang }}"> |
|
|
|
|
{{ post.actions }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="panel-body"> |
|
|
|
|
<div id="blog-header"> |
|
|
|
|
<div id="post-action" class="pull-right"> |
|
|
|
|
<div class="btn-group btn-group-sm" role="group" aria-label="..."> |
|
|
|
|
{{ post.actions }} |
|
|
|
|
<article> |
|
|
|
|
<header> |
|
|
|
|
<div class="title"> |
|
|
|
|
<h1 title="{{ post.title }}">{{ post.title }}</h1> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="title"> |
|
|
|
|
<h1 title="{{ post.title }}">{{ post.title }}</h1> |
|
|
|
|
</div> |
|
|
|
|
<div class="info-post"> |
|
|
|
|
<span class="date"><i class="fa fa-clock-o"></i> {{ post.post_date }}</span> |
|
|
|
|
<span class='comments'><i |
|
|
|
|
class="fa fa-comment-o"></i> {{ post.n_comments }} {{ 'Comments' | get_lang }} </span> |
|
|
|
|
<span class="autor"><i class="fa fa-user"></i> |
|
|
|
|
<a href="{{ _p.web }}main/social/profile.php?u={{ post.id_author }}"> |
|
|
|
|
{{ post.author }} |
|
|
|
|
</a> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<ul class="info-post list-inline"> |
|
|
|
|
<li class="date"> |
|
|
|
|
<i class="fa fa-clock-o" aria-hidden="true"></i> {{ post.post_date }} |
|
|
|
|
</li> |
|
|
|
|
<li class="comments"> |
|
|
|
|
<i class="fa fa-comment-o" |
|
|
|
|
aria-hidden="true"></i> {{ 'XComments'|get_lang|format(post.n_comments) }} |
|
|
|
|
</li> |
|
|
|
|
<li class="autor"> |
|
|
|
|
<i class="fa fa-user" aria-hidden="true"></i> |
|
|
|
|
<a href="{{ _p.web }}main/social/profile.php?u={{ post.id_author }}">{{ post.author }}</a> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</header> |
|
|
|
|
<div class="content-post"> |
|
|
|
|
{{ post.content }} |
|
|
|
|
</div> |
|
|
|
|
{% if post.files %} |
|
|
|
|
<div class="well well-sm files"> |
|
|
|
|
<i class="fa fa-paperclip" aria-hidden="true"></i> <a |
|
|
|
|
href="download.php?file={{ post.files.path }}">{{ post.files.filename }}</a> |
|
|
|
|
</div> |
|
|
|
|
<aside class="well well-sm files"> |
|
|
|
|
<i class="fa fa-paperclip" aria-hidden="true"></i> |
|
|
|
|
<a href="download.php?file={{ post.files.path }}">{{ post.files.filename }}</a> |
|
|
|
|
</aside> |
|
|
|
|
{% endif %} |
|
|
|
|
<div class="comments-post"> |
|
|
|
|
<h3 class="title">{{ post.n_comments }} {{ 'Comments' | get_lang }} </h3> |
|
|
|
|
<div id="list-comments"> |
|
|
|
|
{% for item in post.comments %} |
|
|
|
|
<div class="media"> |
|
|
|
|
<div class="media-left"> |
|
|
|
|
<a href="{{ _p.web }}main/social/profile.php?u={{ item.id_author }}"> |
|
|
|
|
<img class="media-object thumbnail avatar" |
|
|
|
|
src="{{ item.info_user.dir }}{{ item.info_user.file }}" |
|
|
|
|
alt="{{ item.name_author }}"> |
|
|
|
|
</a> |
|
|
|
|
</article> |
|
|
|
|
<div class="comments-post"> |
|
|
|
|
<h3 class="title">{{ post.n_comments }} {{ 'Comments' | get_lang }} </h3> |
|
|
|
|
<ul id="list-comments" class="media-list"> |
|
|
|
|
{% for item in post.comments %} |
|
|
|
|
<li class="media"> |
|
|
|
|
<div class="media-left"> |
|
|
|
|
<a href="{{ _p.web }}main/social/profile.php?u={{ item.id_author }}"> |
|
|
|
|
<img class="media-object thumbnail avatar" |
|
|
|
|
src="{{ item.info_user.dir }}{{ item.info_user.file }}" |
|
|
|
|
alt="{{ item.name_author }}"> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<div class="media-body"> |
|
|
|
|
<div class="pull-right"> |
|
|
|
|
{{ item.actions }} |
|
|
|
|
</div> |
|
|
|
|
<div class="media-body"> |
|
|
|
|
<div class="pull-right"> |
|
|
|
|
{{ item.actions }} |
|
|
|
|
</div> |
|
|
|
|
<h4 class="media-heading">{{ item.title }}</h4> |
|
|
|
|
<div class="info-post"> |
|
|
|
|
<span class="date"><i class="fa fa-clock-o"></i> {{ item.comment_date }}</span> |
|
|
|
|
<span class="autor"><i class="fa fa-user"></i> |
|
|
|
|
<h4 class="media-heading">{{ item.title }}</h4> |
|
|
|
|
<ul class="info-post list-inline"> |
|
|
|
|
<li class="date"> |
|
|
|
|
<i class="fa fa-clock-o"></i> {{ item.comment_date }} |
|
|
|
|
</li> |
|
|
|
|
<li class="autor"> |
|
|
|
|
<i class="fa fa-user"></i> |
|
|
|
|
<a href="{{ _p.web }}main/social/profile.php?u={{ item.id_author }}"> |
|
|
|
|
{{ item.name_author }} |
|
|
|
|
</a> |
|
|
|
|
</span> |
|
|
|
|
<span class="score"><i class="fa fa-star" |
|
|
|
|
aria-hidden="true"></i> {{ item.score_ranking }}</span> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<li class="score"> |
|
|
|
|
<i class="fa fa-comment" aria-hidden="true"></i> {{ item.score_ranking }} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<div class="comment-content"> |
|
|
|
|
{{ item.content }} |
|
|
|
|
</div> |
|
|
|
|
{% if item.files %} |
|
|
|
|
<aside class="well well-sm files"> |
|
|
|
|
<i class="fa fa-paperclip" aria-hidden="true"></i> <a |
|
|
|
|
href="download.php?file={{ item.files.path }}">{{ item.files.filename }}</a> |
|
|
|
|
<p>{{ item.files.comment }}</p> |
|
|
|
|
</aside> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if item.files %} |
|
|
|
|
<div class="well well-sm files"> |
|
|
|
|
<i class="fa fa-paperclip" aria-hidden="true"></i> <a |
|
|
|
|
href="download.php?file={{ item.files.path }}">{{ item.files.filename }}</a> |
|
|
|
|
<p>{{ item.files.comment }}</p> |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<div class="ranking"> |
|
|
|
|
{{ item.form_ranking }} |
|
|
|
|
</div> |
|
|
|
|
<div class="ranking"> |
|
|
|
|
{{ item.form_ranking }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-post"> |
|
|
|
|
{{ post.form_html }} |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
{% endfor %} |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-post"> |
|
|
|
|
{{ post.form_html }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|