Skip to content

Commit

Permalink
View link for media list. Relates to #249.
Browse files Browse the repository at this point in the history
  • Loading branch information
impworks committed Dec 15, 2023
1 parent 530471f commit 0be2e4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bonsai/Areas/Admin/Views/Media/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
@using Bonsai.Data.Models
@using Humanizer
@using Impworks.Utils.Strings
@using Microsoft.AspNetCore.Mvc.TagHelpers

@{
ViewBag.Title = "Список медиа";
Expand Down Expand Up @@ -105,6 +104,10 @@
<a href="@Url.Action("Index", "Changesets", new {area = "Admin", entityId = m.Id})">
<span class="fa fa-database" title="История изменений"></span>
</a>

<a href="@(Url.Action("Index", "Home", new {area = "Front"}) + "#media-" + m.Key)" target="_blank">
<span class="fa fa-external-link-square" title="Просмотреть"></span>
</a>
</td>
</tr>
}
Expand Down

0 comments on commit 0be2e4b

Please sign in to comment.