Ui fixes
This commit is contained in:
parent
17838bc78e
commit
34b4203cd1
10 changed files with 152 additions and 6 deletions
|
|
@ -21,7 +21,19 @@
|
|||
@foreach (var user in Model.Users) {
|
||||
<tr>
|
||||
<td>
|
||||
<img src="~/avatars/@(user.UserName).xs.png" alt="avatar"/>
|
||||
@if (user.UserId==User.GetUserId()) {
|
||||
<span class="badge badge-warning">You</span>
|
||||
}
|
||||
@if (SiteSettings.Value.Admin.EMail == user.Email) {
|
||||
<span class="badge badge-success">Admin</span>
|
||||
}
|
||||
@if (SiteSettings.Value.Owner.EMail == user.Email) {
|
||||
<span class="badge badge-success">Owner</span>
|
||||
}
|
||||
@if (!String.IsNullOrWhiteSpace(user.Avatar))
|
||||
{
|
||||
<img src="@user.Avatar" alt="avatar" class="user-icon"/>
|
||||
}
|
||||
<span> @user.UserName <@(user.Email)> </span>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
@model IEnumerable<CommandForm>
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Index";
|
||||
ViewBag.Title = Localizer["CommandForms"];
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr class="@(item.Context.Hidden?"disabled":null)">
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
<script src="~/lib/jquery-ui/jquery-ui.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
<title>@ViewBag.Title - Yavsc</title>
|
||||
@await RenderSectionAsync("header", false)
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue