This commit is contained in:
Nicolas Bally 2020-02-25 10:03:16 +01:00
parent a77c20ac9c
commit 63db84a71c
3 changed files with 14 additions and 2 deletions

View File

@ -31,7 +31,11 @@
-if @m_odr.start_at > Date.today -if @m_odr.start_at > Date.today
%div{:style => "font-weight:bold;font-weight:800;font-size:2em;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;line-height:200px;position:relative;top:-35px"} %div{:style => "font-weight:bold;font-weight:800;font-size:2em;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;line-height:200px;position:relative;top:-35px"}
-count = ((@m_odr.start_at) - (Date.today)) -count = ((@m_odr.start_at) - (Date.today))
Démarrage dans
-if @m_odr.landing_text?
=@m_odr.landing_text
-else
Démarrage dans
.clock{:style => "margin:2em;display:inline-block;width:auto;margin:0 auto;position:relative;top:35px"} .clock{:style => "margin:2em;display:inline-block;width:auto;margin:0 auto;position:relative;top:35px"}
-if count > 1 -if count > 1
jours ! jours !

View File

@ -0,0 +1,6 @@
class AddLandingTextToMOdrs < ActiveRecord::Migration[6.0]
def change
add_column :m_odrs, :landing_text, :string
add_column :m_odrs, :show_count, :integer, :default => 0
end
end

View File

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_02_19_002423) do ActiveRecord::Schema.define(version: 2020_02_25_090129) do
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
t.string "name" t.string "name"
@ -535,6 +535,8 @@ ActiveRecord::Schema.define(version: 2020_02_19_002423) do
t.integer "social_image_file_id" t.integer "social_image_file_id"
t.datetime "created_at", precision: 6, null: false t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false
t.string "landing_text"
t.integer "show_count", default: 0
t.index ["p_customer_id"], name: "index_m_odrs_on_p_customer_id" t.index ["p_customer_id"], name: "index_m_odrs_on_p_customer_id"
end end