18 lines
563 B
Plaintext
18 lines
563 B
Plaintext
<%= content_tag :div,:class=>@tag_class do%>
|
|
<ul class="default_widget_list">
|
|
<% @data.each do |row_data| %>
|
|
<%= content_tag(:li) do %>
|
|
<div class="img app-pic">
|
|
<%= image_tag row_data.send(@widget_image_field)%>
|
|
</div>
|
|
<div class="wrap">
|
|
<% @fields.each do |field|%>
|
|
<%= content_tag(:span,link_to_field(row_data,field[0], orig_page: @page_id.to_s, field[2]),:class=>field[1])%>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
</ul>
|
|
<div class="more">more</div>
|
|
<% end %>
|