1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01: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,
Paid = paid,
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>,
Email = string.IsNullOrWhiteSpace(email) ? null : email,
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 UserEmail { 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 string Email { get; set; }
public string Action { get; set; }
}
}

View File

@ -43,7 +43,7 @@
{
<tr>
<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>
@org.Plan

View File

@ -33,7 +33,7 @@
{
<tr>
<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>
<span title="@user.CreationDate.ToString()">