mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
added version display, fix #15
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
<UserSecretsId>d21486de-a812-47eb-a419-05682bb68856</UserSecretsId>
|
<UserSecretsId>d21486de-a812-47eb-a419-05682bb68856</UserSecretsId>
|
||||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
|
<Version>0.1.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@@ -50,6 +50,8 @@ namespace BirdsiteLive.Controllers
|
|||||||
[Route("/nodeinfo/{id}.json")]
|
[Route("/nodeinfo/{id}.json")]
|
||||||
public IActionResult NodeInfo(string id)
|
public IActionResult NodeInfo(string id)
|
||||||
{
|
{
|
||||||
|
var version = System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(3);
|
||||||
|
|
||||||
if (id == "2.0")
|
if (id == "2.0")
|
||||||
{
|
{
|
||||||
var nodeInfo = new NodeInfoV20
|
var nodeInfo = new NodeInfoV20
|
||||||
@@ -66,7 +68,7 @@ namespace BirdsiteLive.Controllers
|
|||||||
software = new Software()
|
software = new Software()
|
||||||
{
|
{
|
||||||
name = "birdsitelive",
|
name = "birdsitelive",
|
||||||
version = "0.1.0"
|
version = version
|
||||||
},
|
},
|
||||||
protocols = new[]
|
protocols = new[]
|
||||||
{
|
{
|
||||||
@@ -101,7 +103,7 @@ namespace BirdsiteLive.Controllers
|
|||||||
software = new SoftwareV21()
|
software = new SoftwareV21()
|
||||||
{
|
{
|
||||||
name = "birdsitelive",
|
name = "birdsitelive",
|
||||||
version = "0.1.0",
|
version = version,
|
||||||
repository = "https://github.com/NicolasConstant/BirdsiteLive"
|
repository = "https://github.com/NicolasConstant/BirdsiteLive"
|
||||||
},
|
},
|
||||||
protocols = new[]
|
protocols = new[]
|
||||||
|
@@ -36,11 +36,14 @@
|
|||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class="border-top footer text-muted">
|
<footer class="border-top footer text-muted">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a href="https://github.com/NicolasConstant/BirdsiteLive">Github</a> @*<a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>*@
|
|
||||||
</div>
|
<a href="https://github.com/NicolasConstant/BirdsiteLive">Github</a> @*<a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>*@
|
||||||
</footer>
|
|
||||||
|
<span style="float: right;">BirdsiteLIVE @System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(3)</span>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||||
|
Reference in New Issue
Block a user