summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-07-05 11:52:50 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-12 19:04:40 +0200
commitf2838e5d1fca5ab819702aed89a1c9e6af2ddafe (patch)
tree91375f55729ec81923a33cfe847fd71f2e2527d6 /application/views/file
parent4650df72898250c027976a4335faef0bc33a4a16 (diff)
Link single paste to autodetection in video/audio/asciinema fragemnts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/file')
-rw-r--r--application/views/file/fragments/asciinema-player.php2
-rw-r--r--application/views/file/fragments/audio-player.php2
-rw-r--r--application/views/file/fragments/video-player.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/application/views/file/fragments/asciinema-player.php b/application/views/file/fragments/asciinema-player.php
index 5eb8041f7..53a500831 100644
--- a/application/views/file/fragments/asciinema-player.php
+++ b/application/views/file/fragments/asciinema-player.php
@@ -1,7 +1,7 @@
<div class="container-wide">
<div class='panel panel-default'>
<div class='panel-heading'>
- <?php echo anchor(site_url($filedata['id']), htmlspecialchars($filedata["filename"])); ?>
+ <?php echo anchor(site_url($filedata['id'])."/", htmlspecialchars($filedata["filename"])); ?>
</div>
<div id="player-container-<?php echo $filedata['id']; ?>" class="asciinema_player" data-url="<?php echo site_url($filedata['id']); ?>"></div>
</div>
diff --git a/application/views/file/fragments/audio-player.php b/application/views/file/fragments/audio-player.php
index 517506039..154153489 100644
--- a/application/views/file/fragments/audio-player.php
+++ b/application/views/file/fragments/audio-player.php
@@ -3,6 +3,6 @@
<audio controls="controls">
<source src="<?php echo site_url($filedata["id"]); ?>">
</audio>
- <?php echo anchor(site_url($filedata['id']), htmlspecialchars($filedata["filename"])); ?>
+ <?php echo anchor(site_url($filedata['id'])."/", htmlspecialchars($filedata["filename"])); ?>
</p>
</div>
diff --git a/application/views/file/fragments/video-player.php b/application/views/file/fragments/video-player.php
index 096bb2d59..6342c1692 100644
--- a/application/views/file/fragments/video-player.php
+++ b/application/views/file/fragments/video-player.php
@@ -1,7 +1,7 @@
<div class="container-wide">
<div class='panel panel-default'>
<div class='panel-heading'>
- <?php echo anchor(site_url($filedata['id']), htmlspecialchars($filedata["filename"])); ?>
+ <?php echo anchor(site_url($filedata['id'])."/", htmlspecialchars($filedata["filename"])); ?>
</div>
<div>
<video controls="controls">