[openstreetmap/openstreetmap-website] Dressed up notification mails (#1401)
Hervé Saint-Amand
notifications at github.com
Mon Jan 16 23:06:11 UTC 2017
saintamh commented on this pull request.
> <% else %>
<%= t "notifier.changeset_comment_notification.commented.partial_changeset_without_comment" %>
<% end %>
</p>
-==
-<%= @comment.to_html %>
-==
+<%= render "notifier/user_message_table", :captured => capture { %>
I've added a helper function, `message_body`, that takes a block and calls `render`. Now you can insert the message box like this:
```
<%= message_body do %>
Message body goes here haha
<% end %>
```
This could be neat or this could be overkill, my Rails-foo is not strong enough to tell.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1401
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170116/dbbb02b2/attachment-0001.html>
More information about the rails-dev
mailing list