link_helper.rb revision 3a0e2da78982f8e291c2c6dbe9425fa60bf2b222
hash = {}
collection.each do |link|
i = 0
i += 1
end
if hash[sym]
else
end
end
end
return hash
end
else
end
else
end
end
data_type = 'data-ontologyclass'
distributed_type = ->(distributed_ontology) do
"distributed_homogeneous_ontology"
else
"distributed_heterogeneous_ontology"
end
end
else
"single_in_#{distributed_type[resource.parent]}"
else
'single_ontology'
end
end
end
end
end
text << content_tag(:span, counter==1 ? subject : subject.pluralize)
link_to text, url
end
def format_links(*args, &block)
options = args.extract_options!
args = %w(xml json) if args.empty?
args.flatten!
options[:url] ||= {}
links = ''
links << capture(&block) << ' ' if block_given?
links << args.collect{ |f|
content_tag :li, link_to(f.to_s.upcase, params.merge(options[:url]).merge(:format => f), :title => "Get this page as #{f.upcase}")
}.join("")
content_tag('ul', links.html_safe, :class => 'formats')
end
end