Skip to content

Commit

Permalink
open github repo url on new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 30, 2024
1 parent 3d6ca1f commit 1d710dc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions webui/src/Containers/Home/MainContent/MainContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,29 +127,31 @@ const MainContent: FC<MainContentProps> = (props) => {
</Path>
)}
</Link>

<div>
{item.tags
?.filter((x) => x)
.map((tag, index) => (
<Tag key={index}>{tag}</Tag>
))}
</div>
{item.repositoryUrl && (
<div>
<GithubOutline
size={18}
color={"#fff"}
style={{ marginRight: 10 }}
/>
<LinkGithubRepo href={item.repositoryUrl!}>
<LinkGithubRepo
href={item.repositoryUrl!}
target="_blank"
>
{item.repositoryUrl.replace(
"https://github.com/",
""
)}
</LinkGithubRepo>
</div>
)}
<div>
{item.tags
?.filter((x) => x)
.map((tag, index) => (
<Tag key={index}>{tag}</Tag>
))}
</div>
</div>
{_.get(item, "recentRuns.0.status") && (
<BuildHistory
Expand Down

0 comments on commit 1d710dc

Please sign in to comment.