issue #2073 add raw_name in tags property

We present the raw version in the input, and on the rendered version there's a small globe to show that there's a difference between the rendered and raw versions.

We have also modified the album title in the album edit page. The rendered version is now displayed, we keep the raw version in the input field.
This commit is contained in:
Willy "Linty
2023-12-22 10:20:49 +01:00
parent dca43a71bc
commit 06e0b50043
4 changed files with 33 additions and 12 deletions
+4 -1
View File
@@ -56,7 +56,7 @@ if (!$.cookie("pwg_tags_per_page")) {
{function name=tagContent}
{function tagContent}
<p class='tag-name'>{$tag_name}</p>
<p class='tag-name {($tag_raw_name !== $tag_name) ? 'icon-globe' : ''}' data-rawname="{$tag_raw_name}">{$tag_name}</p>
<a class="icon-ellipsis-vert showOptions"></a>
<div class="tag-dropdown-block dropdown">
<div class="dropdown-content">
@@ -197,6 +197,7 @@ if (!$.cookie("pwg_tags_per_page")) {
tag_U_EDIT = 'admin.php?page=batch_manager&amp;filter=tag-%s'|@sprintf:$tag['id']
has_image = ($tag.counter > 0)
tag_count = $tag.counter
tag_raw_name = $tag.raw_name
}
{else}
{tagContent
@@ -205,6 +206,7 @@ if (!$.cookie("pwg_tags_per_page")) {
tag_U_EDIT = 'admin.php?page=batch_manager&amp;filter=tag-%s'|@sprintf:$tag['id']
has_image = false
tag_count = 0
tag_raw_name = $tag.raw_name
}
{/if}
@@ -256,5 +258,6 @@ if (!$.cookie("pwg_tags_per_page")) {
tag_U_EDIT='%U_EDIT%'
has_image=false
tag_count='%count%'
tag_raw_name = '%raw_name%'
}
</div>