Commit graph

6086 commits

Author SHA1 Message Date
Tom Hughes
aa32dba482 Require a logged in user for the iD frame
The frame will error if the user is not logged in as it wants
to be able to access their OAuth token.
2022-07-26 00:52:22 +01:00
mxdanger
a6b655862e Bootstrap 5: Change rounded-lg to rounded-3 2022-07-22 13:17:36 -07:00
Tom Hughes
3871d61be4 Merge remote-tracking branch 'upstream/pull/3612' 2022-07-21 19:20:26 +01:00
Tom Hughes
297d05c63b Merge remote-tracking branch 'upstream/pull/3610' 2022-07-21 18:36:29 +01:00
Anton Khorev
2dd7a5edb2 Add xmlns:dc namespace to note show rss actions 2022-07-21 17:14:49 +03:00
Andy Allan
6078e2f68e Bootstrap 5: Use dropdown-menu-end for dropdown alignment 2022-07-20 19:34:19 +01:00
Andy Allan
2b97658786 Bootstrap 5: Fix table striping background colour 2022-07-20 18:49:10 +01:00
Andy Allan
13e44f031c Bootstrap-5: use logical alternative for text alignment
Using start/end rather than left/right, for better RTL support.
2022-07-20 18:45:26 +01:00
Andy Allan
721044ad01 Bootstrap 5: Use symmetrical padding in toggled dropdown
Required since pl-* classes have been removed, but also works fine
without bringing start/end considerations into play.
2022-07-20 18:43:45 +01:00
Andy Allan
4e06fe054a Rework trace index to use secondary-actions
The border between items is familiar UI, so we can keep it, but lets
use the secondary-actions approach instead.

This avoids using left-right specific border, margin and padding
classes
2022-07-20 17:45:35 +01:00
Andy Allan
9e6ecefdb2 Bootstrap 5: Remove the padding from trace nav buttons on larger sizes
If additional py is added when the tabs are laid out in full, then the
other tabs start to become detatched from the rest of the page and a
line appears under the active tab.

We don't need the padding in the horizontal layout, so remove it, and
tweak the size of the padding when collapsed.
2022-07-20 14:43:00 +01:00
Andy Allan
9963fcffc0 Bootstrap 5: Override button text colours, force to white 2022-07-20 14:43:00 +01:00
Andy Allan
ac07a79078 Use bootstrap variables to style links
Bootstrap 5 now has a hover color, and instead of trying to override
with CSS, it's easier to use the variables instead.
2022-07-20 14:43:00 +01:00
Andy Allan
235ca0b4f3 Bootstrap 5: data-toggle renamed to data-bs-toggle for dropdown menus 2022-07-20 14:43:00 +01:00
Andy Allan
2f1715a02c Bootstrap 5: no-gutters renamed to g-0 2022-07-20 14:43:00 +01:00
Andy Allan
e2f17abd3d Bootstrap 5: Replace card-deck with a row-cols-* based grid 2022-07-20 14:43:00 +01:00
Andy Allan
934d81aa55 Bootstrap 5: Replace all form-group classes with mb-3 2022-07-20 14:42:57 +01:00
Andy Allan
e80d74ae73 Bootstrap 5: Add form-label class to hand-crafted form labels
This is done automatically for forms created by bootstrap_form
2022-07-20 14:41:56 +01:00
Andy Allan
a4af46ef47 Bootstrap 5: Override float attribute on legends
I don't fully understand why bootstrap added this in v5, as the
discussion on the issue tracker isn't clear. But we neither want
nor need this.
2022-07-20 14:41:55 +01:00
Andy Allan
02a6ec60ec Bootstrap 5: Update manual select boxes to use form-select class 2022-07-20 14:41:55 +01:00
Andy Allan
2080696fe6 Bootstrap 5: Remove use of form-row class
This has been replaced by simple `row` class in v5. We can also use the
gx-N classes here, which tighten up the horizontal gutter sizes for
space-constrained forms.
2022-07-20 14:41:41 +01:00
Andy Allan
779167e493 Bootstrap 5: Enable negative margins 2022-07-20 11:13:33 +01:00
Andy Allan
3b942ae5de Bootstrap 5: change rounded-sm to rounded-1 2022-07-20 11:13:33 +01:00
Tom Hughes
9e6a3b7b10 Merge remote-tracking branch 'upstream/pull/3604' 2022-07-19 17:03:19 +01:00
Anton Khorev
b54c03389b Strip leading/trailing whitespace from comma-separated trace tags 2022-07-19 13:47:28 +03:00
Anton Khorev
7fbfec71d1 Merge branch 'master' into trace-description-maxlength 2022-07-18 17:50:30 +03:00
Martin Raifer
99ed67cc3b
optimize image file size 2022-07-17 21:55:55 +02:00
Martin Raifer
7f8b16600b
remove blue circle in top right corner, improving contrast with "x" button 2022-07-17 21:47:10 +02:00
Martin Raifer
ef56e11e58
add banner for sotm 2022 2022-07-16 21:48:06 +02:00
Anton Khorev
c66f850cd1 Set trace description input max length 2022-07-15 05:19:00 +03:00
Tom Hughes
0ae438a5c1 Add a configuration option to disable HTTP basic authentication 2022-07-08 17:25:20 +01:00
Tom Hughes
0c524b2408 Log any use of basic authentication 2022-07-08 17:13:02 +01:00
Tom Hughes
1a4faa4507 There is no need to do setup_user_auth and authorize for the same action 2022-07-08 16:38:51 +01:00
Tom Hughes
ed4549afab Fix eslint warnings 2022-06-26 19:56:27 +01:00
Tom Hughes
35cd8f80cc Restore intended title for GPS trace view 2022-06-19 12:52:47 +01:00
Tom Hughes
0b02fcf421 Merge remote-tracking branch 'upstream/pull/3577' 2022-06-19 12:38:08 +01:00
Tom Hughes
5b08e9384d Merge remote-tracking branch 'upstream/pull/3571' 2022-06-19 12:33:52 +01:00
faebebin
05d2eba921 Fix map edit controls min-zoom behaviour
The map dropdown and tooltip of the map edit controls should
behave similar when zooming in and out.
This is achieved by disabling the button-group and the buttons.
2022-06-19 11:10:29 +02:00
Sky
c9442b669d
Fix small error in _header.html.erb 2022-06-16 00:14:34 +03:00
Martin Raifer
66656e1d1d
only parse hashParams if there is a hash
Presumably this was an oversight in the original implementation, as `OSM.params` falls back to the page's `query` string if the function's parameter (here: the page's `hash`) is an empty string.

This fixes some inconsistent behaviour of the website. In the example below, the first URL sets the `background` to `none` while in the second example it doesn't.

* https://www.openstreetmap.org/edit.html?background=none
* https://www.openstreetmap.org/edit.html?background=none#map=
2022-06-14 20:41:10 +02:00
Tom Hughes
9adad9f90d Fix new rubocop warnings 2022-06-14 19:04:39 +01:00
Anton Khorev
95fa01c8f8 Margins for 'comment from' / 'reported by' lines on issues page 2022-06-10 17:22:15 +03:00
Tom Hughes
a3a228862c Add validation for relation member roles
Fixes #3563
2022-06-09 19:21:08 +01:00
Anton Khorev
7d47845264 Wrap issue comment rich text in div 2022-06-09 19:20:36 +01:00
Anton Khorev
9936b00d82 Wrap issue report rich text in div 2022-06-09 19:20:02 +01:00
Tom Hughes
16210d9f4f Rename id_oauth_application to id_application in settings 2022-06-08 13:28:07 +01:00
Martin Raifer
c55d346d5f
Update to iD v2.21.0
major changes in this release:
* dropped support for Internet Explorer 11
* switched authentication to OAuth 2

for further changes please refer to https://github.com/openstreetmap/iD/blob/release/CHANGELOG.md#2210
2022-06-03 15:32:27 +02:00
Tom Hughes
a3617b492e Drop AOL and Wordpress login links
Fixes #3555
2022-05-20 18:25:15 +01:00
Tom Hughes
40ec4734fb Fix new rubocop warnings 2022-05-16 19:16:53 +01:00
Andy Allan
68d6b7279e Use a secondary-actions nav for issue actions
This fits with actions on other pages, avoids using pipe characters,
and resolves an issue with empty paragraphs.
2022-05-11 16:09:46 +01:00