Update for OpenFest 2019

This commit is contained in:
Petko Bordjukov 2019-10-04 12:04:52 +03:00
parent d59b04d409
commit 328635a74f
7 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
class Talk < ActiveResource::Base class Talk < ActiveResource::Base
has_many :selections, class_name: 'SelectedTalk' has_many :selections, class_name: 'SelectedTalk'
self.site = "https://cfp.openfest.org/api/conferences/5" self.site = "https://cfp.openfest.org/api/conferences/6"
self.element_name = "event" self.element_name = "event"
def self.ordered_by_id def self.ordered_by_id

View File

@ -72,10 +72,10 @@
<div class="wholeday room1 day_1 guide"></div> <div class="wholeday room1 day_1 guide"></div>
<div class="wholeday room1 day_3 guide"></div> <div class="wholeday room1 day_3 guide"></div>
<div class="track" id="35"><h2>Technical</h2><div id="qrcode" class="hidden"></div></div> <div class="track" id="49"><h2>Technical</h2><div id="qrcode" class="hidden"></div></div>
<div class="track" id="38"><h2>OpenBiz</h2></div> <div class="track" id="44"><h2>Advanced Technical</h2></div>
<div class="track" id="36"><h2>Civic Hacking</h2></div> <div class="track" id="45"><h2>OpenBiz</h2></div>
<div class="track" id="39"><h2>Social</h2></div> <div class="track" id="43"><h2>Civic Hacking</h2></div>
<div class="track" id="41"><h2>OpenArt</h2></div> <div class="track" id="46"><h2>Social</h2></div>
<div class="track" id="37"><h2>Advanced Technical</h2></div> <div class="track" id="48"><h2>OpenArt</h2></div>
<div class="track" id="40"><h2>Education</h2></div> <div class="track" id="47"><h2>Education</h2></div>

View File

@ -1,6 +1,6 @@
bg: bg:
generic: generic:
title: Възможни лекции за OpenFest 2018 title: Възможни лекции за OpenFest 2019
submit: Изпрати submit: Изпрати
store_and_submit_changes: Запази локално промените и ги изпрати, ако е възможно store_and_submit_changes: Запази локално промените и ги изпрати, ако е възможно
help_us_reduce_the_conflicts: Помогнете ни да намалим конфликтите в програмата на OpenFest help_us_reduce_the_conflicts: Помогнете ни да намалим конфликтите в програмата на OpenFest

View File

@ -1,6 +1,6 @@
en: en:
generic: generic:
title: OpenFest 2018 Talk Preference Poll title: OpenFest 2019 Talk Preference Poll
submit: Submit submit: Submit
store_and_submit_changes: Store your changes locally and submit them if possible store_and_submit_changes: Store your changes locally and submit them if possible
help_us_reduce_the_conflicts: "Help us to reduce the conflicts in OpenFest's schedule" help_us_reduce_the_conflicts: "Help us to reduce the conflicts in OpenFest's schedule"

View File

@ -1,4 +1,4 @@
class CreateTalkPreferences < ActiveRecord::Migration class CreateTalkPreferences < ActiveRecord::Migration[4.2]
def change def change
create_table :talk_preferences, id: false do |t| create_table :talk_preferences, id: false do |t|
t.string :unique_id, null: false t.string :unique_id, null: false

View File

@ -1,4 +1,4 @@
class AddHashedUniqueIdToTalkPreferences < ActiveRecord::Migration class AddHashedUniqueIdToTalkPreferences < ActiveRecord::Migration[4.2]
def change def change
add_column :talk_preferences, :hashed_unique_id, :string add_column :talk_preferences, :hashed_unique_id, :string
add_index :talk_preferences, :hashed_unique_id add_index :talk_preferences, :hashed_unique_id

View File

@ -2,7 +2,7 @@ class TalkPreference < ActiveRecord::Base
self.primary_key = :unique_id self.primary_key = :unique_id
end end
class PopulateHashedUniqueIdInTalkPreferences < ActiveRecord::Migration class PopulateHashedUniqueIdInTalkPreferences < ActiveRecord::Migration[4.2]
def up def up
TalkPreference.all.each do |talk_preference| TalkPreference.all.each do |talk_preference|
talk_preference.hashed_unique_id = Digest::SHA1.hexdigest(talk_preference.unique_id) talk_preference.hashed_unique_id = Digest::SHA1.hexdigest(talk_preference.unique_id)