Verlinkung zu externen URLs für Article hinzugefügt.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { fade } from "svelte/transition"
|
||||
import { _ } from "svelte-i18n"
|
||||
// import { navigate } from "svelte-routing"
|
||||
|
||||
import TibiArticleMediaFile from "./TibiArticleMediaFile.svelte"
|
||||
@@ -86,6 +87,14 @@
|
||||
<div class="article-teaser">{@html article?.content?.types?.teaser}</div>
|
||||
{/if}
|
||||
|
||||
{#if article?.link?.url}
|
||||
<a
|
||||
href="{article?.link?.url}"
|
||||
target="{article?.link?.target ? article?.link?.target : '_self'}"
|
||||
class="article-link">{@html article?.link?.text ? article?.link?.text : $_("details")}</a
|
||||
>
|
||||
{/if}
|
||||
|
||||
{#if article?.content?.types?.details && showDetails}
|
||||
<div class="article-details">{@html article?.content?.types?.details}</div>
|
||||
{/if}
|
||||
@@ -104,6 +113,14 @@
|
||||
<div class="article-teaser">{@html article?.content?.types?.teaser}</div>
|
||||
{/if}
|
||||
|
||||
{#if article?.link?.url}
|
||||
<a
|
||||
href="{article?.link?.url}"
|
||||
target="{article?.link?.target ? article?.link?.target : '_self'}"
|
||||
class="article-link">{@html article?.link?.text ? article?.link?.text : $_("details")}</a
|
||||
>
|
||||
{/if}
|
||||
|
||||
{#if article?.content?.types?.details && showDetails}
|
||||
<div class="article-details">{@html article?.content?.types?.details}</div>
|
||||
{/if}
|
||||
@@ -131,9 +148,18 @@
|
||||
<div class="article-teaser">{@html article?.content?.types?.teaser}</div>
|
||||
{/if}
|
||||
|
||||
{#if article?.link?.url}
|
||||
<a
|
||||
href="{article?.link?.url}"
|
||||
target="{article?.link?.target ? article?.link?.target : '_self'}"
|
||||
class="article-link">{@html article?.link?.text ? article?.link?.text : $_("details")}</a
|
||||
>
|
||||
{/if}
|
||||
|
||||
{#if article?.content?.types?.details && showDetails}
|
||||
<div class="article-details">{@html article?.content?.types?.details}</div>
|
||||
{/if}
|
||||
|
||||
{#if article?.content?.types?.media?.files?.length}
|
||||
<TibiArticleMediaFile
|
||||
collectionName="articles"
|
||||
@@ -165,6 +191,14 @@
|
||||
<div class="article-teaser">{@html article?.content?.types?.teaser}</div>
|
||||
{/if}
|
||||
|
||||
{#if article?.link?.url}
|
||||
<a
|
||||
href="{article?.link?.url}"
|
||||
target="{article?.link?.target ? article?.link?.target : '_self'}"
|
||||
class="article-link">{@html article?.link?.text ? article?.link?.text : $_("details")}</a
|
||||
>
|
||||
{/if}
|
||||
|
||||
{#if article?.content?.types?.details && showDetails}
|
||||
<div class="article-details">{@html article?.content?.types?.details}</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user