Skip to content

Commit

Permalink
Display tags on package page (bagetter#82)
Browse files Browse the repository at this point in the history
* display tags on package page

* - tags are styled
- css formatted via Prettier in VS Code
  • Loading branch information
FroggieFrog authored Feb 26, 2024
1 parent 78ef62c commit 1bbbb9e
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 167 deletions.
14 changes: 14 additions & 0 deletions src/BaGetter.Web/Pages/Package.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,20 @@ else
<p>@string.Join(", ", Model.Package.Authors)</p>
</div>
}

@if (Model.Package.Tags.Any())
{
<div>
<h2>Tags</h2>

<p>
@foreach(var tag in Model.Package.Tags)
{
<span class="tag">@tag</span>
}
</p>
</div>
}
</aside>
</div>
}
Expand Down
Loading

0 comments on commit 1bbbb9e

Please sign in to comment.