From 6d4c8c95c206b14f34c720d6c94833943750eba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 15 Apr 2024 23:29:18 +0800 Subject: [PATCH] Add hidden class when sign_up_overdue. --- app/controllers/seminars_controller.rb | 1 + app/views/seminars/show_data.html.erb | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/seminars_controller.rb b/app/controllers/seminars_controller.rb index 6db4690..7b3e36f 100644 --- a/app/controllers/seminars_controller.rb +++ b/app/controllers/seminars_controller.rb @@ -360,6 +360,7 @@ class SeminarsController < ApplicationController 'sign_up' => sign_up, 'contribute_action' => contribute_action, 'time_now' => time_now, + 'sign_up_overdue' => sign_up_overdue, 'contribute_time_range' => SeminarMain.time_range(seminar.contribute_start_date, seminar.contribute_end_date), 'sign_up_time_range' => SeminarMain.time_range(seminar.signup_start_date, seminar.signup_end_date), 'seminar_time_range' => SeminarMain.time_range(seminar.seminar_start_date, seminar.seminar_end_date) diff --git a/app/views/seminars/show_data.html.erb b/app/views/seminars/show_data.html.erb index cbef6aa..77f91c0 100644 --- a/app/views/seminars/show_data.html.erb +++ b/app/views/seminars/show_data.html.erb @@ -9,7 +9,8 @@ @sign_up_time_range = data["sign_up_time_range"] @seminar_time_range = data["seminar_time_range"] @contribute_time_range = data["contribute_time_range"] - @contribute_action = data["contribute_action"] + @contribute_action = data["contribute_action"] + @sign_up_overdue = data["sign_up_overdue"] %> @@ -49,7 +50,7 @@ <%= @contribute_time_range %> <% end %> - + > <%= t('seminar.signup') %> <%= @sign_up %>
<%= @contribute_action %> -- 2.40.1