Skip to content

Commit 1c16471

Browse files
committed
external links
1 parent 8a7ad1a commit 1c16471

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

poliloom-gui/.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ MEDIAWIKI_OAUTH_CLIENT_ID=your_client_id_here
77
MEDIAWIKI_OAUTH_CLIENT_SECRET=your_client_secret_here
88

99
# API Configuration
10-
API_BASE_URL=http://localhost:8000
10+
API_BASE_URL=http://localhost:8000
11+
12+
# Wikidata contributions page (optional, shown on stats page)
13+
NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL=

poliloom-gui/src/app/stats/page.tsx

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,29 @@ export default function StatsPage() {
333333
<div className="max-w-6xl mx-auto px-6 py-12">
334334
<div className="mb-8">
335335
<h1 className="text-3xl font-bold text-gray-900 mb-4">Community Stats</h1>
336-
<p className="text-lg text-gray-600">
337-
Track evaluation progress and coverage across countries.
338-
</p>
336+
<div className="flex items-baseline justify-between gap-4">
337+
<p className="text-lg text-gray-600">
338+
Track evaluation progress and coverage across countries.
339+
</p>
340+
{process.env.NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL && (
341+
<a
342+
href={process.env.NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL}
343+
target="_blank"
344+
rel="noopener noreferrer"
345+
className="text-indigo-600 hover:underline whitespace-nowrap inline-flex items-center gap-1"
346+
>
347+
View Wikidata contributions
348+
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
349+
<path
350+
strokeLinecap="round"
351+
strokeLinejoin="round"
352+
strokeWidth={2}
353+
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
354+
/>
355+
</svg>
356+
</a>
357+
)}
358+
</div>
339359
</div>
340360

341361
{loading && (
@@ -369,6 +389,12 @@ export default function StatsPage() {
369389
</HeaderedBox>
370390
</div>
371391
)}
392+
393+
<div className="text-center pt-8 pb-4">
394+
<Button href="https://www.opensanctions.org/impressum/" variant="secondary" size="small">
395+
Impressum
396+
</Button>
397+
</div>
372398
</div>
373399
</main>
374400
)

0 commit comments

Comments
 (0)