2013-07-19 10:39:13 +00:00
|
|
|
<%= content_tag :div, class: @tag_class do %>
|
2013-01-03 11:38:14 +00:00
|
|
|
<div class="img app-pic">
|
2013-07-19 10:39:13 +00:00
|
|
|
<%= image_tag @data.first.send(@widget_image_field) %>
|
2013-01-03 11:38:14 +00:00
|
|
|
</div>
|
2013-01-10 01:40:52 +00:00
|
|
|
<ul class="default_widget_list">
|
2013-01-04 02:50:08 +00:00
|
|
|
<% @data.each do |row_data| %>
|
2013-07-19 10:39:13 +00:00
|
|
|
<%= content_tag(:li, class: get_top_hot_class(row_data)) do %>
|
|
|
|
<% @frontend_field_names.each_with_index do |field, index|%>
|
|
|
|
<%= content_tag(:span, link_to_field(row_data, field, @frontend_sat_to_links[index], {orig_page: @page_id.to_s, category_id: get_row_category(row_data), tag_id: get_row_tags(row_data)}), class: @frontend_classes[index]) unless field.blank? %>
|
2013-01-03 11:38:14 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2013-01-04 02:50:08 +00:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|