updated: issue groups(view group, view topic)
This commit is contained in:
parent
19c4261efb
commit
8bdb1af1e0
5 changed files with 52 additions and 23 deletions
|
@ -5,7 +5,7 @@
|
|||
{include file="$style_dir/blocks/manage/account_menu.html"}
|
||||
<div class="cb-box marginBottom row">
|
||||
|
||||
<div class="col-md-2 leftSidebar">
|
||||
<div class="col-md-2">
|
||||
{include file="$style_dir/blocks/group/group_left.html"}
|
||||
</div>
|
||||
<div class="col-md-7 nopadding ">
|
||||
|
|
|
@ -4,26 +4,38 @@
|
|||
{/if}
|
||||
|
||||
{if $topics}
|
||||
{foreach from=$topics item=topic}
|
||||
{assign var=user value=$userquery->get_user_details($topic.userid)}
|
||||
{if $topic.last_poster}
|
||||
{assign var=last_poster value=$userquery->get_user_details($topic.last_poster)}
|
||||
{else}
|
||||
{assign var=last_poster value=''}
|
||||
{/if}
|
||||
<li class="topicRow clearfix">
|
||||
<div class="topicStarterAvatar moveL">
|
||||
<i class="topicStarterAvatarBG" style="background:url({avatar details=$user }) center no-repeat; width:48px; height:48px;"><a href="{$userquery->profile_link($user)}">{$user.username}</a></i>
|
||||
</div>
|
||||
<div class="moveR" style="width:90%;">
|
||||
<h2 class="topicStarter"><a href="{$userquery->profile_link($user)}">{$user.username}</a></h2>
|
||||
<div class="topicPreviewContainer clearfix">
|
||||
<h4 class="topicTitle"><a href="{$cbgroup->topic_link($topic)}">{$topic.topic_title}</a></h4>
|
||||
<div style="height:2px;"></div>
|
||||
<div class="topicPreview">{$topic.topic_post|description|strip_tags|truncate:100}</div>
|
||||
<ul style="padding-left:0px;">
|
||||
{foreach from=$topics item=topic}
|
||||
{assign var=user value=$userquery->get_user_details($topic.userid)}
|
||||
{if $topic.last_poster}
|
||||
{assign var=last_poster value=$userquery->get_user_details($topic.last_poster)}
|
||||
{else}
|
||||
{assign var=last_poster value=''}
|
||||
{/if}
|
||||
<li class="topicRow clearfix" style="border-bottom:1px solid #ccc; padding:15px 0;">
|
||||
<!-- <div class="topicStarterAvatar moveL">
|
||||
<i class="topicStarterAvatarBG" style="background:url({avatar details=$user }) center no-repeat; width:48px; height:48px;"><a href="{$userquery->profile_link($user)}">{$user.username}</a></i>
|
||||
</div>
|
||||
|
||||
<div class="itemdiv">
|
||||
<div class="user">
|
||||
<a href="{$userquery->profile_link($user)}">
|
||||
<span>{$user.username}</span>
|
||||
<img class="img-circle" src="{avatar details=$user }">
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="moveR" style="width:90%;">
|
||||
<!-- <h2 class="topicStarter" style="margin:0;"><a href="{$userquery->profile_link($user)}">{$user.username}</a></h2> -->
|
||||
<div class="topicPreviewContainer clearfix">
|
||||
<h4 class="topicTitle"><a href="{$cbgroup->topic_link($topic)}">{$topic.topic_title}</a></h4>
|
||||
<div style="height:2px;"></div>
|
||||
<div class="topicPreview">{$topic.topic_post|description|strip_tags|truncate:100}</div>
|
||||
</div>
|
||||
<span style="font:normal 10px Tahoma; color:#464646">{$topic.date_added|niceTime} – Added by <a href="{$userquery->profile_link($user)}"> {$user.username} </a> –{if $last_poster}{lang code="last_reply"} {lang code="by"} <a href="{$userquery->profile_link($last_poster)}">{$last_poster.username}</a> ({$topic.last_post_time|niceTime}){else}<a href="{$cbgroup->topic_link($topic)}">Participate</a>{/if} {if has_access('admin_access') || $topic.userid == $userquery->userid} – <a href="javascript:void(0)" id="delete_topic-{$topic.topic_id}" onmousedown="delete_item('delete_topic','{$topic.topic_id}','{lang code="tp_del_confirm"}','?mode=view_topics&topic_action=delete&topic_id={$topic.topic_id}&url={$group.group_url}');">Delete</a>{/if}</span>
|
||||
</div>
|
||||
<span style="font:normal 10px Tahoma; color:#464646">{$topic.date_added|niceTime} – {if $last_poster}{lang code="last_reply"} {lang code="by"} <a href="{$userquery->profile_link($last_poster)}">{$last_poster.username}</a> ({$topic.last_post_time|niceTime}){else}<a href="{$cbgroup->topic_link($topic)}">Participate</a>{/if} {if has_access('admin_access') || $topic.userid == $userquery->userid} – <a href="javascript:void(0)" id="delete_topic-{$topic.topic_id}" onmousedown="delete_item('delete_topic','{$topic.topic_id}','{lang code="tp_del_confirm"}','?mode=view_topics&topic_action=delete&topic_id={$topic.topic_id}&url={$group.group_url}');">Delete</a>{/if}</span>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
|
@ -5,7 +5,7 @@
|
|||
<div class="cb-box marginBottom row">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 leftSidebar">
|
||||
<div class="col-md-2">
|
||||
{include file="$style_dir/blocks/group/group_left.html"}
|
||||
</div>
|
||||
<div class="col-md-7 nopadding ">
|
||||
|
|
|
@ -229,6 +229,16 @@ overflow: hidden;
|
|||
.dropdown-submenu:hover>a:after{border-left-color:#ffffff;}
|
||||
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}
|
||||
|
||||
.topic_title{font-weight:bold; display:block; color:#000000; border-bottom:1px solid #aaa; padding-bottom:5px; margin-bottom:5px;}
|
||||
.topic_title a{font-weight:bold; display:block; color:#333; text-decoration:none}
|
||||
.topic_title a:hover{color:#06c}
|
||||
|
||||
.add_topic{padding:5px; height:18px; line-height:16px; display:inline-block; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; background-color:#E6F0FF; margin-bottom:5px; cursor:pointer;font-weight:bold;}
|
||||
.add_topic:hover{color:#06c}
|
||||
.add_topic img{display:inline; float:left; margin-right:5px 0px; }
|
||||
|
||||
.add_topic_container{margin:auto;background:#FFF url(../images/simple_gradient.png) repeat-x bottom; border:1px solid #ccc; padding:5px; margin-bottom:10px}
|
||||
|
||||
@media (max-width: 981px) {
|
||||
.groups-view {
|
||||
min-height: 160px;
|
||||
|
|
|
@ -34,8 +34,15 @@ if($tdetails)
|
|||
//Calling all functions when a topic is called
|
||||
call_view_topic_functions($tdetails);
|
||||
}
|
||||
|
||||
$glist['exclude'] = $tdetails['group_id'];
|
||||
$glist['limit'] = 10;
|
||||
$groups = $cbgroup->get_groups($glist);
|
||||
Assign('groups', $groups);
|
||||
}
|
||||
|
||||
|
||||
|
||||
template_files('view_topic.html');
|
||||
display_it();
|
||||
?>
|
Loading…
Add table
Reference in a new issue