From 514ddffd22144412f388c7ddee503e6ecd3ead83 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sun, 8 Apr 2018 23:41:51 -0400 Subject: [PATCH] Add link to report missing info in the community list --- css/80_app.css | 14 ++++++++++---- data/core.yaml | 2 ++ dist/locales/en.json | 4 +++- modules/ui/success.js | 15 ++++++++++++++- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/css/80_app.css b/css/80_app.css index 5b6567435..e49a92987 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -3630,6 +3630,11 @@ img.tile-debug { overflow-x: hidden; } +.save-success .link-out { + margin: 0px 5px; + white-space: nowrap; +} + .save-summary, .save-communityLinks { padding: 0px 20px 15px 20px; @@ -3674,10 +3679,6 @@ img.tile-debug { .community-languages:only-child { margin-top: 0; } -.save-summary .details { - margin: 0px 5px; - white-space: nowrap; -} .community-detail a.hide-toggle, .community-detail a:visited.hide-toggle { @@ -3710,6 +3711,11 @@ img.tile-debug { font-weight: bold; } +.community-missing { + padding: 10px; + text-align: center; +} + /* Splash Modal ------------------------------------------------------- */ diff --git a/data/core.yaml b/data/core.yaml index c9f28d8d6..6c3c59961 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -539,6 +539,8 @@ en: more: More events: Events languages: "Languages: {languages}" + missing: "Is something missing from this list?" + tell_us: "Tell us!" confirm: okay: "OK" cancel: "Cancel" diff --git a/dist/locales/en.json b/dist/locales/en.json index 4398a7948..e8d1784f2 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -655,7 +655,9 @@ "like_osm": "Like OpenStreetMap? Connect with others:", "more": "More", "events": "Events", - "languages": "Languages: {languages}" + "languages": "Languages: {languages}", + "missing": "Is something missing from this list?", + "tell_us": "Tell us!" }, "confirm": { "okay": "OK", diff --git a/modules/ui/success.js b/modules/ui/success.js index f8e1a6a97..69457029b 100644 --- a/modules/ui/success.js +++ b/modules/ui/success.js @@ -50,7 +50,7 @@ export function uiSuccess(context) { .append('p') .text(t('success.help_html')) .append('a') - .attr('class', 'details') + .attr('class', 'link-out') .attr('target', '_blank') .attr('tabindex', -1) .attr('href', t('success.help_link_url')) @@ -164,6 +164,19 @@ export function uiSuccess(context) { communityDetail .each(showCommunityDetails); + + communityLinks + .append('div') + .attr('class', 'community-missing') + .text(t('success.missing')) + .append('a') + .attr('class', 'link-out') + .attr('target', '_blank') + .attr('tabindex', -1) + .call(svgIcon('#icon-out-link', 'inline')) + .attr('href', 'https://github.com/osmlab/osm-community-index/issues') + .append('span') + .text(t('success.tell_us')); }