Update code to properly format the AS Tags
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user