mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-30 21:45:01 +03:00
Мелкие исправления
* Оформлен блок Активность * Из блока Активность убран вывод блогов * Из списка комментариев убран вывод блогов
This commit is contained in:
parent
b90661a0d0
commit
a435efe7d3
|
@ -11,8 +11,7 @@
|
||||||
user = $comment->getUser()
|
user = $comment->getUser()
|
||||||
topic = $topic
|
topic = $topic
|
||||||
blog = $topic->getBlog()
|
blog = $topic->getBlog()
|
||||||
date = $comment->getDate()
|
date = $comment->getDate()}
|
||||||
topicUrl = ( Config::Get('module.comment.use_nested') ) ? {router 'comments'} : "{$topic->getUrl()}#comment{$comment->getId()}"}
|
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
{capture 'item_content'}
|
{capture 'item_content'}
|
||||||
<a href="{$user->getUserWebPath()}" class="author">{$user->getDisplayName()}</a> →
|
<a href="{$user->getUserWebPath()}" class="ls-activity-block-recent-user">{$user->getDisplayName()}</a> →
|
||||||
<a href="{$blog->getUrlFull()}" class="blog-name">{$blog->getTitle()|escape}</a> →
|
<a href="{$topic->getUrl()}">{$topic->getTitle()|escape}</a>
|
||||||
<a href="{$smarty.local.topicUrl}">{$topic->getTitle()|escape}</a>
|
|
||||||
|
|
||||||
<p>
|
<p class="ls-activity-block-recent-info">
|
||||||
<time datetime="{date_format date=$smarty.local.date format='c'}">
|
<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"}
|
{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>
|
</p>
|
||||||
{/capture}
|
{/capture}
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
user = $topic->getUser()
|
user = $topic->getUser()
|
||||||
topic = $topic
|
topic = $topic
|
||||||
blog = $topic->getBlog()
|
blog = $topic->getBlog()
|
||||||
date = $topic->getDatePublish()
|
date = $topic->getDatePublish()}
|
||||||
topicUrl = $topic->getUrl()}
|
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
|
@ -5,3 +5,22 @@
|
||||||
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
|
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
|
||||||
* @author Denis Shakhov <denis.shakhov@gmail.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;
|
||||||
|
}
|
|
@ -73,15 +73,12 @@
|
||||||
{hook run='comment_comment_begin' params=$smarty.local.params}
|
{hook run='comment_comment_begin' params=$smarty.local.params}
|
||||||
|
|
||||||
{* Путь до комментария *}
|
{* Путь до комментария *}
|
||||||
{* TODO: Вынести в компонент topic, сделать универсальным *}
|
|
||||||
{if $smarty.local.showPath}
|
{if $smarty.local.showPath}
|
||||||
<div class="{$component}-path">
|
<div class="{$component}-path">
|
||||||
{$topic = $comment->getTarget()}
|
{$target = $comment->getTarget()}
|
||||||
{$blog = $topic->getBlog()}
|
|
||||||
|
|
||||||
<a href="{$blog->getUrlFull()}" class="{$component}-path-blog">{$blog->getTitle()|escape}</a> →
|
<a href="{$target->getUrl()}" class="{$component}-path-target">{$target->getTitle()|escape}</a>
|
||||||
<a href="{$topic->getUrl()}" class="{$component}-path-topic">{$topic->getTitle()|escape}</a>
|
<a href="{$target->getUrl()}#comments" class="{$component}-path-comments">({$target->getCountComment()})</a>
|
||||||
<a href="{$topic->getUrl()}#comments" class="{$component}-path-comments">({$topic->getCountComment()})</a>
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue