20 lines
630 B
Plaintext
20 lines
630 B
Plaintext
<%= content_tag :div,:class=>@tag_class do%>
|
|
<div class="img app-pic">
|
|
<%= image_tag @data.first.send(@widget_image_field)%>
|
|
</div>
|
|
<ul class="defulat_widget_list">
|
|
<% @data.each do |row_data| %>
|
|
<%= content_tag(:li) do %>
|
|
<% @fields.each do |field|%>
|
|
<% if field[0] == "bulletin_category"%>
|
|
<%= content_tag(:span,row_data.send(field[0]).title,:class=>field[1])%>
|
|
<% else %>
|
|
<%= content_tag(:span,row_data.send(field[0]),:class=>field[1])%>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
</ul>
|
|
<div class="more">more</div>
|
|
<% end %>
|