Commit 8155575f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove 'shared views' option under group views

parent 3c3a158e
......@@ -6,6 +6,7 @@
{/foreach}
</ul>
</div>
{*
{if $groupviews && $member}
<ul id="groupviewoptions">
<li{if !$shared} class="current"{/if}>
......@@ -16,4 +17,5 @@
</li>
</ul>
{/if}
*}
<div id="grouppage-container">
......@@ -53,18 +53,18 @@ $can_edit = group_user_can_edit_views($groupid);
$smarty = smarty();
$smarty->assign('heading', $group->name);
if ($shared) {
$data = View::get_sharedviews_data($limit, $offset, $groupid);
$smarty->assign('shared', true);
}
else {
//if ($shared) {
// $data = View::get_sharedviews_data($limit, $offset, $groupid);
// $smarty->assign('shared', true);
//}
//else {
if ($can_edit) {
$data = View::get_myviews_data($limit, $offset, $groupid);
}
else {
$data = View::view_search(null, $groupid, $limit, $offset);
}
}
//}
$userid = $USER->get('id');
......@@ -85,7 +85,7 @@ $smarty->assign('member', $member);
$smarty->assign('views', $data->data);
$smarty->assign('pagination', $pagination['html']);
if ($can_edit && !$shared) {
if ($can_edit) { // && !$shared) {
$smarty->display('view/index.tpl');
} else {
$smarty->display('view/sharedviews.tpl');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment