-
Notifications
You must be signed in to change notification settings - Fork 28
QMAPS-759 display POI image on top right if available #168
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing integration test.
maybe images[0] should be guarded
Thanks for these reviews @Julien-laville ! |
I have a JS failure when clicking on this element: The JS error is the following:
|
Is there any POI with an image? Even the Eiffel tower doesn't have one... |
17bdee5
to
e07f1df
Compare
516784b
to
3247c4c
Compare
9770c4e
to
aa4916c
Compare
aa4916c
to
b7b8663
Compare
149e786
to
cb17084
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A very quick review.
More css changes will probably be necessary to match the mockup.
@@ -101,6 +99,8 @@ pois: | |||
panelName: internet_access | |||
- apiName: contact | |||
panelName: contact | |||
- apiName: images | |||
panelName: images |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we remove this unused block for now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't be unused for long so I'd be in favor to keep it for now.
src/views/poi_bloc/wiki.dot
Outdated
{{?}} | ||
|
||
{{? !this.wiki.description && !this.wiki.url }} | ||
<a class="poi_panel__info__wiki__link" rel="noopener noreferrer" target="_blank" href="https://www.wikidata.org/wiki/{{= this.htmlEncode(this.tag) }}">{{= _('Read more on Wikidata') }}</a> | ||
<a class="poi_panel__info__wiki__link" rel="noopener noreferrer" target="_blank" href="https://www.wikidata.org/wiki/{{= this.htmlEncode(this.tag) }}"> | ||
<i class="icon-chevrons-right"></i><span>{{= _('WIKIDATA') }}</span></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this second "wikidata" link is here for historical reasons and is never used. It should be removed.
No description provided.