diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-17 09:51:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-17 09:51:19 +0000 |
commit | 580b591c57a0a70f7cf8a1dd34be85e0fcaa8b05 (patch) | |
tree | 77419f10ff7883b8d81cd186e2f419c46d3af908 /app/views/common | |
parent | 0a9b0dd46c917cacb6b04298c0d1aa3a0055a473 (diff) | |
download | redmine-580b591c57a0a70f7cf8a1dd34be85e0fcaa8b05.tar.gz redmine-580b591c57a0a70f7cf8a1dd34be85e0fcaa8b05.zip |
Add download link to no preview message (#26035).
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@16673 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r-- | app/views/common/_other.html.erb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/common/_other.html.erb b/app/views/common/_other.html.erb index fe0228a50..74d87a60a 100644 --- a/app/views/common/_other.html.erb +++ b/app/views/common/_other.html.erb @@ -1 +1,7 @@ -<p class="nodata"><%= l(:label_no_preview) %></p> +<p class="nodata"> + <% if defined? download_link %> + <%= t(:label_no_preview_alternative_html, link: download_link) %> + <% else %> + <%= l(:label_no_preview) %> + <% end %> +</p> |