add joinlink option to outgoing mail template#603
Conversation
97358b5 to
c1319aa
Compare
|
Even though this looks good to me, in my use case I wouldn't want to allow speakers to join after the event has been accepted. The amount and identities of speakers are what content curation teams base their acceptance on. So the join link shouldn't even work after CfP has ended which by it's nature is before bulk acceptance emails are sent ;) But this, of course, might be handled differently at other conferences so I am not against it. However, once you're obviously expecting it to work that way, you might want to check if joining after CfP ended actually works for you. This might also be a per-conference option: Allow join:
I kind of remember seeing something about this in issue #454. |
|
@erdgeist this PR is just about adding a way to send the request join link by e-mail. The code for allowing/rejecting a join is not affected. The link proposed here does not bypass these tests, it will still bring prospecting users to the "join this event" page. Currently the join_as only allowed before hard deadline: frab/app/controllers/cfp/events_controller.rb Line 107 in 4637676 frab/test/features/event_join_test.rb Line 39 in 4637676 BTW- workaround - one can disable all the join links in a conference by running this in the rails console: |
This PR adds the ability to add
%{joinlink}to outgoing mail template, which will attach a URL to join the event as a speaker (or after #555 as assistant). So the accept email can include somthing like this:Additionally this PR changes the default behavior if the link cannot be generated (for
%{link}and%{joinlink}). The existing code just leaves%{link}. The new code will substitute this for a hyphen, for example:In order for the links to work correctly for both production & dev, this PR adds a new Environment variable
FRAB_PORT. Together withFRAB_PROTOCOL(which was not used) andFRAB_HOSTNAME, they are used for URL generation.---