% # encoding: utf-8 %> <% data = action_data @seminars = data["seminars"] @total_pages = data["total_pages"] @time_now = data["time_now"] %> <% begin %>
<%= t(:category) %> | <%= t('seminar.title') %> | <%= t('seminar_signup.time') %> | <%= t('seminar_signup.place') %> | <%= t('seminar.signup') %> |
---|---|---|---|---|
<%= seminar.category.title %> | <%= link_to(seminar_title, seminar.get_frontend_url(seminar_url, :show_data), :target=>'_blank', :title=>seminar_title) %> | <%= SeminarMain.time_range(seminar.seminar_start_date, seminar.seminar_end_date) %> | <%= seminar.act_place %> |
<%= sign_up %> <%= if registration_is_open && seminar.registration_status.include?('C') && (seminar.contribute_start_date.nil? || seminar.contribute_start_date <= @time_now rescue false) && ( seminar.contribute_end_date.nil? || (seminar.contribute_end_date+1.day >= @time_now rescue false) ) if session[:seminar_signup_id].present? && session[:seminar_main_id] == seminar.id button_text = t('seminar_signup.uploads') link_to(button_text, seminar.get_frontend_url(seminar_url, :con_upload), :title=>button_text) else button_text = t('seminar_signup.con_login') link_to(button_text, seminar.get_frontend_url(seminar_url, :con_login), :title=>button_text) end end %> |