forked from openstreetmap/openstreetmap-website
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/pull/4297'
- Loading branch information
Showing
5 changed files
with
10 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<tr> | ||
<th class='browse-tag-k'><%= format_key(tag[0]) %></th> | ||
<td class='browse-tag-v'><%= format_value(tag[0], tag[1]) %></td> | ||
<th class='py-1 border-grey table-light fw-normal'><%= format_key(tag[0]) %></th> | ||
<td class='py-1 border-grey border-start'><%= format_value(tag[0], tag[1]) %></td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<% unless tag_details.empty? %> | ||
<h4><%= t ".tags" %></h4> | ||
<table class='browse-tag-list border border-grey rounded'> | ||
<%= render :partial => "tag", :collection => tag_details.sort %> | ||
</table> | ||
<div class='mb-3 border border-grey rounded overflow-hidden'> | ||
<table class='mb-0 browse-tag-list table align-middle text-break'> | ||
<%= render :partial => "tag", :collection => tag_details.sort %> | ||
</table> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ def test_format_value | |
assert_dom_equal "<a title=\"The File:Test.jpg item on Wikimedia Commons\" href=\"//commons.wikimedia.org/wiki/File:Test.jpg?uselang=en\">File:Test.jpg</a>", html | ||
|
||
html = format_value("colour", "#f00") | ||
assert_dom_equal %(<span class="colour-preview-box" data-colour="#f00" title="Colour #f00 preview"></span>#f00), html | ||
assert_dom_equal %(<span class="colour-preview-box float-end m-1 border border-dark border-opacity-10" data-colour="#f00" title="Colour #f00 preview"></span>#f00), html | ||
|
||
html = format_value("email", "[email protected]") | ||
assert_dom_equal "<a title=\"Email [email protected]\" href=\"mailto:[email protected]\">[email protected]</a>", html | ||
|