Skip to content

Commit 8e074e4

Browse files
committed
fix template
1 parent 5d5c93a commit 8e074e4

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

templates/__linksWsdbRecord.tpl

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<li class="wsdbLinkListItem">
2-
<a
3-
href="{$view->record->externalUrl}"
4-
class="button buttonPrimary wsdbLink externalURL"
5-
rel="nofollow"
6-
{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}
7-
>
8-
{lang}dev.hanashi.wsdb.linkButton{/lang}
9-
</a>
10-
</li>
1+
{if $view->database->enableLinks && $view->record->externalUrl}
2+
<li class="wsdbLinkListItem">
3+
<a
4+
href="{$view->record->externalUrl}"
5+
class="button buttonPrimary wsdbLink externalURL"
6+
rel="nofollow"
7+
{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}
8+
>
9+
{lang}dev.hanashi.wsdb.linkButton{/lang}
10+
</a>
11+
</li>
12+
{/if}

0 commit comments

Comments
 (0)