mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
@page
|
||
@model IndexModel
|
||
@using Remotely.Shared.Utilities
|
||
@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostEnv
|
||
@{
|
||
ViewData["Title"] = "Home";
|
||
|
||
}
|
||
|
||
@if (!User.Identity.IsAuthenticated)
|
||
{
|
||
<partial name="_IndexNotLoggedIn" model="Model" />
|
||
}
|
||
else
|
||
{
|
||
<div id="motdAlert" class="alert alert-info alert-dismissible mr-5" role="alert" hidden>
|
||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||
<span id="motdContentSpan">@Model.Motd</span>
|
||
</div>
|
||
|
||
@if (Model.IsNewVersionAvailable)
|
||
{
|
||
<div class="alert alert-info alert-dismissible mr-5" role="alert">
|
||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||
<span class="mr-1">A new version is available! Upgrade scripts:</span>
|
||
<a class="mr-1" href="~/Downloads/Ubuntu-Upgrade.sh">Ubuntu</a>
|
||
<a class="mr-1" href="~/Downloads/Windows-Upgrade.ps1">Windows</a>
|
||
<a class="mr-1" href="~/Downloads/CentOS-Upgrade.sh">CentOS</a>
|
||
</div>
|
||
}
|
||
|
||
<partial name="_LoadingWheel" model="Model" />
|
||
<partial name="_IndexLoggedIn" model="Model" />
|
||
} |