Skip to content

Instantly share code, notes, and snippets.

@Hiranyaloka
Created April 15, 2015 19:23
Show Gist options
  • Save Hiranyaloka/66606642f80eb871f66a to your computer and use it in GitHub Desktop.
Save Hiranyaloka/66606642f80eb871f66a to your computer and use it in GitHub Desktop.
shinycms issue #60
[%- IF c.user_exists %]
You are logged in as <a href="[% c.uri_for( '/user' ) %]">[% ( c.user.display_name || c.user.username ) | html %]</a>. <a href="[% c.uri_for( '/user', 'edit' ) %]">Click here</a> to edit your profile, or here to <a href="[% c.uri_for( '/user', 'logout' ) %]">logout</a>.
[%- ELSE %]
<a href="[% c.uri_for( '/user', 'login' ) %]">Login</a>
[%- IF c.controller('User').allow_registration.upper == 'YES' -%]
or <a href="[% c.uri_for( '/user', 'register' ) %]">register an account.</a>
[%- END -%]
[%- END %]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment