mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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&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&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>
|
||||
Reference in New Issue
Block a user