Commit graph

6047 commits

Author SHA1 Message Date
Tom Hughes
9b634f3493 Cache OpenID provider names on a per-locale basis
Fixes #2591
2020-04-15 22:48:28 +01:00
Tom Hughes
6ad0340b05 Localise formatting of point count for traces
Fixes #2592
2020-04-15 22:42:41 +01:00
Tom Hughes
3666b67433 Merge remote-tracking branch 'upstream/pull/2431' 2020-04-15 19:18:10 +01:00
Andy Allan
92ca406995
Merge pull request #2547 from bezdna/mobile-layout
Trigger small screen layout based on the width of the screen, rather than the width of the menus.
2020-04-15 16:50:12 +02:00
Tom Hughes
0dffed7a05 Merge remote-tracking branch 'upstream/pull/2579' 2020-04-15 15:41:49 +01:00
Tom Hughes
66ec3cd845 Add blob to frame-src in CSP for iD
Fixes #2582
Closes #2583
2020-04-09 18:43:12 +01:00
Andy Allan
a219df24ca Ensure that urls are only valid if the entire string is a url
This replaces our homegrown regexps (that didn't quite work) with
ruby built-in regexps, and uses the termination anchor to ensure
that the entire string, not just the first part, is validated.
2020-04-01 17:53:37 +02:00
Tom Hughes
e47c11c644 Merge remote-tracking branch 'upstream/pull/2577' 2020-04-01 11:56:27 +01:00
Andy Allan
055a976051 Remove custom table styling
This removes the custom table styling code, and move to using bootstrap table styling for almost all remaining tables.
2020-04-01 12:29:01 +02:00
Simon Legner
83bb627da6 Fix typo in comment
Closes #2576
2020-04-01 00:11:19 +01:00
Tom Hughes
b5c778b662 Fix new rubocop warnings 2020-03-31 19:08:10 +01:00
Tom Hughes
e693063fa5 Make linkify return an HTML safe result for unsafe inputs
Fixes #2567
2020-03-22 12:59:39 +00:00
Tom Hughes
3184bec5ae Fix some untranslateable strings
Fixes #2565
2020-03-20 17:22:23 +00:00
Tom Hughes
4176b78edf Pass I18n argument correctly 2020-03-20 14:58:45 +00:00
Tom Hughes
587a1b0754 Fix lego translation with locate control
Fixes #2564
2020-03-20 14:28:51 +00:00
Tom Hughes
e89742928d Merge remote-tracking branch 'upstream/pull/2548' 2020-03-18 20:15:06 +00:00
Andy Allan
b8c1bbb4f8 Remove unnecessary h() calls on model attributes
These were necessary in the rails 2.x era, but not now.
2020-03-18 14:33:30 +01:00
Andy Allan
5fdada204c Use bootstrap table striping to replace hand-cycled table stripes
This cuts down on the complexity of having to use the `cycle` function
and makes the templates easier to read. CSS-based striping has been
around for many years.

The CSS is in order to keep our custom colour for striped tables.
2020-03-18 12:14:24 +01:00
Andy Allan
b0c50ab344 Enable remaining bootstrap components
Fixes #2511
2020-03-18 11:16:03 +01:00
hikemaniac
74142661e3 Moved CSS rule 2020-03-14 16:39:21 +01:00
hikemaniac
ed076ebd61 Fix border-radius for search query input field 2020-03-14 16:06:46 +01:00
Tom Hughes
06122fc090 Enforce restrictions on issue visibility properly 2020-03-01 19:20:18 +00:00
Tom Hughes
75d1893343 Fix eslint warnings 2020-02-29 17:52:55 +00:00
Tom Hughes
0f3856fd1c Fix highlight of changesets with no bounding box
A changeset with no bounding box has no map layer so trying to
set it's style throws an exception which means we don't get to
the code to set the style on the list entry.

Fixes #2541
2020-02-29 17:43:19 +00:00
Tom Hughes
aaf9d15d56 Rework set_default_request_format ast set_request_formats
Instead of trying to work out the exact format, just figure
out the list of allowed formats and let rails do the rest.
2020-02-29 15:28:23 +00:00
Anton Melnichuk
b9c2829e75 css layout change only in content block 2020-02-27 10:29:37 +02:00
Anton Melnichuk
009a4dbb67 Merge branch 'master' of github.com:openstreetmap/openstreetmap-website into mobile-layout 2020-02-27 10:15:37 +02:00
Holger Jeromin
c70e919b47
rename internal variable 2020-02-26 20:27:52 +01:00
Andy Allan
93da959699
Merge pull request #2542 from boubascript/master
Show mailto: links for email values in browse
2020-02-26 17:09:27 +01:00
Andy Allan
73c95847a6
Merge pull request #2485 from mmd-osm/patch/json2
JSON output nodes, ways, relations, map
2020-02-26 15:55:48 +01:00
Anton Melnichuk
248ad3ae05 the layout is triggered not by JS, but by media queries, now some map bugs have gone away themselves
fix #2349 #2035 #1864
@tomhughes: 'Duplicate of many, many other tickets.'
2020-02-21 10:08:38 +02:00
Boubacar
5d7b09e3bd change validation to accept only single email values 2020-02-19 23:44:40 -05:00
Boubacar
2cfd5b97a8 Merge branch 'master' of github.com:openstreetmap/openstreetmap-website 2020-02-19 20:52:35 -05:00
Tom Hughes
ff7ddb6b86 Merge remote-tracking branch 'upstream/pull/2381' 2020-02-19 19:11:32 +00:00
ENT8R
b84799f481 Keep the behaviour backwards-compatible 2020-02-19 12:58:47 +01:00
Boubacar
4cf0abb027 make email regex slightly more readable 2020-02-17 11:39:30 -05:00
Boubacar
c42722d57d Add email link helper to create mailto: links for email values in objects 2020-02-16 21:46:48 -05:00
Tom Hughes
21eaf0d6ec Merge remote-tracking branch 'upstream/pull/2534' 2020-02-13 12:38:24 +00:00
Anton Melnichuk
292f38a6ce fix help page, grid card layout on mobile 2020-02-13 14:18:49 +02:00
Tom Hughes
a6db591ff0 Allow the embed page to be embedded in third party frames 2020-02-12 11:18:37 +00:00
Andy Allan
9ce2822b3d Fix border spacing for sidebar tags and routing tables
The reset code for border spacing was removed in 5c933868db and
led to minor artifacts in these two tables.
2020-01-30 13:34:56 +01:00
Andy Allan
e22b9c35f5 Remove list styling from various sidebar lists 2020-01-30 13:14:53 +01:00
Andy Allan
a2abce0f4a Use an unstyled list for the login buttons 2020-01-30 10:24:08 +01:00
Tom Hughes
774a8dd5f9 Merge remote-tracking branch 'upstream/pull/2524' 2020-01-29 17:55:55 +00:00
Andy Allan
404024f621 Tweak the dropdown menu hover and active colours 2020-01-29 18:23:47 +01:00
Andy Allan
b97d2d98ae Further tweaks to the navigation dropdown button colours 2020-01-29 18:23:47 +01:00
Andy Allan
523f84d103 Don't highlight border when hovering on user-menu button 2020-01-29 18:23:47 +01:00
Andy Allan
5ce212de83 Styling for disabled edit button 2020-01-29 18:23:47 +01:00
Andy Allan
290d2a2308 Tweak positioning of inbox count on the user menu button 2020-01-29 18:23:47 +01:00
Andy Allan
e5c33c119a Switch to bootstrap for dropdowns and tooltips
Due to the javascript involved, it was more straightforward to combine
the two together. Moving to bootstrap v4 for dropdowns required some
redesign of the dropdown menu html, and the opportunity was taken to
move to using standard buttons for those menus.
2020-01-29 18:23:47 +01:00