use download text from template

This commit is contained in:
Milan
2019-03-18 15:22:15 +01:00
parent cb2e1bc30d
commit a455017084
2 changed files with 8 additions and 9 deletions

View File

@@ -755,16 +755,15 @@ sub download {
#print $cmd."\n"; #print $cmd."\n";
print `$cmd`; print `$cmd`;
$request->{params}->{checked}->{download} = $request->{params}->{checked}->{download} = ''
"Hallo,\n\n" . qq{<a href="$url" style="padding:8px;background:#39a1f4;color:white;border-radius:4px;" download="$event->{series_name}#$event->{episode}.mp3">}
. "anbei der Mitschnitt fuer\n" . q{Download: }
. $event->{start_date_name} . ", " . $event->{start_date_name} . ", "
. $event->{start_time_name} . " - " . $event->{start_time_name} . " - "
. $event->{series_name} . ' - ' . $event->{full_title}
. $event->{title} . ":\n" . qq{</a>\n}
. $url . "\n" . qq{<pre>$url</pre>\n}
. "\nDer Link wird nach 7 Tagen geloescht. (bitte nicht weitergeben)\n" . qq{\nDer Link wird nach 7 Tagen geloescht.};
. "Gruss, Peter\n";
} }
} }

View File

@@ -246,7 +246,7 @@
</TMPL_UNLESS> </TMPL_UNLESS>
<!-- download output --> <!-- download output -->
<TMPL_IF download> <TMPL_IF download>
<textarea type="hidden" name="event_id" ><TMPL_VAR download></textarea> <div type="hidden" name="event_id" ><TMPL_VAR download escape=none></div>
</TMPL_IF> </TMPL_IF>