]>
git.openstreetmap.org Git - rails.git/log
Herve Saint-Amand [Mon, 16 Jan 2017 22:50:01 +0000 (22:50 +0000)]
Refactored the code to invoke the message body partial layout, as suggested in the PR
Herve Saint-Amand [Mon, 16 Jan 2017 21:21:55 +0000 (21:21 +0000)]
Move attach_project_logo to be its own before_action filter, as suggested
Herve Saint-Amand [Mon, 16 Jan 2017 21:13:52 +0000 (21:13 +0000)]
Renamed @user_message_author to @author as suggested
Niklas Laxström [Mon, 16 Jan 2017 02:38:06 +0000 (03:38 +0100)]
Localisation updates from https://translatewiki.net.
Herve Saint-Amand [Sat, 14 Jan 2017 21:48:46 +0000 (21:48 +0000)]
Revert "Added a greeting to the changeset comment message"
This reverts commit
39c3fa427ea273e9011c380f9d2f2a9759cddb24 .
Herve Saint-Amand [Fri, 13 Jan 2017 22:58:57 +0000 (22:58 +0000)]
Remove that ugly style="margin: 0"
It's really only needed for rendering in Yahoo. Let's try to do without having to copy-paste that into every html template.
Herve Saint-Amand [Fri, 13 Jan 2017 22:43:23 +0000 (22:43 +0000)]
Simplified the partial layout
Rather than wrap the body in a :body block, just make it the default, unnamed block, which keeps the markup more lightweight.
Herve Saint-Amand [Fri, 13 Jan 2017 21:45:52 +0000 (21:45 +0000)]
Logo was being attached twice on changeset comment notifications
Herve Saint-Amand [Thu, 12 Jan 2017 23:02:57 +0000 (23:02 +0000)]
Dressed up note comment messages
Herve Saint-Amand [Thu, 12 Jan 2017 22:30:31 +0000 (22:30 +0000)]
Dressed up lost password mail
Herve Saint-Amand [Thu, 12 Jan 2017 22:28:09 +0000 (22:28 +0000)]
Dressed up gpx notification mails
Herve Saint-Amand [Thu, 12 Jan 2017 22:11:23 +0000 (22:11 +0000)]
Dressed up friend_notification mail
Herve Saint-Amand [Thu, 12 Jan 2017 21:52:17 +0000 (21:52 +0000)]
Added a greeting to the changeset comment message
The greeting includes the recipient's user name (as for the message notification mail), which should increase the recipient's trust that the message isn't spam. Greetings were reused from each language's respective locale flie.
Herve Saint-Amand [Wed, 11 Jan 2017 23:26:56 +0000 (23:26 +0000)]
Rubocop finds 'return' statements redundant
Herve Saint-Amand [Wed, 11 Jan 2017 23:17:24 +0000 (23:17 +0000)]
Modify tests to search only text parts
The tests assumed that every part in the multipart emails that we send were either plain text or HTML. Now we have image attachments, against whose contents the tests were still trying to match regexes. The tests have been modified to only run regexes on the text parts of the mails.
Herve Saint-Amand [Wed, 11 Jan 2017 22:03:00 +0000 (22:03 +0000)]
Removed unbalanced tag HTML tag
Tom Hughes [Wed, 11 Jan 2017 21:11:37 +0000 (21:11 +0000)]
Don't try and look up traces until the user is logged in
Fixes #1411
Niklas Laxström [Wed, 11 Jan 2017 18:37:30 +0000 (19:37 +0100)]
Localisation updates from https://translatewiki.net.
Herve Saint-Amand [Mon, 9 Jan 2017 23:42:43 +0000 (23:42 +0000)]
Dressed up a few more messages.
email_confirm, message_notification and signup_confirm now use the new templates. This fixes some, but not all, of the currently broken tests.
Herve Saint-Amand [Sun, 8 Jan 2017 22:09:10 +0000 (22:09 +0000)]
Moved message table HTMl to a partial template
Several notifications are about a message having been sent from one user to another via OSM. I've moved the code for the HTML table that holds the actual user message, with the avatar and the body text, to its own partial template, so that it can be reused. I've updated a second notifier message to the new template, diary_comment_notification.
Herve Saint-Amand [Fri, 6 Jan 2017 22:37:28 +0000 (22:37 +0000)]
First steps towards using layouts
Since all HTML mails will presumably share the same overall layout, and the markup is fairly dense, it makes sense to use Rails layouts to share the structure across mail templates. This commit moves the core structure of the HTML mail to a layout. It will need to be further refined so that notifications that involve a text message sent by another user can share the avatar-and-message-text structure.
Tom Hughes [Thu, 5 Jan 2017 08:45:59 +0000 (08:45 +0000)]
Place GPS tiles in the overlayPane
Niklas Laxström [Thu, 5 Jan 2017 07:26:29 +0000 (08:26 +0100)]
Localisation updates from https://translatewiki.net.
Tom Hughes [Thu, 5 Jan 2017 00:15:04 +0000 (00:15 +0000)]
Use https compatible names for GPS tile servers
Lars Sonchocky-Helldorf [Wed, 4 Jan 2017 19:24:23 +0000 (19:24 +0000)]
Add public gps tiles layer for debugging purposes
Fixes #1239
Closes #1406
Herve Saint-Amand [Tue, 3 Jan 2017 22:38:58 +0000 (22:38 +0000)]
Remove HTML markup from locale file
Rather than including HTML markup in the locale file (which also has the inconvenience of requiring both a plain-text and an HTML duplicate of the same string), move the markup to the template. Also added a helper to reduce clutter in the template slightly.
Harry Wood [Tue, 3 Jan 2017 14:12:05 +0000 (14:12 +0000)]
More dependency tweaks for gem2.3 and apache2-dev
Closes #1405
Harry Wood [Tue, 3 Jan 2017 13:40:57 +0000 (13:40 +0000)]
ruby2.0->ruby 2.3
change dependancies. nokogiri requires a later ruby now as pointed out here: https://github.com/openstreetmap/openstreetmap-website/issues/1402 ruby2.0->ruby 2.3 ...which then entails a later ubuntu if we're installing from packages.
Grant Slater [Tue, 3 Jan 2017 12:42:35 +0000 (12:42 +0000)]
Switch vagrant Ubuntu Trusty -> Xenial
Herve Saint-Amand [Mon, 2 Jan 2017 23:48:49 +0000 (23:48 +0000)]
More compact image paths
Make the file paths to image assets more compact. I investigated using `image_path` but could only get it to return the path for a public URL, which is different and also includes the asset pipeline digest.
Tom Hughes [Mon, 2 Jan 2017 22:51:18 +0000 (22:51 +0000)]
Make export action send TOTP cookie
Tom Hughes [Mon, 2 Jan 2017 22:50:59 +0000 (22:50 +0000)]
Make export form send authenticity token
Herve Saint-Amand [Mon, 2 Jan 2017 21:35:59 +0000 (21:35 +0000)]
Proper way to get path to small avatar
Rather than performing perilous string substitution on paths, just use the built-in way to select the small version of the avatar image file.
Tom Hughes [Mon, 2 Jan 2017 21:33:58 +0000 (21:33 +0000)]
Remove dot prefix from cookie domain
Tom Hughes [Mon, 2 Jan 2017 21:17:37 +0000 (21:17 +0000)]
Reduce TOTP cookie expiry to one hour
Tom Hughes [Fri, 2 Dec 2016 22:42:35 +0000 (22:42 +0000)]
Add support for generating TOTP cookies
This allows other sites in the openstreetmap.org domain to validate
that requests are coming from a www.openstreetmap.org user.
Niklas Laxström [Mon, 2 Jan 2017 12:24:49 +0000 (13:24 +0100)]
Localisation updates from https://translatewiki.net.
Herve Saint-Amand [Sun, 1 Jan 2017 23:39:42 +0000 (23:39 +0000)]
Fixed quotes
Replaced single quotes with double quotes, to comply with rubocop rules.
Herve Saint-Amand [Sun, 1 Jan 2017 22:39:07 +0000 (22:39 +0000)]
Remove unused variable
Herve Saint-Amand [Sun, 1 Jan 2017 22:35:59 +0000 (22:35 +0000)]
Use parameterised server root URL rather than hardcoded
Herve Saint-Amand [Sun, 1 Jan 2017 22:33:22 +0000 (22:33 +0000)]
Remove unused import
Herve Saint-Amand [Sun, 1 Jan 2017 22:30:41 +0000 (22:30 +0000)]
Move localised text to locale file
Moved a string of English text that will require translation from the HTML template to the locale I18N file.
Herve Saint-Amand [Sun, 1 Jan 2017 22:11:56 +0000 (22:11 +0000)]
Better loading of attached images
Got rid of that big ugly base64 blob which was only a temporary crutch anyway. Added a png file instead. Use File.read rather than File.open for a 66% reduction in verbosity.
Tom Hughes [Sun, 1 Jan 2017 18:40:31 +0000 (18:40 +0000)]
Update bundle
Herve Saint-Amand [Sat, 31 Dec 2016 00:14:24 +0000 (00:14 +0000)]
Tweaked cell padding
Tweaked cell padding to align the top of the avatar and of the message text a bit better.
Herve Saint-Amand [Fri, 30 Dec 2016 23:45:32 +0000 (23:45 +0000)]
Cleaned up HTML
Removed some cargo-cult HTML attributes and CSS. Styling HTML for email clients is trickier than for browsers, I'm trying to keep the code as succinct but also as compatible as possible.
Han Chao [Fri, 30 Dec 2016 05:09:58 +0000 (13:09 +0800)]
Fix clang build error
By default, Clang builds C code in GNU C11 mode, so it uses
standard C99 semantics for the inline keyword:
http://clang.llvm.org/compatibility.html#inline
Closes #1399
Herve Saint-Amand [Thu, 29 Dec 2016 23:37:39 +0000 (23:37 +0000)]
avatar inline attachment; text alignment
Herve Saint-Amand [Thu, 29 Dec 2016 23:37:22 +0000 (23:37 +0000)]
avatar inline attachment
Herve Saint-Amand [Thu, 29 Dec 2016 21:58:02 +0000 (21:58 +0000)]
reverting erroneous deletion in previous commit
Herve Saint-Amand [Thu, 29 Dec 2016 21:54:46 +0000 (21:54 +0000)]
intial commit, for 'en' locale only, for changeset_comment_notification only, doesn't load images properly yet
Tom Hughes [Thu, 29 Dec 2016 19:42:00 +0000 (19:42 +0000)]
Add directions for straight on and slight left/right at roundabouts
Tom Hughes [Thu, 29 Dec 2016 19:26:42 +0000 (19:26 +0000)]
Add directions for left/right turn at a roundabout
Niklas Laxström [Thu, 29 Dec 2016 07:41:09 +0000 (08:41 +0100)]
Localisation updates from https://translatewiki.net.
Bryan Housel [Thu, 22 Dec 2016 15:25:58 +0000 (10:25 -0500)]
Update to iD v2.0.2
Niklas Laxström [Thu, 22 Dec 2016 06:49:25 +0000 (07:49 +0100)]
Localisation updates from https://translatewiki.net.
Tom Hughes [Wed, 21 Dec 2016 20:50:15 +0000 (20:50 +0000)]
Use meta.wikimedia.org for wikimedia authentication
Tom Hughes [Wed, 21 Dec 2016 11:55:19 +0000 (11:55 +0000)]
Merge remote-tracking branch 'openstreetmap/pull/1395'
Andy Allan [Wed, 21 Dec 2016 11:41:17 +0000 (11:41 +0000)]
Update OWG policy links.
Tom Hughes [Fri, 17 Jun 2016 15:47:03 +0000 (16:47 +0100)]
Add support for Wikimedia authentication
Closes #1146
Niklas Laxström [Mon, 19 Dec 2016 06:50:54 +0000 (07:50 +0100)]
Localisation updates from https://translatewiki.net.
Tom Hughes [Sun, 18 Dec 2016 17:00:52 +0000 (17:00 +0000)]
Load api fixtures in tag model tests
We still need them so we have the object to attach tags to.
Tom Hughes [Sun, 18 Dec 2016 16:43:58 +0000 (16:43 +0000)]
Get rid of hardwired counts in assertions
Tom Hughes [Sun, 18 Dec 2016 16:29:33 +0000 (16:29 +0000)]
Merge remote-tracking branch 'openstreetmap/pull/1367'
Simon Poole [Sat, 17 Dec 2016 13:36:23 +0000 (14:36 +0100)]
Fix misleading wording
We can't provide a free unlimited API for any third-party, not just developers. The change should further make translations less bumpy.
Paul Norman [Sat, 17 Dec 2016 04:58:41 +0000 (20:58 -0800)]
INSTALL.md grammar
Niklas Laxström [Thu, 15 Dec 2016 06:47:28 +0000 (07:47 +0100)]
Localisation updates from https://translatewiki.net.
Siebrand Mazeland [Tue, 6 Dec 2016 12:32:51 +0000 (13:32 +0100)]
Localisation updates from https://translatewiki.net.
Tom Hughes [Tue, 6 Dec 2016 11:53:23 +0000 (11:53 +0000)]
Don't collapse spaces in tag keys and values
Fixes #1386
Tom Hughes [Fri, 2 Dec 2016 22:29:44 +0000 (22:29 +0000)]
Work around upcoming minitest insanity
Minitest 6 will not allow assert_equal to compare for equality
with nil and minitest 5 has already started warning about it.
That's fine if you're comparing with a nil constant, but if you're
comparing with an expression that is sometimes nil and sometimes
not nil it's an absolute pain in the rear end.
Tom Hughes [Fri, 2 Dec 2016 22:01:40 +0000 (22:01 +0000)]
Fix rubocop warnings
Tom Hughes [Fri, 2 Dec 2016 21:54:51 +0000 (21:54 +0000)]
Update bundle
Tom Hughes [Fri, 2 Dec 2016 09:42:05 +0000 (09:42 +0000)]
Simplify monkey patch
The log method has grown new arguments which we weren't passing
on, but fortunately the exception translation is now delegated to
another method so we can patch that instead.
Tom Hughes [Fri, 2 Dec 2016 09:38:18 +0000 (09:38 +0000)]
Remove redundant creation of an exception object
Matt Amos [Fri, 2 Dec 2016 09:31:45 +0000 (09:31 +0000)]
Make API and web roll back any open transactions on timeout
By default the exception thrown by Timeout::timeout is caught
using Kernel::catch so that it cannot be stopped by intermediate
exception handlers. The problem with that is that it stops any
database transactions that were in progress being rolled back
because they never see the exception.
Fortunately passing a class to Timeout::timeout changes it's
behaviour so that the exception is thrown and caught in the normal
way, allowing the database transactions to rollback.
Niklas Laxström [Thu, 1 Dec 2016 06:50:52 +0000 (07:50 +0100)]
Localisation updates from https://translatewiki.net.
Tom Hughes [Tue, 29 Nov 2016 19:30:23 +0000 (19:30 +0000)]
Make sure email replies to diary comments come from the right user
Thomas Skowron [Tue, 29 Nov 2016 19:01:12 +0000 (19:01 +0000)]
Add tab icon for safari/touchbar
Closes #1382
Tom Hughes [Mon, 28 Nov 2016 20:31:04 +0000 (20:31 +0000)]
Clone objects before saving in case of a retry
If a deadlock occurs then the transaction will be retried so we
need to make sure that the object will still be dirty so that it
will be saved again during the retry but that the version won't
be incremented a second time.
Siebrand Mazeland [Mon, 28 Nov 2016 09:16:33 +0000 (10:16 +0100)]
Localisation updates from https://translatewiki.net.
Tom Hughes [Fri, 25 Nov 2016 08:54:57 +0000 (08:54 +0000)]
Increase password stretching to 10000 interations
This is in line with current reccomendations from various sources.
Tom Hughes [Thu, 24 Nov 2016 20:33:36 +0000 (20:33 +0000)]
Use only_path instead of setting an explicit host
Tom Hughes [Thu, 24 Nov 2016 20:23:42 +0000 (20:23 +0000)]
Use image_url instead of image_path with the host option
Fixes #1379
Andy Allan [Thu, 24 Nov 2016 17:47:16 +0000 (17:47 +0000)]
Add missing xmlns:dc for notes rss
Andy Allan [Thu, 24 Nov 2016 17:07:59 +0000 (17:07 +0000)]
Use the assets pipeline for images in the changeset feeds.
This brings it into line with the other feeds.
Andy Allan [Thu, 24 Nov 2016 17:06:14 +0000 (17:06 +0000)]
Use a full url for the image in the diary rss feed.
This is what was intended by
ee2a941d3eb7279aed5829ddbafe1cc9f9631459
which fixed the same problem in a different place.
Andy Allan [Thu, 24 Nov 2016 11:41:04 +0000 (11:41 +0000)]
Add missing xmlns declaration for diary_entries
This is already present in the other feeds.
Niklas Laxström [Thu, 24 Nov 2016 07:36:25 +0000 (08:36 +0100)]
Localisation updates from https://translatewiki.net.
Tom Hughes [Mon, 21 Nov 2016 13:17:39 +0000 (13:17 +0000)]
Update to leaflet 1.0.2
Tom Hughes [Thu, 17 Nov 2016 20:38:16 +0000 (20:38 +0000)]
Merge remote-tracking branch 'openstreetmap/pull/1375'
Martin Raifer [Thu, 17 Nov 2016 10:47:11 +0000 (11:47 +0100)]
Fix misspelling (lon -> lng)
Fixes https://github.com/openstreetmap/iD/issues/3588
Closes #1374
Bryan Housel [Thu, 17 Nov 2016 19:24:05 +0000 (14:24 -0500)]
Update to iD v2.0.1
Andy Allan [Thu, 17 Nov 2016 11:08:36 +0000 (11:08 +0000)]
Add tags to features before propogating them.
Andy Allan [Thu, 17 Nov 2016 10:49:52 +0000 (10:49 +0000)]
Fix spelling of propagate.
Andy Allan [Thu, 17 Nov 2016 10:26:54 +0000 (10:26 +0000)]
Be explicit in which traces are expected.
I think this is an improvement compared to running db queries to
fetch the expected results.
Siebrand Mazeland [Thu, 17 Nov 2016 09:08:08 +0000 (10:08 +0100)]
Localisation updates from https://translatewiki.net.
Andy Allan [Wed, 16 Nov 2016 20:08:16 +0000 (20:08 +0000)]
Create object for list tests, and assert the responses have the
required number of results.
Previously, the tests would pass regardless of whether anything was
in the database.
Andy Allan [Wed, 16 Nov 2016 17:45:26 +0000 (17:45 +0000)]
Rename test trace fixtures to use letters instead of numbers.
This prevents them from being deleted by mistake, if trace.delete is
called on a factory-generated trace with a coincidental id.
Bryan Housel [Tue, 15 Nov 2016 15:40:42 +0000 (10:40 -0500)]
Fix misspelling, @lng -> @lon
Bryan Housel [Tue, 15 Nov 2016 15:16:34 +0000 (10:16 -0500)]
Update to iD v2.0.0