% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/list-check" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/list-check" %> <% end %> <% @filter = params[:filter] new_filter = params[:new_filter] if @filter && params[:clear] @filter.delete(params[:type]) elsif @filter && new_filter if @filter.has_key?(new_filter[:type]) && @filter[new_filter[:type]].include?(new_filter[:id].to_s) @filter[new_filter[:type]].delete(new_filter[:id].to_s) elsif @filter.has_key?(new_filter[:type]) @filter[new_filter[:type]] << new_filter[:id].to_s else @filter.merge!({new_filter[:type] => [new_filter[:id].to_s]}) end elsif new_filter @filter = {new_filter[:type] => [new_filter[:id].to_s]} end if @user && is_admin? @diplomas = Diploma.where(:create_user_id => @user.id).desc(:start_date).page(params[:page]).per(10) else @diplomas = Diploma.where(is_hidden: false, :create_user_id => @user.id).desc(:start_date).page(params[:page]).per(10) end %> <% if is_admin? %>
<% end -%> | <%= t('date_') %> | <%= t('personal_diploma.school_name') %> |
---|---|---|
<%= check_box_tag 'to_change[]', diploma.id.to_s, false, :class => "list-check" %> | <% end -%><%= diploma.start_date.strftime("%Y.%m") %> ~ <%= diploma.end_date.strftime("%Y.%m") %> |
<%= link_to diploma.school_name, panel_personal_diploma_front_end_diploma_path(diploma) %>
|