Fix downloader bug, use plink and add icon to plugin template

This commit is contained in:
2025-12-28 13:28:50 -06:00
parent abe5ce7fba
commit 2eff24d67b
12 changed files with 21 additions and 17 deletions

View File

@@ -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>