The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Settings.cshtml 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @model Teknik.Areas.Users.ViewModels.SettingsViewModel
  2. @{
  3. Layout = "~/Views/Shared/_Layout.cshtml";
  4. }
  5. @using Teknik.Areas.Users.ViewModels
  6. <div class="container">
  7. @if (!Model.Error)
  8. {
  9. <div class="row">
  10. <div class="col-sm-2">
  11. <!--left col-->
  12. <div class="panel panel-default">
  13. <ul class="list-group">
  14. <div class="panel-heading text-center"><strong>Personal Settings</strong></div>
  15. <a href="@Url.SubRouteUrl("account", "User.ProfileSettings")" class="list-group-item @(Model.Page == "Profile" ? "active" : string.Empty)">Profile</a>
  16. <a href="@Url.SubRouteUrl("account", "User.AccountSettings")" class="list-group-item @(Model.Page == "Account" ? "active" : string.Empty)">Account</a>
  17. <a href="@Url.SubRouteUrl("account", "User.SecuritySettings")" class="list-group-item @(Model.Page == "Security" ? "active" : string.Empty)">Security</a>
  18. <a href="@Url.SubRouteUrl("account", "User.InviteSettings")" class="list-group-item @(Model.Page == "Invite" ? "active" : string.Empty)">Invite Codes</a>
  19. <a href="@Url.SubRouteUrl("account", "User.BlogSettings")" class="list-group-item @(Model.Page == "Blog" ? "active" : string.Empty)">Blogging</a>
  20. <a href="@Url.SubRouteUrl("account", "User.UploadSettings")" class="list-group-item @(Model.Page == "Upload" ? "active" : string.Empty)">Uploads</a>
  21. </ul>
  22. </div>
  23. <div class="panel panel-default">
  24. <ul class="list-group">
  25. <a href="@Url.SubRouteUrl("account", "User.DeveloperSettings")" class="list-group-item @(Model.Page == "Developer" ? "active" : string.Empty)">Developer Settings</a>
  26. </ul>
  27. </div>
  28. </div><!--/col-2-->
  29. <div class="col-sm-10">
  30. @RenderBody()
  31. </div><!--/col-10-->
  32. </div><!--/row-->
  33. }
  34. else
  35. {
  36. <div class="row">
  37. <div class="col-sm-12 text-center">
  38. <h2>@Model.ErrorMessage</h2>
  39. </div>
  40. </div>
  41. }
  42. </div>