Skip to content

Commit

Permalink
Make second column breadcrumbs clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfs committed Jan 24, 2025
1 parent 86b8f43 commit d0dcc15
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/components/IssueSecondColumn.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import DropdownListItem from "./DropdownListItem.svelte";
import Icon from "./Icon.svelte";
import IssueTeaser from "@app/components/IssueTeaser.svelte";
import Link from "./Link.svelte";
import OutlineButton from "./OutlineButton.svelte";
import Popover, { closeFocused } from "./Popover.svelte";
Expand Down Expand Up @@ -76,7 +77,15 @@
style:white-space="nowrap">
{title}
<Icon name="chevron-right" />
Issues
<Link
underline={false}
route={{
resource: "repo.issues",
rid: repo.rid,
status: "open",
}}>
Issues
</Link>
</div>

<div class="global-flex" style:margin-left="1rem">
Expand Down
11 changes: 10 additions & 1 deletion src/views/repo/Patch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import InlineTitle from "@app/components/InlineTitle.svelte";
import LabelInput from "@app/components/LabelInput.svelte";
import Layout from "./Layout.svelte";
import Link from "@app/components/Link.svelte";
import OutlineButton from "@app/components/OutlineButton.svelte";
import PatchStateBadge from "@app/components/PatchStateBadge.svelte";
import PatchStateButton from "@app/components/PatchStateButton.svelte";
Expand Down Expand Up @@ -345,7 +346,15 @@
<div class="global-flex" style:gap="4px">
{project.data.name}
<Icon name="chevron-right" />
Patches
<Link
underline={false}
route={{
resource: "repo.patches",
rid: repo.rid,
status: "open",
}}>
Patches
</Link>
</div>

<Popover popoverPositionRight="0" popoverPositionTop="2.5rem">
Expand Down

0 comments on commit d0dcc15

Please sign in to comment.