Commit 8ae0265c authored by gubala's avatar gubala

better path for create folder

parent c25d3655
module FoldersHelper
def prometheus_path
@path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "prometheus/")
end
def entry_path(entry)
# "#{@path}/#{ERB::Util.url_encode remove_invalid(entry[:name])}"
path = @path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "prometheus/")
"#{path}#{ERB::Util.url_encode entry[:name]}"
"#{prometheus_path}#{ERB::Util.url_encode entry[:name]}"
end
# Removes invalid characters from the entry name so it is safe for further processing
......
.row.hidden#newFolderSection
= form_tag(create_folder_path(@path), class: 'form-inline', role: :form) do
= form_tag(create_folder_path(prometheus_path), class: 'form-inline', role: :form) do
.col-lg-12
......
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