2013-01-03 11:38:14 +00:00
|
|
|
<%= content_tag :div,:class=>@tag_class do%>
|
|
|
|
<div class="img app-pic">
|
|
|
|
<%= image_tag @data.first.send(@widget_image_field)%>
|
|
|
|
</div>
|
2013-01-04 02:50:08 +00:00
|
|
|
<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])%>
|
2013-01-04 04:33:37 +00:00
|
|
|
<% elsif field[0] == "title" %>
|
|
|
|
<%= content_tag(:span, link_to(row_data.send(field[0]), panel_announcement_front_end_bulletin_path(row_data)), :class=>field[1]) %>
|
2013-01-04 02:50:08 +00:00
|
|
|
<% else %>
|
2013-01-03 11:38:14 +00:00
|
|
|
<%= content_tag(:span,row_data.send(field[0]),:class=>field[1])%>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2013-01-04 02:50:08 +00:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<div class="more">more</div>
|
|
|
|
<% end %>
|