{ metacodes = current_user.settings.metacodes } { selectedSet = metacodes[0].include?("metacodeset") ? metacodes[0].sub("metacodeset-","") : "custom" } { allMetacodeSets = MetacodeSet.order("name").all.to_a } { if selectedSet == "custom" index = allMetacodeSets.length + 2 elsif selectedSet == 'Recent' index = 0 elsif selectedSet == 'Most' index = 1 else set = MetacodeSet.find(selectedSet.to_i) index = allMetacodeSets.index(set) + 2 end }
Use metacode sets to enter different modes of mapping.
' + m.name.downcase + '
The 5 Metacodes you've used most recently.
' + m.name.downcase + '
The 5 Metacodes you've used the most.
' + m.name.downcase + '
{ m.desc }
' + m.name.downcase + '