File tree Expand file tree Collapse file tree 2 files changed +33
-4
lines changed
Expand file tree Collapse file tree 2 files changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,7 @@ MEDIAWIKI_OAUTH_CLIENT_ID=your_client_id_here
77MEDIAWIKI_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 =
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments