Sha256: fbddfe960884bcc72abf5c80978b66611ca654d467bb26bcc012ae4b38a79e8c

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

<% 
data = []
@attributes.each do |tuple| 
  # component, section - first
  keys = ["component", "section"]
  # the other keys next, sorted by key
  keys += tuple.labels.keys.select { |k| !keys.include?(k) }.sort

  labelstr = keys.collect { |k| "#{k}=#{tuple.labels[k]}" }.join(",")

  # for each datum in our tuple, output one line.
  # This gives us "label1=value1,label2=...,data1=value1" for
  tuple.data.each do |key,value|
    data << "#{labelstr},#{key}=#{value}"
  end
end
-%>
<%= data.sort.join("\n") %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slashport-0.15.12 app/views/var/index.text.erb
slashport-0.15.10 app/views/var/index.text.erb