<% if params[:custom_module].blank? %>
<% else %> <% config = @custom_bulletin_configs.where(:module=>params[:custom_module]).first %> <% target_model = config.bind_model.constantize %> <% page_num = params[:page] || 1 %> <% target_records = target_model.where(config.title_field.to_sym.nin=>[nil,""]).page(page_num).per(10) %> <% if params[:search_title].present? target_records = target_records.where(config.title_field.to_sym=>/#{params[:search_title].gsub(/(\[|\]|\(|\)|\.)/){|f| "\\"+f}}/) end %>

<%= t("module_name.#{config.module}") %>

<% target_records.each do |record| %> <% uid = record.send(config.uid_field) %> <% end %>
<%= t(:title) %> <%= t("custom_announcement.total_amount") %>
" title="<%=record.send(config.title_field)%>"><%= record.send(config.title_field) %> <%= CustomBulletin.where(:custom_module=>params[:custom_module],:bind_uid=>uid).count %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate(target_records), class: "pagination pagination-centered" end %> <% end %>