Commit graph

9 commits

Author SHA1 Message Date
Carl Chenet f4b9fe9ff4 Update views with email entry to use email_field - merged with i18n 2017-05-18 19:14:01 +02:00
Carl Chenet 4b497e8652 i18n of invitation request public webpage 2016-11-24 17:55:26 +01:00
joshua stein 9f5e04bbba use _path for most things instead of _url
Instead of hard-coding the scheme and host everywhere, use _path
methods to show relative URLs.

Except that our previous setting of
Rails.application.routes.default_url_options in
config.after_initialize made this moot because Rails inserts that
host into all _path helpers for some reason.  So revert that
setting.

But then anything that wants an absolute URL doesn't know the
hostname and the root_url helper throws an exception.  So make a
Rails.application.root_url shortcut to pass the per-app settings in
Rails.application to root_url.

Now we can just use _path helpers most places but still use _url
ones where we need them, such as in RSS views and e-mail templates.
2015-01-02 17:02:55 -06:00
joshua stein 09f113c66a grammar 2014-05-06 21:29:45 -05:00
joshua stein 33c204e5ca mention that moderators can see invitation emails 2014-05-06 21:29:45 -05:00
joshua stein 78d9734c26 invitation requests: use a proper form_for, highlight errors 2014-02-19 13:16:16 -06:00
joshua stein c6191da912 InvitationRequest: require url (memo) for invitations
otherwise validating requests is kind of difficult
2013-12-02 10:44:36 -06:00
Kartik Agaram bd61657d62 typos in invitations/build 2013-11-19 20:21:13 -08:00
joshua stein 66f433176a add an invitiation request queue
the user tree is pretty big to look through now, so let users submit
a request for an invitation, which logged-in users can browse and
instantly send invites to
2013-10-18 15:49:20 -05:00