Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
New dates for updating price
Browse files Browse the repository at this point in the history
  • Loading branch information
numbata committed Jan 31, 2017
1 parent 0a9640b commit f529224
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/helpers/price_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def next_date

date = if current_date < Date.new(2017, 1, 1)
Date.new(2017, 1, 1)
elsif current_date < Date.new(2017, 2, 1)
Date.new(2017, 2, 1)
elsif current_date < Date.new(2017, 2, 15)
Date.new(2017, 2, 15)
elsif current_date < Date.new(2017, 3, 1)
Date.new(2017, 3, 1)
elsif current_date < Date.new(2017, 4, 1)
Expand Down
2 changes: 1 addition & 1 deletion app/models/pricelist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Pricelist
def self.ticket_price
if before(2017, 1, 1)
990
elsif before(2017, 2, 1)
elsif before(2017, 2, 15)
1330
elsif before(2017, 3, 1)
2000
Expand Down
4 changes: 2 additions & 2 deletions app/views/web/contacts/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
%p
При покупке до 31 декабря 2016 года цена 1 билета - 990 рублей.
%br/
%span с 01 по 31 января  - 1330 рублей
%span с 01 января по 14 февраля - 1330 рублей
%br
%span с 01 по 28 февраля - 2000 рублей
%span с 15 по 28 февраля - 2000 рублей
%br
%span с 01 по 31 марта - 2500 рублей
%br
Expand Down

0 comments on commit f529224

Please sign in to comment.