Skip to content

Commit

Permalink
Install the email templates (and also create the other directories wh…
Browse files Browse the repository at this point in the history
…ile at it)
  • Loading branch information
yoe committed Feb 18, 2020
1 parent c7764e9 commit ab72bb0
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ansible/playbooks/roles/encoder-storage/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,29 @@
name: nfs-server
state: restarted
when: reviewstorage_nfs_exported.changed

- name: "create assets directory"
file:
path: /srv/sreview/assets
state: directory

- name: "create other directories"
file:
path: /srv/sreview/{{ item }}
state: directory
owner: 2000
group: 2000
with_items:
- storage
- output

- name: "Create email templates"
template:
dest: /srv/sreview/assets/{{ item }}
src: "{{ item }}"
owner: root
group: root
mode: 0644
with_items:
- announce_email.ep.j2
- notify_email.ep.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Hi!

This is to inform you that your talk at {{ event.fullname }}, with title

<%== $title %>

has been fully transcoded and uploaded to

% my $room = $talk->room;
% $room =~ s/ \(.*//;
https://video.fosdem.org/{{ event.year }}/<%== $room . '/' . $talk->slug . ".mp4" %>
https://video.fosdem.org/{{ event.year }}/<%== $room . '/' . $talk->slug . ".webm" %>

Please note however, that it will still take a while for our mirrors to
pick up the video; before that happens, you will not be able to watch
it. Mirror sync may take up to a couple of hours in the worst case.

Additionally, your video will also be linked to from the schedule;
however, this too may take a while.

Should you encounter any issues with your recording, you may contact us
via:

email: [email protected]
IRC: irc.freenode.net, #fosdem-video

Thanks for your assistance,
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
Hi!

This is to inform you that your talk at {{ event.fullname }}, with title

<%== $title %>

is now available for you to review.

Please help us reviewing this talk, so that we can release it sooner. If
you don't do so, we will eventually get around to it ourselves, but that
might take a while.
% my $corrections = $talk->corrections;
% if (exists ($corrections->{serial})) {

We note that this is not the first time you receive this email; this is
because the video has been reviewed a first time (possibly not by you --
check the Cc list, above). For your information, the following
corrections were applied to this video:

Review counter: <%== $corrections->{serial} %>
Start time offset: <%== $corrections->{offset_start} %>
Length adjust: <%== $corrections->{length_adj} %>
A/V sync correction: <%== $corrections->{offset_audio} %>
Audio channel selection: Channel <%== $corrections->{audio_channel} %>
% if (defined($talk->apology)) {

Additionally, this talk has an apology note configured:

"<%== $talk->apology %>"

If the talk is released, the above note will be shown on a "We're sorry,
but we had some technical problems"-type interstitial slide between the
opening credits and the actual talk.

Should you wish to see it changed, please contact the FOSDEM video team
(see below).
% }

Don't worry if you don't understand what the above means. The review
system will have taken your input, and created a new preview video.
Please review it, and confirm it if all is well.
% } else {
We note that this talk may have been previously submitted without any
changes been made to it. This is unlikely to have worked very well, so
we reset the talk to the editing stage.
% }

Should you encounter any issues with your recording, you may contact us
via:

email: [email protected]
IRC: irc.freenode.net, #fosdem-video

To review, please go to the following URL:

<%== $url %>

Thanks for your assistance!

0 comments on commit ab72bb0

Please sign in to comment.