Commit c6dea210 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug #1440619: Counter for page visits also for profile page and group homepage"

parents 2c97a7cf 73dda0cd
......@@ -110,4 +110,6 @@ $smarty->assign('cancopy', group_can_create_groups());
$smarty->assign('returnto', 'view');
$smarty->assign('SUBPAGETOP', 'group/groupuserstatus.tpl');
$smarty->assign('headingclass', 'page-header');
$smarty->assign('lastupdatedstr', $view->lastchanged_message());
$smarty->assign('visitstring', $view->visit_message());
$smarty->display('group/view.tpl');
......@@ -8,5 +8,7 @@
<div class="grouphomepage">
{$viewcontent|safe}
</div>
<div class="metadata text-right">
{$lastupdatedstr}{if $visitstring}; {$visitstring}{/if}
</div>
{include file="footer.tpl"}
......@@ -137,4 +137,7 @@
</div>
</div>
<div class="metadata text-right">
{$lastupdatedstr}{if $visitstring}; {$visitstring}{/if}
</div>
{include file="footer.tpl"}
......@@ -353,6 +353,8 @@ $smarty->assign('viewtitle', get_string('usersprofile', 'mahara', display_name($
$smarty->assign('viewtype', 'profile');
$smarty->assign('PAGEHEADING', null);
$smarty->assign('user', $user);
$smarty->assign('lastupdatedstr', $view->lastchanged_message());
$smarty->assign('visitstring', $view->visit_message());
if ($loggedinid && $loggedinid == $userid) {
$smarty->assign('ownprofile', true);
}
......
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