Andy Allan
220ad92766
Use friendly_date_ago for notes display
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
e5d8bd539f
Use friendly_date_ago for user blocks
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
75bf96c4f3
Use friendly_date_ago helper for changeset comments
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
3167e6b4bb
Use friendly_date_ago helper for chnagesets
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
54e0c7afb2
Use distance_in_words_ago scope for user blocks
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
00f75c175e
Use scope for common details and changeset display in browse pages
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
47e653ffe0
Use scope for time_ago when viewing users
...
Refs #2255 .
Also removes unused translation referencing ago, that was unneeded
after cbf71f04c2
2019-06-19 18:04:08 +02:00
Andy Allan
50d469a74a
Use distance_in_words_ago scope for issues display
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
df560bd71d
Use the distance_in_words_ago scope for diary comments pages
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
1298d80549
Use the distance_in_words_ago scope for trace display
...
Refs #2255
2019-06-19 18:04:08 +02:00
Andy Allan
2169c503ef
Rename user.friend_users to user.friends
...
This is possible now since we've renamed Friend to Friendship
2019-06-19 16:51:35 +02:00
Andy Allan
1cf8fec58d
Rename Friend model to Friendship
...
This better describes what the model represents, which is the relationship
between the two users.
2019-06-19 16:39:25 +02:00
Tom Hughes
31edc7dff6
Merge remote-tracking branch 'upstream/pull/2226'
2019-06-18 21:10:07 +01:00
Richard Fairhurst
946deebf4c
Add user_<uid> class to diary entry div
2019-06-17 14:02:52 +01:00
Andy Allan
a08b65a6ac
Use built-in form submit translation keys for traces
2019-06-12 19:24:06 +02:00
Andy Allan
1d09cfcb18
Use built-in form submit translation keys for oauth client applications
2019-06-12 19:24:06 +02:00
Andy Allan
085412f624
Use i18n for submit button for issue comments
...
Normally when an en-GB.yml translation is missing, rails falls back to en.yml. But when
using the submit helpers, if the en-GB translation is missing, rails knows how to create
a fallback like 'Create {model_name}' without touching the en.yml file. This string might
then be different from what the test expects, e.g. 'Add Comment'.
So it's important to set the language headers, to avoid phantomjs from picking up your desktop
preferences in this specific case.
2019-06-12 19:24:06 +02:00
Andy Allan
5450bade1a
Use built-in form sumbit translation keys for diary comments
...
Also use a diary comment object as the basis for the form
2019-06-12 16:20:29 +02:00
Andy Allan
52782121a6
Use built-in form sumbit translation keys for messages
2019-06-12 16:11:54 +02:00
Andy Allan
cf0b6403aa
Use built-in form sumbit translation keys for redactions
2019-06-12 16:08:20 +02:00
Andy Allan
97ff32f528
Use built-in form sumbit translation keys for user blocks
2019-06-12 16:07:18 +02:00
Tom Hughes
63186dc161
Fix erblint warnings
2019-06-06 18:20:21 +01:00
Andy Allan
9e158a5d39
Show all diary comments to administrators
2019-06-06 16:03:42 +02:00
Andy Allan
fdffd22cca
Allow admins to unhide diary comments, if they wish
2019-06-06 16:03:42 +02:00
Andy Allan
49fc17c6b6
Show deleted diary entries to administrators, if the user isn't also deleted
...
This will allow administrators to review diary entry deletions from non-spam users.
2019-06-06 15:59:47 +02:00
Andy Allan
f2f3fbb1f1
Allow administrators to unhide diary entries, if they wish
2019-06-06 15:59:47 +02:00
Tom Hughes
f99c383318
Merge remote-tracking branch 'upstream/pull/2225'
2019-05-30 18:06:58 +01:00
Andy Allan
9431b471a7
rubocop and erblint fixes
2019-05-29 17:09:51 +02:00
Andy Allan
1b1d90a0f9
Refactor diary entry form
...
This uses the built-in helpers for naming form elements, rather than
having to override with specific i18n labels. It also changes the label
to 'Update', and capitalizes the title on the edit page.
2019-05-29 16:09:14 +02:00
Andy Allan
fbcd2bc10a
Refactor some diary entry routes to use resources
2019-05-29 15:55:27 +02:00
Andy Allan
b7893df84e
Refactor diary entries to use create and update methods
...
This brings it slightly more into line with resourceful routing.
2019-05-29 15:37:23 +02:00
Andy Allan
2142ff02c2
Allow moderators to hide diary entries and comments
2019-05-15 13:40:15 +02:00
Andy Allan
90ac07d071
Allow user_blocks to be created for longer periods
...
This avoids admins from having to manually change end periods in the database
2019-05-15 11:30:28 +02:00
Simon Poole
d1499895e3
Try to make erblint happy
2019-05-13 16:54:29 +02:00
Simon Poole
1be8d599e8
Add checkbox for contributor terms and improve text
2019-05-13 16:54:29 +02:00
Simon Poole
7cbd83bf01
Style fixes
2019-05-13 16:54:29 +02:00
Simon Poole
ac9319f4d4
Rename string to avoid translation confusion
2019-05-13 16:54:29 +02:00
Simon Poole
72d78db168
Move link to ToU to attribution footer
2019-05-13 16:54:29 +02:00
Simon Poole
d3d03a3177
Move onclick handling of tou checkbox to ujs
2019-05-13 16:52:18 +02:00
Simon Poole
077834704e
Add links to the ToU and include them in signup
...
- this adds links to the ToU in the Welcome box and on the About page
- adds a timestamp column to the users table to record acceptance of the ToU
- require ToU to be accepted before signup can proceed
- rearrange and change text on signup page
2019-05-13 16:52:18 +02:00
mmd-osm
363155a2a8
Move xml gen. into view for (old) nodes, ways, relations, map
2019-05-07 22:16:22 +02:00
J Guthrie
0f83081847
Add geolink class to login/logout referer links
...
Fixes #2216
2019-04-27 12:37:19 +01:00
Frederik Ramm
17e6e69c39
Move generation of gpx_file XML from model to builder
2019-04-14 16:25:14 +01:00
Andy Allan
e66c719294
Resourceful(ish) naming for api/users_controller
2019-04-10 17:06:15 +02:00
Tom Hughes
79bda7a8ed
Format closed_at correctly in changeset API responses
...
Fixes #2195
2019-03-30 15:40:08 +00:00
Tom Hughes
7ce40eeb38
erblint: use consistent spacing in HTML tags
2019-03-28 00:30:48 +00:00
Tom Hughes
49da87fb6d
erblint: remove leading blank lines
2019-03-28 00:29:04 +00:00
Tom Hughes
89341ce266
erblint: avoid dynamic find_by methods
2019-03-27 19:14:16 +00:00
Tom Hughes
9f931ca1e3
erblint: add rel=noopener to links that open in a new tab
2019-03-27 19:11:49 +00:00
Tom Hughes
1d97fd25b7
erblint: use conditional assignment
2019-03-27 18:59:52 +00:00