summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-02-04 05:32:04 +0000
committerGo MAEDA <maeda@farend.jp>2020-02-04 05:32:04 +0000
commita0b909d523969194f0bf1adeb862e2c4335e32e9 (patch)
treecaa4e183d015c85f9ac0ae42b444043e97439645 /app/controllers/repositories_controller.rb
parent01f523f1658bdac92cfd2d1bfeb6999db2f23b46 (diff)
downloadredmine-a0b909d523969194f0bf1adeb862e2c4335e32e9.tar.gz
redmine-a0b909d523969194f0bf1adeb862e2c4335e32e9.zip
Repository browser does not render previews for audio/video files (#32153).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19492 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index 6994eb294..269bc70a0 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -131,6 +131,12 @@ class RepositoriesController < ApplicationController
def entry
entry_and_raw(false)
+ @raw_url = url_for(:action => 'raw',
+ :id => @project,
+ :repository_id => @repository.identifier_param,
+ :path => @path,
+ :rev => @rev,
+ :only_path => true)
end
def entry_and_raw(is_raw)