Skip to content

Instantly share code, notes, and snippets.

@johnpapa
Created May 3, 2012 13:19
Show Gist options
  • Save johnpapa/2585548 to your computer and use it in GitHub Desktop.
Save johnpapa/2585548 to your computer and use it in GitHub Desktop.
<%@ Page
Inherits="ViewPage<GenericPresentationModel<object>>"
Language="C#"
MasterPageFile="~/Views/Shared/Site.master" %>
<asp:Content runat="server" ContentPlaceHolderID="ViewHead">
<%
Bundles.Reference("Content/New/Styles/App.less");
Bundles.Reference("Content/New/Scripts");
Bundles.AddPageData("accountData", Model.Model);
Bundles.AddInlineScript(@"
$(function() {
Barium.RouteEngine.register('details', new Barium.Account.DetailsViewModel(accountData.user));
Barium.RouteEngine.register('password', new Barium.Account.PasswordViewModel());
Barium.RouteEngine.register('picture', new Barium.Account.PictureViewModel());
Barium.RouteEngine.register('delete', new Barium.Account.DeleteAccountViewModel(accountData.domains));
Barium.RouteEngine.run('#/details');
})
");
%>
<%: Bundles.RenderStylesheets() %>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ViewBody">
<div class="portletcontainer span4">
<ul class="nav nav-pills nav-stacked sidebar">
<li><a href="#/details"><%: Resources.Resource.userPersonalization %></a></li>
<li><a href="#/password"><%: Resources.Resource.changePassword %></a></li>
<li><a href="#/picture"><%: Resources.Resource.profilePicture %></a></li>
<li><a href="#/delete"><%: Resources.Resource.delete %></a></li>
</ul>
</div>
<div class="overflow">
<div class="tab-content">
<% Html.RenderPartial("Edit/Details"); %>
<% Html.RenderPartial("Edit/Password"); %>
<% Html.RenderPartial("Edit/Picture"); %>
<% Html.RenderPartial("Edit/Delete"); %>
</div>
</div>
<%: Bundles.RenderScripts() %>
</asp:Content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment