Jonas Kress (WMDE) has uploaded a new change for review. https://gerrit.wikimedia.org/r/275126
Change subject: Adds Commons prefix and puts icons in front ...................................................................... Adds Commons prefix and puts icons in front Change-Id: Ibe17abbec8c79d2cf23d97c1f3563f29fc49edd9 --- M wikibase/queryService/ui/resultBrowser/TableResultBrowser.js 1 file changed, 5 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui refs/changes/26/275126/1 diff --git a/wikibase/queryService/ui/resultBrowser/TableResultBrowser.js b/wikibase/queryService/ui/resultBrowser/TableResultBrowser.js index b0324d7..442d477 100644 --- a/wikibase/queryService/ui/resultBrowser/TableResultBrowser.js +++ b/wikibase/queryService/ui/resultBrowser/TableResultBrowser.js @@ -97,13 +97,13 @@ $( '<a>' ).attr( 'href', href ).append( $linkText ).appendTo( $td ); if ( this.isExploreUrl( href ) ) { - $td.append( ' ' ); - $td.append( this.createExploreButton() ); + $td.prepend( ' ' ); + $td.prepend( this.createExploreButton() ); } if ( this.isCommonsResource( href ) ) { - $td.append( ' ' ); - $td.append( this.createGalleryButton( href, column ) ); + $td.prepend( ' ' ); + $td.prepend( this.createGalleryButton( href, column ) ); } break; @@ -124,7 +124,7 @@ if ( data.type === 'uri' ) { if ( this.isCommonsResource( label ) ) { - label = decodeURIComponent( this.getCommonsResourceFileName( label ) ); + label = 'commons:' + decodeURIComponent( this.getCommonsResourceFileName( label ) ); } else { label = this.abbreviateUri( label ); } -- To view, visit https://gerrit.wikimedia.org/r/275126 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibe17abbec8c79d2cf23d97c1f3563f29fc49edd9 Gerrit-PatchSet: 1 Gerrit-Project: wikidata/query/gui Gerrit-Branch: master Gerrit-Owner: Jonas Kress (WMDE) <jonas.kr...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits