working nicely

This commit is contained in:
Ryan Peters
2023-05-17 21:44:41 -04:00
parent 8e7b9c9622
commit 400f20e916
10 changed files with 44 additions and 37 deletions

View File

@ -3,9 +3,11 @@
<textarea id="content" name="content" spellcheck="false">@Model.Text</textarea>
<div class="note-names">
@foreach (var note in Model.NoteNames)
@foreach (var note in Model.NoteNames.Order())
{
<a href="@note">@note</a>
var css = note.Equals(Model.CurrentNote, StringComparison.OrdinalIgnoreCase) ? "current" : null;
<a href="@note" class="@css">@note</a>
}
</div>