1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-15 18:18:12 -05:00

Adjust listing link for view/edit

This commit is contained in:
Kyle Spearrin 2018-03-23 09:48:36 -04:00
parent 2cf9127ef1
commit 1b313e6df4
6 changed files with 8 additions and 4 deletions

View File

@ -50,7 +50,8 @@ namespace Bit.Admin.Controllers
UserEmail = string.IsNullOrWhiteSpace(userEmail) ? null : userEmail, UserEmail = string.IsNullOrWhiteSpace(userEmail) ? null : userEmail,
Paid = paid, Paid = paid,
Page = page, Page = page,
Count = count Count = count,
Action = _globalSettings.SelfHosted ? "View" : "Edit"
}); });
} }

View File

@ -47,7 +47,8 @@ namespace Bit.Admin.Controllers
Items = users as List<User>, Items = users as List<User>,
Email = string.IsNullOrWhiteSpace(email) ? null : email, Email = string.IsNullOrWhiteSpace(email) ? null : email,
Page = page, Page = page,
Count = count Count = count,
Action = _globalSettings.SelfHosted ? "View" : "Edit"
}); });
} }

View File

@ -7,5 +7,6 @@ namespace Bit.Admin.Models
public string Name { get; set; } public string Name { get; set; }
public string UserEmail { get; set; } public string UserEmail { get; set; }
public bool? Paid { get; set; } public bool? Paid { get; set; }
public string Action { get; set; }
} }
} }

View File

@ -5,5 +5,6 @@ namespace Bit.Admin.Models
public class UsersModel : PagedModel<User> public class UsersModel : PagedModel<User>
{ {
public string Email { get; set; } public string Email { get; set; }
public string Action { get; set; }
} }
} }

View File

@ -43,7 +43,7 @@
{ {
<tr> <tr>
<td> <td>
<a asp-action="Edit" asp-route-id="@org.Id">@org.Name</a> <a asp-action="@Model.Action" asp-route-id="@org.Id">@org.Name</a>
</td> </td>
<td> <td>
@org.Plan @org.Plan

View File

@ -33,7 +33,7 @@
{ {
<tr> <tr>
<td> <td>
<a asp-action="Edit" asp-route-id="@user.Id">@user.Email</a> <a asp-action="@Model.Action" asp-route-id="@user.Id">@user.Email</a>
</td> </td>
<td> <td>
<span title="@user.CreationDate.ToString()"> <span title="@user.CreationDate.ToString()">