Title fixes
This commit is contained in:
parent
5ee2a3b3c2
commit
ae7966a71d
|
@ -6,7 +6,7 @@
|
||||||
if (Model.LogConditionsMet)
|
if (Model.LogConditionsMet)
|
||||||
ViewData["Title"] = $"{HttpUtility.UrlDecode(Model.LogArtist)} - {Model.LogAlbum} ~ webmusic on .NET {Environment.Version}";
|
ViewData["Title"] = $"{HttpUtility.UrlDecode(Model.LogArtist)} - {Model.LogAlbum} ~ webmusic on .NET {Environment.Version}";
|
||||||
else
|
else
|
||||||
ViewData["Title"] = $"{Model.Displaypath} - webmusic on .NET {Environment.Version}";
|
ViewData["Title"] = $"{Model.Displaypath} ~ webmusic on .NET {Environment.Version}";
|
||||||
}
|
}
|
||||||
@if (Model.Path.Contains("/..")) {
|
@if (Model.Path.Contains("/..")) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
@using System.IO
|
@using System.IO
|
||||||
@model IndexModel
|
@model IndexModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = $"{Model.Path.Split("/").Last()} - webmusic on .NET {Environment.Version}";
|
ViewData["Title"] = $"{Model.Path.Split("/").Last()} ~ webmusic on .NET {Environment.Version}";
|
||||||
}
|
}
|
||||||
@if (Model.Path.Contains("/..")) {
|
@if (Model.Path.Contains("/..")) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue