Skip to content

Commit

Permalink
Static files for the blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayIT committed Jan 7, 2020
1 parent bbe095a commit 93f04e6
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ Settings: @this.Model.SettingsCount
<td>@remoteMonitorRequest.Title</td>
<td>@remoteMonitorRequest.RegexPattern</td>
<td>@remoteMonitorRequest.ActualValue</td>
<td>@remoteMonitorRequest.Ok</td>
<td>
@if (remoteMonitorRequest.Ok)
{
<span class="text-success"><i class="fa fa-check"></i></span>
}
else
{
<span class="text-danger"><i class="fa fa-times"></i></span>
}
</td>
</tr>
}
</table>
3 changes: 1 addition & 2 deletions src/Web/BlogSystem.Web/ViewComponents/MenuViewComponent.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace BlogSystem.Web.ViewComponents
{
using System.Linq;
using System.Threading.Tasks;

using BlogSystem.Data.Common.Repositories;
using BlogSystem.Data.Models;
Expand All @@ -19,7 +18,7 @@ public MenuViewComponent(IDeletableEntityRepository<Page> pagesRepository)
this.pagesRepository = pagesRepository;
}

public async Task<IViewComponentResult> InvokeAsync()
public IViewComponentResult Invoke()
{
var menuItems = this.pagesRepository
.All()
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 93f04e6

Please sign in to comment.