% 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}") %>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(target_records), class: "pagination pagination-centered"
end
%>
<% end %>