2014-02-09 23:54:45 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# this code generates the list of icons that will drop down in the metacode select list on the topic card
|
|
|
|
#%>
|
|
|
|
|
|
|
|
<div id="metacodeOptions">
|
|
|
|
<ul>
|
2014-09-16 01:57:34 +00:00
|
|
|
<% MetacodeSet.order("name").all.each do |set| %>
|
|
|
|
<li>
|
|
|
|
<span><%= set.name %></span>
|
2014-09-20 19:11:58 +00:00
|
|
|
<div class="expandMetacodeSet"></div>
|
2014-09-16 01:57:34 +00:00
|
|
|
<ul>
|
|
|
|
<% set.metacodes.sort { |a, b| a.name <=> b.name }.each do |m| %>
|
|
|
|
<li data-id="<%= m.id.to_s %>">
|
2014-09-20 19:11:58 +00:00
|
|
|
<img width="24" height="24" src="<%= m.icon %>" alt="<%= m.name %>" />
|
2014-11-27 23:10:17 +00:00
|
|
|
<div class="mSelectName"><%= m.name %></div>
|
2014-09-16 01:57:34 +00:00
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<li>
|
|
|
|
<span>All</span>
|
2014-09-20 19:11:58 +00:00
|
|
|
<div class="expandMetacodeSet"></div>
|
2014-09-16 01:57:34 +00:00
|
|
|
<ul>
|
|
|
|
<% Metacode.order("name").all.each do |m| %>
|
|
|
|
<li data-id="<%= m.id.to_s %>">
|
2014-09-20 19:11:58 +00:00
|
|
|
<img width="24" height="24" src="<%= m.icon %>" alt="<%= m.name %>" />
|
2014-11-27 23:10:17 +00:00
|
|
|
<div class="mSelectName"><%= m.name %></div>
|
2014-09-16 01:57:34 +00:00
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2014-02-09 23:54:45 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2015-09-22 14:27:34 +00:00
|
|
|
</div>
|