From c46655402b52c07a8f5932d1c8ce2898a543e36a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 12 Jun 2013 15:44:34 +0200 Subject: [PATCH] Small optimizations --- .../install/files/acp/templates/tagAdd.tpl | 24 ++++++---------- .../install/files/acp/templates/tagList.tpl | 28 ++++++++++--------- .../files/lib/acp/form/TagEditForm.class.php | 3 +- wcfsetup/install/lang/de.xml | 2 +- wcfsetup/install/lang/en.xml | 2 +- 5 files changed, 28 insertions(+), 31 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/tagAdd.tpl b/wcfsetup/install/files/acp/templates/tagAdd.tpl index cc34816c99..c3b312e913 100644 --- a/wcfsetup/install/files/acp/templates/tagAdd.tpl +++ b/wcfsetup/install/files/acp/templates/tagAdd.tpl @@ -13,19 +13,13 @@ {/if}
- {hascontent} - - {/hascontent} +
@@ -99,9 +93,9 @@ {elseif $tagObj|isset}
-
+
- {lang}wcf.acp.tag.synonyms.isSynonym{/lang} + {$synonym->name}
{/if} diff --git a/wcfsetup/install/files/acp/templates/tagList.tpl b/wcfsetup/install/files/acp/templates/tagList.tpl index 513b413b20..11ad852106 100644 --- a/wcfsetup/install/files/acp/templates/tagList.tpl +++ b/wcfsetup/install/files/acp/templates/tagList.tpl @@ -15,19 +15,21 @@ {if $items}
-
{lang}wcf.acp.tag.list.search{/lang} +
+ {lang}wcf.acp.tag.list.search{/lang} +
-
+
- +
- -
- - {@SID_INPUT_TAG} -
+
+ +
+ + {@SID_INPUT_TAG}
{/if} @@ -55,8 +57,8 @@ {lang}wcf.global.objectID{/lang} {lang}wcf.acp.tag.name{/lang} - {lang}wcf.acp.tag.usageCount{/lang} - {lang}wcf.acp.tag.languageID{/lang} + {lang}wcf.acp.tag.usageCount{/lang} + {lang}wcf.acp.tag.languageID{/lang} {lang}wcf.acp.tag.synonymFor{/lang} {event name='columnHeads'} @@ -73,10 +75,10 @@ {event name='rowButtons'} {#$tag->tagID} - {$tag->name} - {if $tag->synonymFor === null}{#$tag->usageCount}{/if} + {$tag->name} + {if $tag->synonymFor === null}{#$tag->usageCount}{/if} {if $tag->languageName !== null}{$tag->languageName} ({$tag->languageCode}){/if} - {if $tag->synonymFor !== null}{$tag->synonymName}{/if} + {if $tag->synonymFor !== null}{$tag->synonymName}{/if} {event name='columns'} diff --git a/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php b/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php index 6d6323635e..d592a3b2db 100644 --- a/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php @@ -134,7 +134,8 @@ class TagEditForm extends TagAddForm { WCF::getTPL()->assign(array( 'tagObj' => $this->tagObj, - 'action' => 'edit' + 'action' => 'edit', + 'synonym' => (($this->tagObj !== null && $this->tagObj->synonymFor) ? new Tag($this->tagObj->synonymFor) : null) )); } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 7dbc9a8469..5e0817a5e5 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1061,7 +1061,7 @@ - + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index ac47898dda..63f4099e16 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1060,7 +1060,7 @@ Examples for medium ID detection: - + -- 2.20.1