Move link to imagery faq, reword as "Imagery Info / Report a Problem"

(closes #4546)
This commit is contained in:
Bryan Housel
2018-01-03 15:23:47 -05:00
parent 46ebe02555
commit 04fa29cfe6
4 changed files with 23 additions and 19 deletions
+1
View File
@@ -2246,6 +2246,7 @@ div.full-screen > button:hover {
.imagery-faq {
margin-bottom: 10px;
white-space: nowrap;
}
.layer-list, .controls-list {
+1 -1
View File
@@ -380,7 +380,7 @@ en:
custom_button: Edit custom background
custom_prompt: "Enter a tile URL template. Valid tokens are:\n - {zoom}/{z}, {x}, {y} for Z/X/Y tile scheme\n - {ty} for flipped TMS-style Y coordinates\n - {u} for quadtile scheme\n - {switch:a,b,c} for DNS server multiplexing\n\nExample:\n{example}"
overlays: Overlays
imagery_source_faq: Where does this imagery come from?
imagery_source_faq: Imagery Info / Report a Problem
reset: reset
display_options: Display Options
brightness: Brightness
+1 -1
View File
@@ -468,7 +468,7 @@
"custom_button": "Edit custom background",
"custom_prompt": "Enter a tile URL template. Valid tokens are:\n - {zoom}/{z}, {x}, {y} for Z/X/Y tile scheme\n - {ty} for flipped TMS-style Y coordinates\n - {u} for quadtile scheme\n - {switch:a,b,c} for DNS server multiplexing\n\nExample:\n{example}",
"overlays": "Overlays",
"imagery_source_faq": "Where does this imagery come from?",
"imagery_source_faq": "Imagery Info / Report a Problem",
"reset": "reset",
"display_options": "Display Options",
"brightness": "Brightness",
+20 -17
View File
@@ -192,10 +192,11 @@ export function uiBackground(context) {
function renderBackgroundList(selection) {
var container = selection.selectAll('layer-background-list')
.data([0]);
// the background list
var container = selection.selectAll('.layer-background-list')
.data([0]);
_backgroundList = container.enter()
.append('ul')
.attr('class', 'layer-list layer-background-list')
@@ -204,7 +205,7 @@ export function uiBackground(context) {
// add minimap toggle below list
var minimapEnter = selection.selectAll('minimap-toggle-list')
var minimapEnter = selection.selectAll('.minimap-toggle-list')
.data([0])
.enter()
.append('ul')
@@ -231,11 +232,26 @@ export function uiBackground(context) {
minimapLabelEnter
.append('span')
.text(t('background.minimap.description'));
// "Info / Report a Problem" link
selection.selectAll('.imagery-faq')
.data([0])
.enter()
.append('div')
.attr('class', 'imagery-faq')
.append('a')
.attr('target', '_blank')
.attr('tabindex', -1)
.call(svgIcon('#icon-out-link', 'inline'))
.attr('href', 'https://github.com/openstreetmap/iD/blob/master/FAQ.md#how-can-i-report-an-issue-with-background-imagery')
.append('span')
.text(t('background.imagery_source_faq'));
}
function renderOverlayList(selection) {
var container = selection.selectAll('layer-overlay-list')
var container = selection.selectAll('.layer-overlay-list')
.data([0]);
_overlayList = container.enter()
@@ -345,19 +361,6 @@ export function uiBackground(context) {
.content(renderBackgroundList)
);
// "Where does this imagery come from?"
// pane
// .append('div')
// .attr('class', 'imagery-faq')
// .append('a')
// .attr('target', '_blank')
// .attr('tabindex', -1)
// .call(svgIcon('#icon-out-link', 'inline'))
// .attr('href', 'https://github.com/openstreetmap/iD/blob/master/FAQ.md#how-can-i-report-an-issue-with-background-imagery')
// .append('span')
// .text(t('background.imagery_source_faq'));
// overlay list
pane
.append('div')