Commit faedfa0c authored by Jurgen Gaeremyn's avatar Jurgen Gaeremyn
Browse files

trying different code - output is not working correctly

parent a238687b
Loading
Loading
Loading
Loading
Loading
+3 −7
Changes for themes/code-editor/layouts/shortcodes/peertube.html: 3 added lines, 7 removed lines.
Original line number Diff line number Diff line
{{ if .IsNamedParams -}}
<div style="position: relative; padding-bottom: 56.25%; margin-bottom: 1rem; height: 0; overflow: hidden;">
    {{ if .IsNamedParams -}}
    <iframe sandbox="allow-scripts allow-popups" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
    src="https://{{ .Get "host" }}/videos/embed/{{ .Get "id" }}?{{ with .Get "title" }}title={{ . }}{{ else }}title=0{{ end }}&{{ with .Get "warning" }}warningTitle={{ . }}{{ else }}warningTitle=0{{ end }}{{ with .Get "subtitle" }}&subtitle={{ . }}{{ end }}&peertubeLink=0" allowfullscreen>
    </iframe>
</div>
    {{- else -}}
<div style="position: relative; padding-bottom: 56.25%; margin-bottom: 1rem; height: 0; overflow: hidden;">
<iframe sandbox="allow-scripts allow-popups" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
    src="https://{{ .Get 0 }}/videos/embed/{{ .Get 1 }}?title=0&warningTitle=0&peertubeLink=0" title="Peertube Video" allowfullscreen>
</iframe>
</div>
    <iframe title="Peertube Video" width="560" height="315" src="https://{{ .Get 0 }}/videos/embed/{{ .Get 1 }}" frameborder="0" allowfullscreen="" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
    {{- end }}
</div>