Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
player
Commits
64aac104
Commit
64aac104
authored
Apr 08, 2022
by
David Trattnig
Browse files
Make avatar link optional
parent
cfdd8a58
Pipeline
#1796
passed with stages
in 7 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/cards/HostCardAvatar.svelte
View file @
64aac104
...
...
@@ -10,7 +10,6 @@
</script>
<style lang="scss">
.card-media-overlay {
background-color: var(--mdc-theme-on-secondary);
border: 0;
...
...
@@ -33,12 +32,26 @@
.card-media-overlay * {
margin: 0;
}
</style>
<template>
<Card class="aura-card host">
<PrimaryAction on:click={openLink(urlHostDetail + host.id)}>
{#if urlHostDetail}
<PrimaryAction on:click={openLink(urlHostDetail + host.id)}>
<Media
class="card-media-square mdc-card--outlined host-avatar"
aspectRatio="square"
style={host.image ? 'background-image:url(' + host.image + ');' : ''}>
{#if displayOverlay == true}
<div class="card-media-overlay">
<span class="name mdc-typography--headline6">
<Display value={host.name} {renderhtml} />
</span>
</div>
{/if}
</Media>
</PrimaryAction>
{:else}
<Media
class="card-media-square mdc-card--outlined host-avatar"
aspectRatio="square"
...
...
@@ -51,6 +64,6 @@
</div>
{/if}
</Media>
</PrimaryAction>
{/if}
</Card>
</template>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment