This file is indexed.

/usr/share/sreview/templates/talk.html.ep is in sreview-web 0.3.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
% if (my $cmessage = flash 'completion_message') {
<div class="alert alert-success alert-dismissable fade in">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  <%= $cmessage =%>
</div>
% }
% if (my $emessage = flash 'error_message') {
<div class="alert alert-warning alert-dismissable fade in">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  <%= $emessage =%>
</div>
% }
<h1>Preview recording</h1>
<script>
/* @licstart The following is the entire license notice for this
 * project, including all its JavaScript.
 *
 * Sreview, a web-based video review and transcoding system.
 * Copyright (c) 2016-2017 Wouter Verhelst <w@uter.be>
 *
 * Sreview is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation; either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Affero General Public License for more detilas.
 *
 * You should have received a copy of the GNU Affero General Public
 * License along with Sreview. If not, see
 * <http://www.gnu.org/licenses/>.
 *
 * @licend The above is the entire license notice for this project,
 * including all its JavaScript.
 */
function formitems(which) {
	var disableval = true;
	if(which === 'standard') {
		disableval = false;
	}
        % my $viddata = stash 'corrections';
	% foreach my $correction(sort(keys %{$viddata->{corrvals}})) {
	$('#<%= $correction =%>').prop("disabled", disableval);
	% }
	if(which === 'comments') {
		disableval = false;
	} else {
		disableval = true;
	}
	$('#comment_text').prop("disabled", disableval);
	if(which === 'standard') {
		$('#length_adj').val(sreview_viddata.get_length_adjust());
		$('#offset_start').val(sreview_viddata.get_start_offset());
	}
}
function setPoint(vid, startstop, time) {
	sreview_viddata.set_point(vid, startstop, time);
	$('#standard').prop("checked", true);
	formitems('standard');
};
function edit_offset_start(val) {
	sreview_viddata.set_start_offset(val);
};
function edit_length_adj(val) {
	sreview_viddata.set_length_adj(val);
};
</script>
<p>This video is for the talk entitled <q><strong><%= $talk_title %></strong></q> by <strong><%= $talk_speakers %></strong> which happened in room <strong><%= $room %></strong> from <strong><%= $talk_start %></strong> to <strong><%= $talk_end %></strong> at <strong><%= $event %></strong></p>
<p>To be able to see this preview in your browser, you must use an HTML5 browser which supports the WebM format. Alternatively, here is a <a href='<%= $vid_hostname %>/video/<%= $eventid %>/<%= substr($talk_start, 0, 10) %>/<%= substr($room, 0, 1) %>/<%= $slug %>.<%= $exten %>'>direct download <span class="glyphicon glyphicon-download"></span></a> of the same file.</p>
<p>
<div class="row">
  <div class="col-sm-6">
    <p>In case it is needed (and they were recorded), these are the 20 minutes before...:</p>
    <div class="embed-responsive embed-responsive-16by9"><video id="video-pre" class="embed-responsive-item" controls="controls" src="<%= $vid_hostname %>/video/<%= $eventid %>/<%= substr($talk_start, 0, 10) %>/<%= substr($room, 0, 1)%>/<%= $slug %>-pre.<%= $exten %>?date=<%= localtime %>"></video></div>
    <div class="btn-group btn-group-justified">
      <div class="btn-group"><button class="btn" onclick="setPoint('pre', 'start', document.getElementById('video-pre').currentTime);">Take start point</button></div>
      <div class="btn-group"><button class="btn" onclick="setPoint('pre', 'end', document.getElementById('video-pre').currentTime);">Take end point</button></div>
    </div>
  </div>
  <div class="col-sm-6">
    <p>... and after this talk:</p>
    <div class="embed-responsive embed-responsive-16by9"><video id="video-post" class="embed-responsive-item" controls="controls" src="<%= $vid_hostname %>/video/<%= $eventid %>/<%= substr($talk_start, 0, 10) %>/<%= substr($room, 0, 1)%>/<%= $slug %>-post.<%= $exten %>?date=<%= localtime %>"></video></div>
    <div class="btn-group btn-group-justified">
      <div class="btn-group"><button class="btn" onclick="setPoint('post', 'start', document.getElementById('video-post').currentTime);">Take start point</button></div>
      <div class="btn-group"><button class="btn" onclick="setPoint('post', 'end', document.getElementById('video-post').currentTime);">Take end point</button></div>
    </div>
  </div>
</div>
<div class="row">
  <div class="col-sm-12">
    <p>Main video:</p>
    <div class="embed-responsive embed-responsive-16by9"><video id="video-main" class="embed-responsive-item" controls="controls" autoplay="autoplay" src="<%= $vid_hostname %>/video/<%= $eventid %>/<%= substr($talk_start, 0, 10) %>/<%= substr($room, 0, 1)%>/<%= $slug %>.<%= $exten %>?date=<%= localtime %>"></video></div>
    <div class="btn-group btn-group-justified">
      <div class="btn-group"><button class="btn" onclick="setPoint('main', 'start', document.getElementById('video-main').currentTime);">Take start point</button></div>
      <div class="btn-group"><button class="btn" onclick="setPoint('main', 'end', document.getElementById('video-main').currentTime);">Take end point</button></div>
    </div>
  </div>
</div>
<div class="well"><p>Making any changes in the form below does <em>not</em> remove the originals. Nothing you do here can result in data loss!</p></div>
% my $disabled = "disabled";
% my $checked = "";
% if (defined($state)) {
<p>The current state of this talk is <em><%= $state %></em>.</p>
%   if ($state eq 'preview' || $state eq 'broken') {
%     $disabled = '';
%     $checked = "checked";
%   } 
%   if ($state eq 'broken') {
%     param choice => 'comments'
%   }
% }
%= form_for $target => (method => 'POST', class => "form-horizontal") => begin
  % my $talk = param('talk');
  % if(defined($talk)) {
  %= hidden_field talk => param('talk')
  % }
  % if(my $nonce = stash 'nonce') {
  %= hidden_field nonce => $nonce;
  % }
  <fieldset>
    <legend>Reset</legend>
    <div class="form-group">
      %= radio_button choice => 'reset', id => 'reset', $checked => $checked, onchange => "formitems('reset')";
      %= label_for reset => "Do not make changes, do not notify video team; set the state back to \"preview\".", class => "minor"
    </div>
  </fieldset>
  <fieldset>
    <legend>OK</legend>
    <div class="form-group">
      %= radio_button choice => 'ok', id => 'ok', $disabled => $disabled, onchange => "formitems('ok')";
      %= label_for ok => 'The current representation of the "main" video above looks OK and contains all content which it should contain; please transcode that at high quality and release it.'
    </div>
  </fieldset>
  <fieldset>
    <legend>Common fixes</legend>
    <div class="form-group">
      %= radio_button choice => 'standard', id => 'standard', $disabled => $disabled, onchange => "formitems('standard')";
      %= label_for standard => 'This preview has some issues. Please fix the following and generate all three video above anew:'
    </div>
    % foreach my $correction(sort (keys %{$viddata->{corrvals}})) {
    <div class="form-group">
      %= label_for "correction_$correction" => $viddata->{corrdescs}{$correction}, class => 'control-label col-sm-2';
      <div class="col-sm-10">
        <div class="input-group">
          %= text_field "correction_$correction" => $viddata->{corrvals}{$correction}, id => $correction, onchange => "edit_$correction(this.value)", class => 'form-control', disabled => "disabled";
          <div class="input-group-btn">
            <a class="btn btn-default" data-placement="left" data-toggle="popover" data-content="<%= $viddata->{corrhelps}{$correction} =%>" title="<%= $viddata->{corrdescs}{$correction} =%>">
              <i class="glyphicon glyphicon-question-sign"></i>
            </a>
          </div>
        </div>
      </div>
    </div>
  % }
  </fieldset>
  <fieldset>
  <legend>Other brokenness</legend>
  <div class="form-group">
    %= radio_button choice => 'comments', id => 'comments', $disabled => $disabled, onchange => "formitems('comments')";
    %= label_for comments => 'This preview has the following issues not covered by the above:'
    <br>
    %= text_area 'comment_text' => ( id => 'comment_text', rows => 10, class => 'form-control', disabled => 'disabled' ) => begin
    <%= $comments =%>
    % end
    <div class="well">Note: if you choose this option, your video will be marked as <q>broken</q> until the video team has had time to look at it or you set it back to preview by choosing the first option in this form.</div>
    <div class="small">this talk's nonce is <%= $talk_nonce %></div>
  </div>
  </fieldset>
  %= submit_button 'ok' => (class => 'btn btn-primary');
% end
<script>
$(document).ready(function() {
  $('[data-toggle="popover"]').popover({
    container: 'body'
  });
});
</script>