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