Commit d340e0a8 authored by gubala's avatar gubala

test of path links for prom

parent 7f313c02
......@@ -2,7 +2,8 @@ module FoldersHelper
def entry_path(entry)
# "#{@path}/#{ERB::Util.url_encode remove_invalid(entry[:name])}"
"#{@path}#{ERB::Util.url_encode entry[:name]}"
path = @path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "prometheus/")
"#{path}#{ERB::Util.url_encode entry[:name]}"
end
# Removes invalid characters from the entry name so it is safe for further processing
......
......@@ -3,7 +3,8 @@
- current_crumb = '/'
= succeed ':' do
= t 'listing_folder'
- @path.split('/').select{|c| c.present?}.each do |crumb|
- crumb_path = @path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "/")
- crumb_path.split('/').select{|c| c.present?}.each do |crumb|
- crumb = crumb
-# current_crumb += CGI.escape(crumb) + '/'
- current_crumb += crumb + '/'
......
......@@ -35,8 +35,6 @@
%ul.dropdown-menu
%li
= link_to 'Home', folder_path(path: "/prometheus/net/people/#{current_user.login}/")
-#%li
-# = link_to 'Storage', folder_path(path: "/prometheus/mnt/gpfs/work/people/#{current_user.login}/")
%li
= link_to 'Scratch', folder_path(path: "/prometheus/net/scratch/people/#{current_user.login}/")
- current_user.user_teams.each do |user_team|
......
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