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

View File

@@ -246,7 +246,7 @@
</TMPL_UNLESS>
<!-- download output -->
<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>