%# # @file # The inner HTML for switching your metacode set #%> <% 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 + '
' + m.name.downcase + '
' + m.name.downcase + '
Choose Your Metacodes
<% @list = '' %> <% metacodesInUse = user_metacodes() %> <% Metacode.order("name").all.each_with_index do |m, index| %> <% mClass = metacodesInUse.index(m) == nil ? "toggledOff" : "" %> <% @list += '' + m.name.downcase + '