mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-02-08 17:45:45 +00:00
Fix downloader bug, use plink and add icon to plugin template
This commit is contained in:
@@ -2,16 +2,6 @@ func Components.PersonalListDescription(tytd,name,editing)
|
||||
{
|
||||
var description = tytd.GetPersonalListDescription(name);
|
||||
var first=true;
|
||||
var description_with_br = "";
|
||||
each(var txt : description.Split("\n"))
|
||||
{
|
||||
if(!first)
|
||||
{
|
||||
description_with_br += <br>;
|
||||
}
|
||||
description_with_br += Net.Http.HtmlEncode(txt);
|
||||
first=false;
|
||||
}
|
||||
<return>
|
||||
<if(editing)>
|
||||
<true>
|
||||
@@ -32,7 +22,7 @@ func Components.PersonalListDescription(tytd,name,editing)
|
||||
<false>
|
||||
<div class="row" id="description">
|
||||
<div class="max">
|
||||
<p><raw(description_with_br)></p>
|
||||
<plink(description)>
|
||||
</div>
|
||||
<div class="min">
|
||||
<button hx-get={$"./edit-personal-description?name={Net.Http.UrlEncode(name)}"} hx-target="#description" hx-swap="outerHTML"><i>edit</i></button>
|
||||
|
||||
@@ -20,7 +20,7 @@ func Pages.VideoInfo(tytd,ctx)
|
||||
<div class="min">
|
||||
<h4>{vi.title}</h4>
|
||||
<a class="underline" href={$"./channel?id={Net.Http.UrlEncode(vi.channelId)}"}>{vi.author}</a>
|
||||
<p>{vi.shortDescription}</p>
|
||||
<plink(vi.shortDescription)>
|
||||
</div>
|
||||
|
||||
</div>;
|
||||
|
||||
Reference in New Issue
Block a user