needed changes on template to make previous commit work

This commit is contained in:
Leah 2021-03-06 23:30:42 +01:00
parent 9f90eed214
commit 39f8df6ae9
1 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@ else {
@foreach (var dir in Model.Dirs) {
<li>
<a class="action" href="#">[--]</a>
<a href="?@Model.Path/@dir"> @dir</a>
<a class="dir" href="?@Model.Path/@dir"> @dir</a>
</li>
}
@foreach (var file in Model.Files) {
@ -36,7 +36,6 @@ else {
var lrcpath = System.IO.Path.Combine(Model.Fullpath, lrcfile);
<li>
<script>queue.push('@Html.Raw(jsfile)')</script>
<a class="action" href="@Html.Raw(IndexModel.Encode(Model.Fullpath + "/" + file))" download>[DL]</a>
@if (System.IO.File.Exists(lrcpath)) {
<a class="action" href="?@Model.Path/@lrcfile" target="_blank">[LRC]</a>
@ -44,7 +43,7 @@ else {
else if(Directory.GetFiles(@Model.Fullpath, "*.lrc").Length != 0) {
<a class="action">[---]</a>
}
<a href="#" onclick="playSong('@Html.Raw(jsfile)')"> @file</a>
<a class="file" href="@Html.Raw(IndexModel.Encode(Model.Fullpath + "/" + file))"> @file</a>
</li>
}
}