1acceb941d
Print all links through new uri.js component Refactor the router to use more predictable parsing Fix linking to entities with weird names (that contain slashes, + etc.)
15 lines
762 B
Smarty
15 lines
762 B
Smarty
<div class='content-wrapper' id='user'>
|
|
<h1><%- ctx.user.name %></h1>
|
|
<nav class='buttons'><!--
|
|
--><ul><!--
|
|
--><li data-name='summary'><a href='<%- ctx.formatClientLink('user', ctx.user.name) %>'>Summary</a></li><!--
|
|
--><% if (ctx.canEditAnything) { %><!--
|
|
--><li data-name='edit'><a href='<%- ctx.formatClientLink('user', ctx.user.name, 'edit') %>'>Account settings</a></li><!--
|
|
--><% } %><!--
|
|
--><% if (ctx.canDelete) { %><!--
|
|
--><li data-name='delete'><a href='<%- ctx.formatClientLink('user', ctx.user.name, 'delete') %>'>Account deletion</a></li><!--
|
|
--><% } %><!--
|
|
--></ul><!--
|
|
--></nav>
|
|
<div id='user-content-holder'></div>
|
|
</div>
|