Update code to properly format the AS Tags

This commit is contained in:
2023-06-14 13:07:02 -07:00
parent 7b6794e7e9
commit 9c80ad14f3
6 changed files with 92 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
@using Microsoft.Extensions.DependencyInjection
@inject IConfiguration Configuration
@model List<AS1024.CommunityDocumentationPage.Models.Result>
@model List<AS1024.CommunityDocumentationPage.Models.CommunityTag>
@{
ViewData["Title"] = "BGP Communities";
}
@@ -20,10 +20,10 @@
</thead>
@foreach (var item in Model) {
<tr>
<td scope="row">@item.Name</td>
<td scope="row">@item.FormattedVaule</td>
<td scope="row">@item.Description</td>
<td scope="row">
@foreach (var tags in item.Tags) {
@foreach (var tags in item.Tag) {
<div class="d-inline-flex p-2 text-white" style="background-color:#@tags.color">@tags.display</div>
}
</td>