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

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