suite
This commit is contained in:
parent
a77c20ac9c
commit
63db84a71c
@ -31,6 +31,10 @@
|
||||
-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"}
|
||||
-count = ((@m_odr.start_at) - (Date.today))
|
||||
|
||||
-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"}
|
||||
-if count > 1
|
||||
|
6
db/migrate/20200225090129_add_landing_text_to_m_odrs.rb
Normal file
6
db/migrate/20200225090129_add_landing_text_to_m_odrs.rb
Normal 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
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
# 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|
|
||||
t.string "name"
|
||||
@ -535,6 +535,8 @@ ActiveRecord::Schema.define(version: 2020_02_19_002423) do
|
||||
t.integer "social_image_file_id"
|
||||
t.datetime "created_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"
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user