@model IndexViewModel
@{
ViewData["Title"] = @SR["Manage your account"];
}
@ViewData["Title"]
@ViewData["StatusMessage"]
@SR["Change your account settings"]
- @SR["UserName"]:
-
@Model.UserName
[@SR["Change"]]
@if (Model.Roles.Count()>0) {
- @SR["Roles"]:
-
@string.Join(", ",Model.Roles)
}
- @SR["Password"]:
- [@if (Model.HasPassword)
{@SR["Change"]}
else
{@SR["Create"]}]
- @SR["External Logins"]:
-
@Model.Logins.Count [@SR["Manage"]]
- @SR["Full name"]:
- @Model.FullName [@SR[@Model.FullName==null?"Set":"Modify"]]
- @SR["Address"]:
- @Model.PostalAddress
[@SR[@Model.PostalAddress==null?"Set":"Modify"]]
- @SR["Avatar"]:
-
@Model.Avatar
[@SR[@Model.Avatar==null?"Set":"Modify"]]
- @SR["Activity"]:
- @Model.Activity?.Name
[@SR[@Model.Activity==null?"Set":"Modify settings"]]
- @SR["Bank info"]:
- @Html.DisplayFor(m => m.BankInfo) [@SR[@Model.BankInfo==null?"Set":"Modify"]]
- @SR["YourPosts"]:
- @Model.PostsCounter
[@SR["YourPosts"]]
- @SR["TwoFactorAuthentication"]:
-
@if (Model.TwoFactor)
{
using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@SR["Enabled"]
}
}
else
{
using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@SR["Disabled"]
}
}
- @SR["Calendar"]
-
@SR[Model.HasDedicatedCalendar?"Yes":"No"]
[@SR["Select a Google calendar"]]
- Credits:
-
@(Model.Balance?.Credits ?? 0) €
[@SR["Manage"]]
- Usage disque
-
@if (Model.DiskQuota>0)
{
@((Model.DiskUsage/Model.DiskQuota).ToString("%#0")) :
}
@(Model.DiskUsage.ToString("0,#")) / @(Model.DiskQuota.ToString("0,#"))