Skip to content

Commit 6feb558

Browse files
committed
Powered by footer for .NET version
1 parent d94815f commit 6feb558

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

src/Minigun/Areas/Home/Views/_Layout.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<main role="main" class="w-screen">
1515
@RenderBody()
1616
</main>
17+
<footer class="fixed bottom-0 right-0 p-2 text-xs text-gray-500">
18+
@await Component.InvokeAsync("RuntimeInfo")
19+
</footer>
1720
</div>
1821
</body>
1922
</html>

src/Minigun/Areas/Shared/_Layout.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<div id="minigun-content" class="flex-1 overflow-y-auto">
2828
@RenderBody()
2929
</div>
30+
<footer class="fixed bottom-0 right-0 p-2 text-xs text-gray-500">
31+
@await Component.InvokeAsync("RuntimeInfo")
32+
</footer>
3033
</main>
3134
</div>
3235
</body>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using System.Runtime.InteropServices;
3+
4+
namespace Minigun.ViewComponents
5+
{
6+
public class RuntimeInfoViewComponent : ViewComponent
7+
{
8+
public IViewComponentResult Invoke()
9+
{
10+
var runtimeVersion = RuntimeInformation.FrameworkDescription;
11+
return View("Default", runtimeVersion);
12+
}
13+
}
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@model string
2+
3+
<span>Powered by @Model</span>

src/Minigun/wwwroot/css/tailwind.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)