diff --git a/app/views/public/m_odrs/show.html.haml b/app/views/public/m_odrs/show.html.haml
index 384fb23..5a216f7 100644
--- a/app/views/public/m_odrs/show.html.haml
+++ b/app/views/public/m_odrs/show.html.haml
@@ -31,7 +31,11 @@
-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))
- 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"}
-if count > 1
jours !
diff --git a/db/migrate/20200225090129_add_landing_text_to_m_odrs.rb b/db/migrate/20200225090129_add_landing_text_to_m_odrs.rb
new file mode 100644
index 0000000..3fa7b88
--- /dev/null
+++ b/db/migrate/20200225090129_add_landing_text_to_m_odrs.rb
@@ -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
diff --git a/db/schema.rb b/db/schema.rb
index 27b2796..fadbbd3 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -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