|
|
|
@@ -3,42 +3,54 @@ |
|
|
|
} |
|
|
|
@model LinkModel |
|
|
|
|
|
|
|
<div class="text-center"> |
|
|
|
@if (!Model.IsValid) |
|
|
|
{ |
|
|
|
<p>This link has expired</p> |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
@if (Model.Share == true) |
|
|
|
<div class="modal-content modal"> |
|
|
|
<div class="share-files"> |
|
|
|
<div class="image-logo"> |
|
|
|
<img src="~/img/logo.png" alt=""> |
|
|
|
</div> |
|
|
|
<div class="image-logo"> |
|
|
|
<h1>Document ready!</h1> |
|
|
|
</div> |
|
|
|
@if (!Model.IsValid) |
|
|
|
{ |
|
|
|
@Url.Action("Link", "Home", new { id = Model.message.Id }, "https") |
|
|
|
<h1>Document expired</h1> |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
<div> |
|
|
|
@if (Model.TimeLeft != null) |
|
|
|
{ |
|
|
|
var time = Model.TimeLeft.Value; |
|
|
|
if (time.Days > 0) |
|
|
|
@if (Model.Share == true) |
|
|
|
{ |
|
|
|
<div class="label-text link-show"> |
|
|
|
@Url.Action("Link", "Home", new { id = Model.message.Id }, "https") |
|
|
|
</div> |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
<div> |
|
|
|
@if (Model.TimeLeft != null) |
|
|
|
{ |
|
|
|
<p>This message will expire in: @time.ToString("%d") days @time.ToString("%h") hours @time.ToString("%m") minutes</p> |
|
|
|
var time = Model.TimeLeft.Value; |
|
|
|
if (time.Days > 0) |
|
|
|
{ |
|
|
|
<h1>This message will expire in: @time.ToString("%d") days @time.ToString("%h") hours @time.ToString("%m") minutes</h1> |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
<h1>This message will expire in: @time.ToString(@"hh\:mm\:ss")</h1> |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
<p>This message will expire in: @time.ToString(@"hh\:mm\:ss")</p> |
|
|
|
<div class="label-text"> |
|
|
|
This message will expire when you leave this page |
|
|
|
</div> |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
<p>This message will expire when you leave this page</p> |
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
@* <div class="label-text"> *@ |
|
|
|
@* Message: @Model.message.Text *@ |
|
|
|
@* </div> *@ |
|
|
|
} |
|
|
|
<div> |
|
|
|
Message: @Model.message.Text |
|
|
|
</div> |
|
|
|
} |
|
|
|
<a class="btn btn-light" asp-controller="Home" asp-action="Index">Back</a> |
|
|
|
<a class="btn btn-light share-button" asp-controller="Home" asp-action="Index">Back</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |