Commit a3a88950 authored by gubala's avatar gubala

test of path links for prom

parent 610fc93a
......@@ -6,7 +6,7 @@
- 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/", "/")
- crumb_path = crumb_path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "/")
- prometheus = true
- crumb_path.split('/').select{|c| c.present?}.each do |crumb|
- crumb = crumb
......@@ -14,7 +14,7 @@
- current_crumb += crumb + '/'
%li
- crumb_name = URI.unescape(crumb.size > 64 ? crumb[0..64]+'...' : crumb)
= link_to crumb_name, folder_path(path: prometheus ? '/prometheus' + current_crumb : 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