Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Commit

Permalink
Fix path prefix for logos and local generated avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenWeathers committed Jul 15, 2021
1 parent 5a8be45 commit 1417277
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions webapp/src/components/UserAvatar.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script>
import { _ } from '../i18n'
const { PathPrefix } = appConfig
export let avatarService = ''
export let userId = ''
export let avatar = ''
Expand All @@ -20,7 +22,7 @@
src="https://robohash.org/{userId}.png?set={avatar}&size={width}x{width}"
alt="{$_('avatarAltText')}" />
{:else if avatarService === 'govatar'}
<img src="/avatar/{width}/{userId}/{avatar}" alt="{$_('avatarAltText')}" />
<img src="{PathPrefix}/avatar/{width}/{userId}/{avatar}" alt="{$_('avatarAltText')}" />
{:else if avatarService === 'goadorable'}
<img src="/avatar/{width}/{userId}" alt="{$_('avatarAltText')}" />
<img src="{PathPrefix}/avatar/{width}/{userId}" alt="{$_('avatarAltText')}" />
{/if}
6 changes: 3 additions & 3 deletions webapp/src/pages/Landing.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
export let xfetch
export let eventTag
const { ShowActiveCountries } = appConfig
const { ShowActiveCountries, PathPrefix } = appConfig
</script>

<style>
Expand Down Expand Up @@ -189,7 +189,7 @@
<div class="flex-initial px-4">
<a href="https://thunderdome.dev">
<img
src="/img/thunderdome-logo.png"
src="{PathPrefix}/img/thunderdome-logo.png"
alt="Thunderdome logo"
title="Thunderdome - Open Source Agile Planning
Poker tool"
Expand All @@ -202,7 +202,7 @@
<div class="flex-initial px-4">
<a href="https://exothermic.dev">
<img
src="/img/exothermic-logo.png"
src="{PathPrefix}/img/exothermic-logo.png"
alt="Exothermic logo"
title="Exothermic - Open Source Agile Story
Mapping tool"
Expand Down

0 comments on commit 1417277

Please sign in to comment.