Commit ef835efe authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Replace hardcoded urls on choose template page

Bug #1006634, part 3

These need to continue to use ids rather than clean urls, because
javascript on the page parses the href attribute for user and group
ids.  It's still better to use the appropriate url functions anyway,
to reduce the number of hardcoded urls.  Because clicks on these links
are intercepted by javascript to display a preview window, users will
not end up at these unclean urls unless they have disabled javascript.

Change-Id: I6d0378c6c65d066d030958e96510f78bfd366a69
Signed-off-by: default avatarRichard Mansfield <>
parent bbb85f00
......@@ -26,10 +26,10 @@
{if $row.institution}
<td class="owner s">{$row.sharedby}</td>
{elseif $}
<td class="owner s"><a class="grouplink" href="{$WWWROOT}group/view.php?id={$}" target="_blank">{$row.sharedby}</a></td>
<td class="owner s"><a class="grouplink" href="{group_homepage_url($row.groupdata, true, true)}" target="_blank">{$row.sharedby}</a></td>
{elseif $row.owner}
<td class="ownericon s">
<a class="userlink" href="{$WWWROOT}user/view.php?id={$row.owner}" target="_blank">
<a class="userlink" href="{profile_url($row.user, true, true)}" target="_blank">
<div class="profile-icon-container"><img src="{profile_icon_url user=$row.user maxwidth=20 maxheight=20}" alt=""></div>
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