Andy Allan
d41d52877e
Use with_locale for the copyright page
...
This avoids having to override the locale on each and every translation
2023-03-22 10:37:20 +00:00
Andy Allan
a91afa0e78
Use .with_locale for about page
...
This simplifies the code, since we can avoid having to specify the
locale for every translation.
The test was added since I originally developed another approach,
but that caused exceptions on invalid locales.
2023-03-22 10:13:01 +00:00
Andy Allan
473d425c10
Remove the language block from around the original guidance
...
The guidance is shown in the user's own language, not in english.
2023-03-22 09:55:41 +00:00
Andy Allan
1d5ba57c49
Remove the language block from around the guidance
...
This was unnecessary and also incorrect. The guidance is shown in the users
own language, not in the @locale of the copyright statement, and so
doesn't need any language wrapping and certainly not stating that it's in
the @locale.
2023-03-22 09:55:41 +00:00
Tom Hughes
b5cc4449a6
Include count in messages for the "one" plural category
2023-03-15 21:01:32 +00:00
Wille Marcel
525c041743
Add space between form and Publish diary button
2023-03-10 15:16:44 -03:00
Tom Hughes
e2e79ba549
Drop legacy forums from help page
2023-03-08 17:40:34 +00:00
Andy Allan
59ed461a5d
Rework confirmations page to avoid raw html in translations
2023-03-08 16:09:27 +00:00
Andy Allan
2771921cb1
Rework shared kramdown instructions to avoid html in translations
2023-03-08 16:09:27 +00:00
Andy Allan
235618b9c0
Remove html from translations for terms page
2023-03-08 16:09:27 +00:00
Andy Allan
8a8935c8b6
Remove remaining html in translations from fixthemap page
2023-03-08 16:09:27 +00:00
Andy Allan
e6395508c4
Refactor communities page to avoid html in translations
2023-03-08 16:09:27 +00:00
Andy Allan
9c8bb75b9d
Refactor potlatch page to avoid html in translations
2023-03-08 16:09:27 +00:00
Andy Allan
8df3c7b12a
Rework about page to avoid html in the translations
2023-02-22 10:25:51 +00:00
Andy Allan
9101705656
Remove html from translations for the welcome page
...
This also refactors the "any questions" section, which is shared with the fixthemap page.
2023-02-22 10:25:51 +00:00
Andy Allan
10e035df93
Refactor trace guidance to avoid raw html in translations
...
Also rearrange to avoid multiple sentences in a heading.
2023-02-22 09:16:17 +00:00
Andy Allan
317b1871f4
Refactor translation to avoid raw html tags
2023-02-22 09:16:17 +00:00
Andy Allan
e11c70f751
Move public editing content into its own partial
...
This makes the editing page easier to read, and simplifies the i18n
in the public editing section.
2023-02-22 09:16:17 +00:00
Andy Allan
c7e9888bb6
Refactor public editing note to avoid raw html in the translations
2023-02-22 09:16:17 +00:00
Andy Allan
c276625e7f
Refactor to use submit_tag helper
...
This is more readable than interpolating into element attributes
2023-02-01 17:24:48 +00:00
Andy Allan
a88da1d71a
Refactor translation strings for notes
...
These aren't used by any javascript code, so don't need to be in
the `javascripts` key.
2023-02-01 17:24:48 +00:00
Andy Allan
9bb8dd739a
Use data attributes to pass alternative button labels
...
This allows the text to be defined in the html partials, instead
of looking up the i18n via javascript.
2023-02-01 17:24:47 +00:00
Andy Allan
9748ce301c
Move browse#note to notes#show
...
This allows a more resourceful routing approach.
2023-02-01 17:13:41 +00:00
Andy Allan
b5046fdcd0
Move browse#new_note to notes#new
...
This allows a more resourceful routing approach.
2023-02-01 17:13:41 +00:00
Andy Allan
f7367baa6b
Rename api_notes resource to avoid conflict with non-API resource
...
This allows using e.g. note_path for notes#show in the future.
2023-01-25 19:01:57 +00:00
Tom Hughes
152e524002
Make error pages translatable
...
Fixes #3877
2023-01-09 19:32:22 +00:00
Dimitar
3247ffd57c
Added missing </p>
tag
2023-01-01 16:06:41 +02:00
Andy Allan
f78c032b07
Use buttons for dropdown toggles
...
These elements don't link to another page, and so there's no need
to use a link that leads to nowhere.
2022-12-22 09:56:56 +00:00
Andy Allan
a11e156f56
Use mail_to help to avoid handcrafting mailto links
...
This also reworks the user suspended page to avoid having html in
the translation strings.
2022-11-30 11:13:44 +00:00
Andy Allan
067b0de439
Merge pull request #3676 from harry-wood/notes-disappear-time
...
Display how long until a note will disappear
2022-11-23 15:44:26 +00:00
Tom Hughes
8cef62cd2c
Merge remote-tracking branch 'upstream/pull/3301'
2022-11-22 18:47:24 +00:00
Tom Hughes
c0278a01da
Merge remote-tracking branch 'upstream/pull/3803'
2022-11-17 17:49:17 +00:00
Andy Allan
1559d88048
Create a second title_user translation, to avoid using html_safe
2022-11-17 12:10:49 +00:00
Andy Allan
972249ce9d
Reconfigure the suspended flash message to avoid html_safe
...
This also avoids having raw html in the translation strings
2022-11-17 12:04:28 +00:00
Andy Allan
efdaecdbf3
Merge pull request #3779 from AntonKhorev/spinner
...
Replace searching.gif images with Bootstrap spinners
2022-11-16 16:22:18 +00:00
Andy Allan
af6fec502a
Validate URLs against supply-chain attacks
...
Unfortunately validates_url gem doesn't support mailto or xmpp urls,
so we need to write our own validation.
2022-11-02 18:21:00 +00:00
Anton Khorev
28060080e8
Replace spinners in html.erb templates
2022-11-01 00:08:41 +03:00
Anton Khorev
6c415ef142
Add aria-label to close buttons
2022-10-31 23:54:58 +03:00
Anton Khorev
dbcf256976
Use close button instead of geolink in sidebar content
2022-10-26 15:49:13 +03:00
Andy Allan
b0a741412f
Merge pull request #3700 from AntonKhorev/about
...
Replace <h5> used to set the font size with Bootstrap class h5
2022-10-19 15:58:17 +01:00
Tom Hughes
140b296f59
Test that tags are included correctly in the changeset feed
2022-10-18 18:42:02 +01:00
Malte Gerken
4492118dbc
Fix malformed tags table in changeset atom feed
2022-10-17 15:37:07 +02:00
Anton Khorev
d8a3453bee
Remove unused note id data attributes
2022-10-04 16:12:48 +03:00
Anton Khorev
c87379ba69
Remove 'Hide' button from hidden note page
2022-09-29 01:27:51 +03:00
Anton Khorev
01d48694b4
Don't show 'Download XML' link for deleted elements
2022-09-22 14:51:31 +03:00
Anton Khorev
58f0eea2a4
Remove unnecessary wrapper divs
2022-09-20 10:15:19 +03:00
Anton Khorev
7c4dff7445
Vertically center about page icons with flex align-items
2022-09-19 11:48:57 +03:00
Anton Khorev
21cc9f3af1
Replace <h5> used to set the font size with Bootstrap class h5
2022-09-19 08:20:01 +03:00
Anton Khorev
e5002d9c70
Remove buttons css class used only on new note page
2022-09-17 11:03:04 +03:00
Harry Wood
d8e51614cb
Display how long until a note will disappear
...
Modify the message displayed at the bottom of the notes sidepanel. For already resolved notes we don't want to say "please resolve it". Fixes https://github.com/openstreetmap/openstreetmap-website/issues/3663
Instead explain that it will disappear from the map (so reporting is probably not necessary) and display how long to go until that happens. Tackling https://github.com/openstreetmap/openstreetmap-website/issues/3071
2022-09-14 23:59:25 +01:00