Skip to content

Commit

Permalink
Add activiry webfeed links
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Sep 24, 2024
1 parent 635cf02 commit 7c5f900
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/components/AreaActivity.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { LatestTagger, TaggerSkeleton, TopButton } from '$lib/comp';
import { type ActivityEvent, type User } from '$lib/types.js';
export let alias: string;
export let name: string;
export let dataInitialized: boolean;
export let eventElements: ActivityEvent[];
Expand All @@ -18,6 +19,13 @@
let taggerDiv: HTMLDivElement;
</script>

<section id="feeds">
<div class="w-full rounded-3xl border border-statBorder dark:bg-white/10 p-3">
<p><a class="text-center font-semibold text-link" href="https://api.btcmap.org/feeds/new-places/{alias}">New Places Atom Feed</a></p>
<p class="mt-2"><a class="text-center font-semibold text-link mt-6" href="https://api.btcmap.org/feeds/new-comments/{alias}">New Comments Atom Feed</a></p>
</div>
</section>

<section id="taggers">
<div class="w-full rounded-3xl border border-statBorder dark:bg-white/10">
<h3
Expand Down
3 changes: 2 additions & 1 deletion src/components/AreaPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
let areaReports: Report[];
let avatar: string;
const alias = data.id;
const name = data.name;
let continent: Continents;
let org: string | undefined;
Expand Down Expand Up @@ -421,7 +422,7 @@
{:else if activeSection === Sections.stats}
<AreaStats {name} {filteredElements} {areaReports} />
{:else if activeSection === Sections.activity}
<AreaActivity {name} {dataInitialized} {eventElements} {taggers} />
<AreaActivity {alias} {name} {dataInitialized} {eventElements} {taggers} />
{:else if activeSection === Sections.maintain}
<IssuesTable
title="{name || 'BTC Map Area'} Tagging Issues"
Expand Down

0 comments on commit 7c5f900

Please sign in to comment.