1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Мелкие исправления

* Оформлен блок Активность
* Из блока Активность убран вывод блогов
* Из списка комментариев убран вывод блогов
This commit is contained in:
Denis Shakhov 2015-11-04 18:42:40 +07:00
parent b90661a0d0
commit a435efe7d3
5 changed files with 33 additions and 17 deletions

View file

@ -11,8 +11,7 @@
user = $comment->getUser()
topic = $topic
blog = $topic->getBlog()
date = $comment->getDate()
topicUrl = ( Config::Get('module.comment.use_nested') ) ? {router 'comments'} : "{$topic->getUrl()}#comment{$comment->getId()}"}
date = $comment->getDate()}
{foreachelse}
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
{/foreach}

View file

@ -1,14 +1,16 @@
{capture 'item_content'}
<a href="{$user->getUserWebPath()}" class="author">{$user->getDisplayName()}</a> &rarr;
<a href="{$blog->getUrlFull()}" class="blog-name">{$blog->getTitle()|escape}</a> &rarr;
<a href="{$smarty.local.topicUrl}">{$topic->getTitle()|escape}</a>
<a href="{$user->getUserWebPath()}" class="ls-activity-block-recent-user">{$user->getDisplayName()}</a> &rarr;
<a href="{$topic->getUrl()}">{$topic->getTitle()|escape}</a>
<p>
<time datetime="{date_format date=$smarty.local.date format='c'}">
<p class="ls-activity-block-recent-info">
<time datetime="{date_format date=$smarty.local.date format='c'}" class="ls-activity-block-recent-time">
{date_format date=$smarty.local.date hours_back="12" minutes_back="60" now="60" day="day H:i" format="j F Y"}
</time> |
</time>
{lang 'comments.comments_declension' count=$topic->getCountComment() plural=true}
<a href="{$topic->getUrl()}#comments" class="ls-activity-block-recent-comments">
{component 'icon' icon='comments'}
{lang 'comments.comments_declension' count=$topic->getCountComment() plural=true}
</a>
</p>
{/capture}

View file

@ -9,8 +9,7 @@
user = $topic->getUser()
topic = $topic
blog = $topic->getBlog()
date = $topic->getDatePublish()
topicUrl = $topic->getUrl()}
date = $topic->getDatePublish()}
{foreachelse}
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
{/foreach}

View file

@ -5,3 +5,22 @@
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
* @author Denis Shakhov <denis.shakhov@gmail.com>
*/
.ls-activity-block-recent-user {
font-weight: bold;
color: #333;
}
.ls-activity-block-recent-info {
margin-top: 5px;
color: #999;
font-size: 12px;
}
.ls-activity-block-recent-comments {
margin-left: 10px;
color: #666;
}
.ls-activity-block-recent-comments:hover {
color: #444;
}

View file

@ -73,15 +73,12 @@
{hook run='comment_comment_begin' params=$smarty.local.params}
{* Путь до комментария *}
{* TODO: Вынести в компонент topic, сделать универсальным *}
{if $smarty.local.showPath}
<div class="{$component}-path">
{$topic = $comment->getTarget()}
{$blog = $topic->getBlog()}
{$target = $comment->getTarget()}
<a href="{$blog->getUrlFull()}" class="{$component}-path-blog">{$blog->getTitle()|escape}</a> &rarr;
<a href="{$topic->getUrl()}" class="{$component}-path-topic">{$topic->getTitle()|escape}</a>
<a href="{$topic->getUrl()}#comments" class="{$component}-path-comments">({$topic->getCountComment()})</a>
<a href="{$target->getUrl()}" class="{$component}-path-target">{$target->getTitle()|escape}</a>
<a href="{$target->getUrl()}#comments" class="{$component}-path-comments">({$target->getCountComment()})</a>
</div>
{/if}