Commit 28f324ab authored by gubala's avatar gubala

showing image tooltip on hover

parent 7aca2514
......@@ -60,7 +60,11 @@
- if entry[:is_dir]
= link_to display_name, folder_path(path: target_path)
- 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),
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
= form_tag update_file_path(path: target_path), method: :put, class: 'rename-form hidden form-inline' do
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