Files
yavsc/Yavsc/Views/Administration/Index.cshtml
2017-05-27 16:22:25 +02:00

45 lines
844 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model AdminViewModel
@{ 
ViewBag.Title = SR["Administration"];
}
<h2>@ViewBag.Title</h2>
<h3>Rôles</h3>
<ul>
@foreach (var role in Model.Roles) {
<li>@Html.ActionLink(role.Name,"Role",new { id=role.Id }) (@role.Users.Length membres)</li>
}
</ul>
<h3>Administrateurs</h3>
<dl><dt>
Nombre </dt><dd> @Model.AdminCount</dd>
<dt>Êtes-vous administrateur?</dt>
<dd>@(Model.YouAreAdmin?"Oui":"Non")</dd>
</dl>
<p>
</p>
<h3>Utilisateurs</h3>
<span class="badge">
<a asp-action="UserList" asp-controller="Account">
@Model.UserCount</a></span>
<h3>Logiciel</h3>
<dl>
<dt>Cette librairie
</dt>
<dd>@ViewBag.ThisAssembly
</dd>
<dt>Version du runtime
</dt>
<dd>@ViewBag.RunTimeVersion
</dd>
</dl>
<h3>Coiffure</h3>
<a asp-controller="HairTaints" class="btn btn-primary">
Gestion des couleurs
</a>