Commit 73dda0cd authored by Liam's avatar Liam Committed by Robert Lyon

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

behatnotneeded

Change-Id: I8bec1baf76707b2fb275480b7a1d0e88b722d953
parent 8aea91fd
......@@ -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