Commit 28f324ab authored by gubala's avatar gubala

showing image tooltip on hover

parent 7aca2514
...@@ -60,8 +60,12 @@ ...@@ -60,8 +60,12 @@
- if entry[:is_dir] - if entry[:is_dir]
= link_to display_name, folder_path(path: target_path) = link_to display_name, folder_path(path: target_path)
- else - else
-#= link_to display_name, file_path(path: target_path), method: :post - if entry[:name].end_with?('jpg', 'jpeg', 'png', 'gif')
= link_to display_name, file_path(path: target_path) = link_to display_name, file_path(path: target_path),
title: "<img height='256px' src='#{file_path(path: target_path)}'>",
data: { html: true }
- else
= link_to display_name, file_path(path: target_path)
- if entry[:owner] == current_user.login - if entry[:owner] == current_user.login
= form_tag update_file_path(path: target_path), method: :put, class: 'rename-form hidden form-inline' do = form_tag update_file_path(path: target_path), method: :put, class: 'rename-form hidden form-inline' do
.btn-grp.btn-group-xs.nowrap .btn-grp.btn-group-xs.nowrap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment