Skip to content

Commit

Permalink
Remove date configurations from application.yml since they are now av…
Browse files Browse the repository at this point in the history
…ailable in Phase instances. Refs euruko2013#15.
  • Loading branch information
nikosd committed Apr 21, 2013
1 parent bdeb204 commit 61ebb80
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def authentication_links(container = :p)
end

def countdown_to_submissions_end
submissions_end = DateTime.parse(Settings.submissions_end)
submissions_end = Phase::ONE.ending_at
if submissions_end > DateTime.now
content_tag :span, '', id: 'counter', data: {countdown_end: DateTime.parse(Settings.submissions_end).to_i * 1000}
content_tag :span, '', id: 'counter', data: {countdown_end: submissions_end.to_i * 1000}
else
content_tag :span, 'no time'
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/dashboard/_moderator_dashboard.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%
submissions_start = DateTime.parse(Settings.submissions_start).to_date
submissions_start = Phase::ONE.starting_at.to_date

proposals = Proposal.scoped
suggestions = Suggestion.scoped
Expand Down
2 changes: 0 additions & 2 deletions config/application.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ defaults: &defaults
mailer:
from: '"Your Event" <[email protected]>'
bcc: '[email protected]'
submissions_start: '2013-03-28T00:00:00+2'
submissions_end: '2013-04-24T00:00:00+3'

development:
<<: *defaults
Expand Down
2 changes: 0 additions & 2 deletions config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ defaults: &defaults
mailer:
from: '"EuRuKo 2013" <[email protected]>'
bcc: '[email protected]'
submissions_start: '2013-03-28T00:00:00+2'
submissions_end: '2013-04-24T00:00:00+3'

development:
<<: *defaults
Expand Down

0 comments on commit 61ebb80

Please sign in to comment.