mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-10 22:08:39 +00:00
Display a lock icon next to locked levels (#738)
* Display a lock icon next to locked levels * C# Return Switch shenanigans * No clue where that line break came from * Don't render a semicolon * Move permission level color/lock icon to website extension * Simplify GetLevelLockIcon --------- Co-authored-by: Josh <josh@slendy.pw>
This commit is contained in:
parent
8e096052ce
commit
c50e53ad9a
5 changed files with 25 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
|||
@using LBPUnion.ProjectLighthouse.Database
|
||||
@using LBPUnion.ProjectLighthouse.Localization
|
||||
@using LBPUnion.ProjectLighthouse.Types.Users
|
||||
@using LBPUnion.ProjectLighthouse.Servers.Website.Extensions
|
||||
@model LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity
|
||||
|
||||
@{
|
||||
|
|
|
@ -54,13 +54,13 @@
|
|||
@if (showLink)
|
||||
{
|
||||
<h2>
|
||||
<a href="~/slot/@Model.SlotId">@slotName</a>
|
||||
<a href="~/slot/@Model.SlotId">@slotName</a> <i class="@Model.GetLevelLockIcon()"></i>
|
||||
</h2>
|
||||
}
|
||||
else
|
||||
{
|
||||
<h1>
|
||||
@slotName
|
||||
@slotName <i class="@Model.GetLevelLockIcon()"></i>
|
||||
</h1>
|
||||
}
|
||||
}
|
||||
|
@ -69,13 +69,13 @@
|
|||
@if (showLink)
|
||||
{
|
||||
<h3>
|
||||
<a href="~/slot/@Model.SlotId">@slotName</a>
|
||||
<a href="~/slot/@Model.SlotId">@slotName</a> <i class="@Model.GetLevelLockIcon()"></i>
|
||||
</h3>
|
||||
}
|
||||
else
|
||||
{
|
||||
<h3>
|
||||
@slotName
|
||||
@slotName <i class="@Model.GetLevelLockIcon()"></i>
|
||||
</h3>
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@using LBPUnion.ProjectLighthouse.Database
|
||||
@using LBPUnion.ProjectLighthouse.Localization
|
||||
@using LBPUnion.ProjectLighthouse.Types.Users
|
||||
@using LBPUnion.ProjectLighthouse.Servers.Website.Extensions;
|
||||
@model LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity
|
||||
|
||||
@{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue