File tree Expand file tree Collapse file tree 2 files changed +38
-3
lines changed
app/components/modules/project/components/overview/about-section Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,42 @@ SPDX-License-Identifier: MIT
1414 class =" flex flex-col gap-2 text-xs"
1515 >
1616 <div class =" text-neutral-400 font-semibold" >First commit</div >
17- <div class =" text-neutral-900" >
18- {{ formatFirstCommit(project.firstCommit) }}
19- </div >
17+ <lfx-tooltip :disabled =" !project.firstCommitUrl" >
18+ <template
19+ v-if =" project .firstCommitUrl "
20+ #content
21+ >
22+ <div class =" flex items-center gap-1 text-white" >
23+ <lfx-icon
24+ name =" github"
25+ type =" brands"
26+ :size =" 14"
27+ />
28+ <span class =" text-xs font-semibold" >View commit</span >
29+ <lfx-icon
30+ name =" arrow-up-right-from-square"
31+ type =" regular"
32+ :size =" 14"
33+ class =" text-neutral-400"
34+ />
35+ </div >
36+ </template >
37+ <a
38+ v-if =" project.firstCommitUrl"
39+ :href =" project.firstCommitUrl"
40+ target =" _blank"
41+ rel =" noopener noreferrer"
42+ class =" text-neutral-900 hover:underline"
43+ >
44+ {{ formatFirstCommit(project.firstCommit) }}
45+ </a >
46+ <span
47+ v-else
48+ class =" text-neutral-900"
49+ >
50+ {{ formatFirstCommit(project.firstCommit) }}
51+ </span >
52+ </lfx-tooltip >
2053 </div >
2154 <div class =" flex flex-col gap-2 text-xs" >
2255 <div class =" text-neutral-400 font-semibold flex items-center gap-1" >
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export interface Project {
3333 tags ?: string [ ] ;
3434 languages ?: ProjectLanguage [ ] ;
3535 firstCommit ?: string ;
36+ firstCommitUrl ?: string ;
3637 projectLinks ?: ProjectLink [ ] ;
3738 connectedPlatforms : string [ ] ;
3839 score : number ;
@@ -89,6 +90,7 @@ export interface ProjectTinybird {
8990 twitter ?: string ;
9091 widgets : string [ ] ;
9192 firstCommit ?: string ;
93+ firstCommitUrl ?: string ;
9294 connectedPlatforms : string [ ] ;
9395 repoData : ProjectRepoData [ ] ;
9496}
You can’t perform that action at this time.
0 commit comments