This project is read-only.

Login/out button in the Garland-Revisited theme

Topics: Themes
Sep 5, 2012 at 10:57 AM


I just noticed that the Garland-Revisited theme does not have a login/logout button anywhere. unfortunately it is the only theme using razor, so I'm a bit lost as to how to get this functionality in site.cshtml.

Anyone that knows how?


Best regards
Johnny Vestergaard 

Sep 6, 2012 at 6:50 PM
Edited Sep 6, 2012 at 6:51 PM
The strings are defined at the very top of the site.cshtml file. All you have to do is add the following line in the site.cshtml file wherever you want to place your login button/link:
<a href="@loginUrl">@loginText</a>