Add link to report missing info in the community list

This commit is contained in:
Bryan Housel
2018-04-08 23:41:51 -04:00
parent c35b4906fd
commit 514ddffd22
4 changed files with 29 additions and 6 deletions

View File

@@ -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
------------------------------------------------------- */

View File

@@ -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"

View File

@@ -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",

View File

@@ -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'));
}