Commit 610fc93a authored by gubala's avatar gubala

test of path links for prom

parent d340e0a8
......@@ -3,14 +3,18 @@
- current_crumb = '/'
= succeed ':' do
= t 'listing_folder'
- crumb_path = @path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "/")
- crumb_path = @path
- prometheus = false
- if crumb_path.include? "login01.prometheus.cyf-kr.edu.pl"
- crumb_path.gsub!("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "/")
- prometheus = true
- crumb_path.split('/').select{|c| c.present?}.each do |crumb|
- crumb = crumb
-# current_crumb += CGI.escape(crumb) + '/'
- current_crumb += crumb + '/'
%li
- crumb_name = URI.unescape(crumb.size > 64 ? crumb[0..64]+'...' : crumb)
= link_to crumb_name, folder_path(path: current_crumb)
= link_to crumb_name, folder_path(path: prometheus ? '/prometheus' + current_crumb : current_crumb)
%li
......
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