Commit 475b7e13 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Tabs for the group pages.

parent aee07961
......@@ -70,6 +70,7 @@ $smarty = smarty(
)
);
$smarty->assign('heading', get_string('filesfor', 'artefact.file', $group->name));
$smarty->assign('groupid', $groupid);
$smarty->assign('INLINEJAVASCRIPT', $javascript);
$smarty->display('artefact:file:index.tpl');
......
......@@ -2,6 +2,7 @@
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
{if $groupid}{include file="group/tabstart.tpl" current="files"}{/if}
{str tag='fileinstructions' section='artefact.file'}
<div id="myfiles">
<div id="uploader"></div>
......@@ -17,5 +18,6 @@
<tbody><tr><th></th></tr></tbody>
</table>
</div>
{if $groupid}{include file="group/tabend.tpl"}{/if}
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
......@@ -74,6 +74,7 @@ $foruminfo = get_records_sql_array('
', array($id));
$smarty = smarty(array('paginator', 'groupmembersearch'), array(), array(), array('sideblocks' => array(interaction_sideblock($id, $role))));
$smarty->assign('group', $group);
$smarty->assign('groupid', $id);
$smarty->assign('query', $query);
$smarty->assign('results', $html);
$smarty->assign('pagination', $pagination['html']);
......
......@@ -1854,6 +1854,37 @@ span.viewicon {
}
/* GROUPS > VIEWING A GROUP */
#grouppage-container {
border: 1px solid #bbb;
clear: left;
padding: .5em;
}
#grouppage-tabs {
list-style-type: none;
}
#grouppage-tabs li {
float: left;
margin: 0 0 0 1em;
padding: 2px 5px;
border: 1px solid #bbb;
border-bottom-width: 0;
background-color: #ccc;
min-width: 5em;
text-align: center;
}
#grouppage-tabs a {
text-decoration: none;
font-weight: bold;
}
#grouppage-tabs li.current {
background-color: #fff;
}
#group-description {
margin-top: 0;
}
/* GROUPS > MY GROUPS */
#mygroupstable {
......
{* End of group info page - see group/tabstart.tpl for what this is closing *}
</div>
{* Tabs and beginning of page container for group info pages *}
<ul id="grouppage-tabs">
<li{if $current == 'info'} class="current"{/if}><a href="{$WWWROOT}group/view.php?id={$groupid|escape}">About</a></li>
<li{if $current == 'members'} class="current"{/if}><a href="{$WWWROOT}group/members.php?id={$groupid|escape}">Members</a></li>
<li{if $current == 'views'} class="current"{/if}><a href="{$WWWROOT}view/groupviews.php?group={$groupid|escape}">Views</a></li>
<li{if $current == 'files'} class="current"{/if}><a href="{$WWWROOT}artefact/file/groupfiles.php?group={$groupid|escape}">Files</a></li>
</ul>
<div id="grouppage-container">
......@@ -4,9 +4,9 @@
{include file="columnleftstart.tpl"}
<h2>{$group->name|escape}</h2>
<div style="border: 1px solid #006600;">
{if $group->description} <p>{$group->description}</p> {/if}
{include file="group/tabstart.tpl" current="info"}
{if $group->description}<p id="group-description">{$group->description}</p> {/if}
<ul>
<li>{str tag=groupadmins section=group}: {foreach name=admins from=$group->admins item=id}
......@@ -55,7 +55,7 @@
</tr>
</table>
</div>
{include file="group/tabend.tpl"}
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
......@@ -7,6 +7,7 @@
</span>
<h2>{$heading}</h2>
{if $groupid}{include file="group/tabstart.tpl" current="views"}{/if}
{if $views}
<table id="myviewstable">
......@@ -77,6 +78,7 @@
{else}
<div class="message">{str tag="noviews" section="view"}</div>
{/if}
{if $groupid}{include file="group/tabend.tpl"}{/if}
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
......
......@@ -56,7 +56,7 @@ $pagination = build_pagination(array(
));
$smarty = smarty();
$smarty->assign('group', $group);
$smarty->assign('groupid', $group);
$smarty->assign('views', $data->data);
$smarty->assign('pagination', $pagination['html']);
$smarty->assign('heading', get_string('groupviews'));
......
Markdown is supported
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