Skip to content

Commit

Permalink
Merge pull request #130 from lukmarcus/noisy-master
Browse files Browse the repository at this point in the history
Site link url name
  • Loading branch information
noisy committed Apr 4, 2024
2 parents 97dc5b7 + afe4e96 commit ae0ad00
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
29 changes: 19 additions & 10 deletions src/components/ProjectInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,25 @@
/>
<strong>Company:</strong> {{ project.companyName }}
</li>
<li class="mb-2 mb-xl-4">
<font-awesome-icon
icon="external-link-alt"
class="me-3 text-primary"
transform="grow-6 down-2"
/>
<strong>Site Link: </strong>
<a :href="project.archivedUrl || project.url">{{ project.url }}</a>
<span v-if="project.archivedUrl"> (archived)</span>
</li>
<template v-if="project.url || project.urlName">
<li class="mb-2 mb-xl-4">
<font-awesome-icon
icon="external-link-alt"
class="me-3 text-primary"
transform="grow-6 down-2"
/>
<strong>Site Link: </strong>
<template v-if="project.url">
<a :href="project.archivedUrl || project.url">{{
project.urlName || project.url
}}</a>
<span v-if="project.archivedUrl"> (archived)</span>
</template>
<template v-else>
{{ project.urlName }}
</template>
</li>
</template>
<li class="mb-2 mb-xl-4">
<font-awesome-icon
icon="wrench"
Expand Down
3 changes: 2 additions & 1 deletion src/types/IProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export interface IProjectFilter extends IFilter {
export interface IProject {
name: string;
slug: string;
url: string;
url?: string;
urlName?: string;
archivedUrl?: string;
type: string;
companyName?: string;
Expand Down

0 comments on commit ae0ad00

Please sign in to comment.