Commit graph

397 commits

Author SHA1 Message Date
Tom Hughes
24271b75bd Use canonical-rails gem to generate canonical URLs 2017-03-22 18:16:53 +00:00
Tom Hughes
419edf951d Add a canonical URL to the head 2017-03-22 17:14:55 +00:00
Tom Hughes
5cdb835de3 Show offline/readonly messages as normal flash messages 2017-03-10 16:30:04 +00:00
Tom Hughes
dff0eef787 Remove inline styles 2017-03-05 19:51:01 +00:00
Tom Hughes
d7b4f88d5e Remove inline javascript from page header 2017-03-01 21:19:32 +00:00
Tom Hughes
392b68a65f Merge remote-tracking branch 'openstreetmap/pull/1436' 2017-02-23 10:06:42 +00:00
Matt Amos
469f64384d Implement the OWG credit policy for hosting partners.
See https://operations.osmfoundation.org/policies/hosting/
2017-02-17 11:52:04 +00:00
Herve Saint-Amand
fcba1a9857 A better way to contrain the width of the message box whilst also allowing it to shrink on narrow displays
Setting a hard "width" it very compatible, but won't squeeze on narrow screens. Setting max-width works well, except in Outlook and Hotmail. We resort to old skool table tricks: a table with width=100%, with 3 columns, only oneof which, the middle one, had content, and a fixed with. This works.
2017-02-12 12:04:43 +00:00
Herve Saint-Amand
44d4a521a3 Set font on title 2017-02-11 20:50:28 +00:00
Herve Saint-Amand
82a6bb0d5a Make the mails squeezable on narrow screens 2017-02-09 21:39:49 +00:00
Herve Saint-Amand
852cc97707 Fixed alignment & underlining bugs in Outlook / WinMail 2017-02-09 20:38:02 +00:00
Herve Saint-Amand
f2645dd699 Avoid squished-up grey borders around the message on narrow screens 2017-02-08 23:23:46 +00:00
Herve Saint-Amand
68b1d33917 Better alt text for the logo
This is what clients that block images will display, so shorter is better.
2017-02-08 22:37:00 +00:00
Herve Saint-Amand
cca78f9790 Use the same fonts for the footer text as for the rest of the mail 2017-02-08 22:36:21 +00:00
Herve Saint-Amand
07531e8477 Fix title alignment in Outlook/WindowsMail 2017-02-08 22:35:42 +00:00
Herve Saint-Amand
a371aad9ac Renamed apply_inline_css to style_message as suggested 2017-01-28 23:08:25 +00:00
Herve Saint-Amand
1def88b5d2 Left-align logo 2017-01-25 23:01:37 +00:00
Herve Saint-Amand
cf11913d58 Apply inline styling to all <p> tags
Solved the problem of <p> tags being given different padding or color by different clients, without having to copy-paste a string of CSS into every <p> tag in the templates.
2017-01-25 22:50:52 +00:00
Herve Saint-Amand
433b7c5dfa 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.
2017-01-13 22:58:57 +00:00
Herve Saint-Amand
c94213847b 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.
2017-01-13 22:43:23 +00:00
Herve Saint-Amand
479a4bd0d7 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.
2017-01-06 22:37:28 +00:00
Thomas Skowron
fe0f4543c1 Add tab icon for safari/touchbar
Closes #1382
2016-11-29 19:01:12 +00:00
Tom Hughes
49edb79711 Rename cookie_id to banner_cookie 2016-06-23 09:04:07 +01:00
Bryan Housel
e14ec1547e Refactor banner logic into BannerHelper module 2016-06-22 08:19:13 -04:00
Bryan Housel
933335a0ea Set max queuePos high to ensure a banner is shown
Previously it was possible for no banners to fall below max queuePos,
in the situation where several banners get removed from active rotation.
2016-06-21 06:45:22 -04:00
Bryan Housel
5e27978d3c Add support for rotating banners, add banners for SOTM, SOTMUS 2016-06-20 18:09:55 -04:00
Markus Heidelberg
79df0df8c6 Correctly sort the Copyright item in the compact menu
In the default menu it had been moved left by commit bfd11bf79 but
the compact drop-down menu had not been adapted accordingly.

Closes #1185
2016-03-17 10:27:29 +00:00
Tom Hughes
82b4c8e3f0 Pass title to opengraph routine 2015-11-05 11:44:08 +00:00
Tom Hughes
e62e879b3b Add more detail to OpenGraph tags
Closes #1073
2015-10-26 22:27:21 +00:00
Andrew Zaborowski
f4a43c3ce2 Close html <source> tags
Apparently this unclosed tag didn't break rendering but judging from the
fact that this was the only unclosed tag and was introduced recently,
it probably wasn't intended.  The unit tests did expect the tag to be
closed.
2015-10-04 02:13:57 +02:00
Holger Jeromin
37a4fc6dd1 Add srcset to img tags inside picture elements
Some browsers (in particular Safari on iOS) don't support picture
yet but do support srcset on the img tag.
2015-09-15 08:48:50 +01:00
Tom Hughes
d377e8b4f2 Use picture elements to render some more graphics as SVG 2015-09-13 22:42:12 +01:00
Holger Jeromin
ecc4b64a23 Use HTML5 picture element to prefer SVG logo 2015-09-13 10:50:12 +01:00
Tom Hughes
618526ba62 Don't treat flash messages as raw
This will likely break some things, but we should fix them
properly so that the rails auto-escaping can work.

Fixes #1027
2015-08-24 10:49:04 +01:00
Tom Hughes
ad3ba427b7 Fix double XML declaration on trace RSS feeds
Fixes #1034
2015-08-18 19:09:11 +01:00
Tom Hughes
4dceacdeba Make switch to compact and small modes dynamic
The point where we need to switch between normal mode, compact mode
and small mode varies due to different string lengths in different
languages, but that can't be expressed by a media query, so use some
javascript to update as the window size changes.

Fixes #1014
2015-07-22 22:48:22 +01:00
Tom Hughes
996d5413d8 Remove donation drive banner
Fixes #1003
2015-07-11 11:40:14 +01:00
Tom Hughes
9e2db4513e Change donation drive panel to a thank you
Closes #1001
2015-06-30 22:01:44 +01:00
Tom Hughes
876d5614da Add advert for donation drive 2015-06-16 10:38:29 +01:00
Tom Hughes
891ec3d75c More favicon tweaks 2015-06-11 22:25:26 +01:00
Tom Hughes
edfbbf7336 Improve favicons
Following http://stackoverflow.com/questions/2268204/favicon-dimensions
advice on the best range of icons to offer, and using the site linked
there to generate everything.
2015-06-11 21:18:31 +01:00
Tom Hughes
05caad1a5d Fix some validation issues 2015-03-16 20:49:14 +00:00
Tom Hughes
d73a4efef0 Remove inline styling 2015-03-16 20:29:40 +00:00
Tom Hughes
6d9d688080 Simplify close icon for routing panel and fix validation error 2015-03-16 20:26:59 +00:00
Tom Hughes
250bb47cc2 Merge remote-tracking branch 'systemed/routing' 2015-02-16 08:30:29 +00:00
Tom Hughes
27179c8706 Wrap flash messages in a div instead of a paragraph
This allows more complex HTML in the message, closing #896.
2015-02-11 21:32:56 +00:00
Tom Hughes
44a0835487 Move routing "Go" button up alongside the dropdown 2015-02-01 12:58:08 +00:00
Matt Amos
7a44ae6cdc Use CSS rather than HTML attributes for styling. 2015-01-26 18:02:00 +00:00
Matt Amos
5afe47e3f6 Use larger 'spinner' when waiting for route request. Replace HTML in content to avoid resize. 2015-01-26 17:18:32 +00:00
Matt Amos
321218f9b1 Make close button on route dialogue return to index. 2015-01-26 15:02:55 +00:00