Passage à ASP.NET vNext
This commit is contained in:
parent
ea90fefc31
commit
388b004837
1929 changed files with 104611 additions and 235941 deletions
80
Yavsc/Views/Manage/Index.cshtml
Executable file
80
Yavsc/Views/Manage/Index.cshtml
Executable file
|
|
@ -0,0 +1,80 @@
|
|||
@model IndexViewModel
|
||||
@{
|
||||
ViewData["Title"] = @SR["Manage your account"];
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
<div>
|
||||
<h4>@SR["Change your account settings"]</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>@SR["UserName"]:</dt>
|
||||
|
||||
<dd>
|
||||
@Model.UserName
|
||||
[<a asp-controller="Manage"
|
||||
asp-action="CHUN">@SR["Change"]</a>]
|
||||
</dd>
|
||||
<dt>@SR["Password"]:</dt>
|
||||
<dd>[@if (Model.HasPassword)
|
||||
{<a asp-controller="Manage"
|
||||
asp-action="ChangePassword">@SR["Change"]</a>}
|
||||
else
|
||||
{<a asp-controller="Manage"
|
||||
asp-action="SetPassword">@SR["Create"]</a>}]</dd>
|
||||
<dt>@SR["External Logins"]:</dt>
|
||||
<dd>
|
||||
@Model.Logins.Count [<a asp-controller="Manage" asp-action="ManageLogins">@SR["Manage"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["Activity"]:</dt>
|
||||
<dd>@Model.Activity?.Name
|
||||
[<a asp-controller="Manage" asp-action="SetActivity"
|
||||
>@SR[@Model.Activity==null?"Set":"Modify settings"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["YourPosts"]:</dt>
|
||||
<dd>@Model.PostsCounter
|
||||
[<a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName">@SR["YourPosts"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["TwoFactorAuthentication"]:</dt>
|
||||
<dd>
|
||||
@if (Model.TwoFactor)
|
||||
{
|
||||
using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<text>@SR["Enabled"]
|
||||
<input type="submit" value="[@SR["Disable"]]" class="btn btn-link" />
|
||||
</text>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<text>@SR["Disabled"]
|
||||
<input type="submit" value="[@SR["Enable"]]" class="btn btn-link" />
|
||||
</text>
|
||||
}
|
||||
}
|
||||
</dd>
|
||||
<dt>@SR["Calendar"]</dt>
|
||||
<dd>
|
||||
@SR[Model.HasDedicatedCalendar?"Yes":"No"]
|
||||
[<a asp-action="SetGoogleCalendar">@SR["Select a Google calendar"]</a>]
|
||||
</dd>
|
||||
<dt>Credits:</dt>
|
||||
<dd>
|
||||
@(Model.Balance?.Credits ?? 0) €
|
||||
[<a asp-action="Credits">@SR["Manage"]</a>]
|
||||
</dd>
|
||||
</dl>
|
||||
<h4>
|
||||
<a asp-controller="Account" asp-action="Delete" >@SR["Unregister"]</a>
|
||||
</h4>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue