monikas edits
@ -1,6 +1,6 @@
|
||||
GIT
|
||||
remote: https://github.com/HubFeenixMakers/merged
|
||||
revision: b44c29ff50bbfc07b04a6064804ac3684eed151d
|
||||
revision: a8fbf2d016d7fe051e21fc77bad050059bef498d
|
||||
specs:
|
||||
merged (0.1.0)
|
||||
active_hash
|
||||
@ -147,7 +147,7 @@ GEM
|
||||
formatador (1.1.0)
|
||||
friendly_id (5.5.0)
|
||||
activerecord (>= 4.0.0)
|
||||
git (1.13.1)
|
||||
git (1.13.2)
|
||||
addressable (~> 2.8)
|
||||
rchardet (~> 1.8)
|
||||
globalid (1.1.0)
|
||||
|
BIN
app/assets/images/merged/157.jpg
Normal file
After Width: | Height: | Size: 137 KiB |
BIN
app/assets/images/merged/158.jpg
Normal file
After Width: | Height: | Size: 586 KiB |
BIN
app/assets/images/merged/159.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
app/assets/images/merged/160.jpg
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
app/assets/images/merged/161.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
app/assets/images/merged/162.jpg
Normal file
After Width: | Height: | Size: 134 KiB |
BIN
app/assets/images/merged/163.jpg
Normal file
After Width: | Height: | Size: 161 KiB |
BIN
app/assets/images/merged/164.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
app/assets/images/merged/165.jpg
Normal file
After Width: | Height: | Size: 160 KiB |
BIN
app/assets/images/merged/166.jpg
Normal file
After Width: | Height: | Size: 219 KiB |
BIN
app/assets/images/merged/167.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
app/assets/images/merged/168.jpg
Normal file
After Width: | Height: | Size: 157 KiB |
BIN
app/assets/images/merged/169.jpg
Normal file
After Width: | Height: | Size: 231 KiB |
BIN
app/assets/images/merged/170.jpg
Normal file
After Width: | Height: | Size: 247 KiB |
BIN
app/assets/images/merged/171.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
app/assets/images/merged/172.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
app/assets/images/merged/173.jpg
Normal file
After Width: | Height: | Size: 522 KiB |
39
lib/tasks/merged_tasks.rake
Normal file
@ -0,0 +1,39 @@
|
||||
require "rails"
|
||||
require "merged"
|
||||
|
||||
desc "Explaining what the task does"
|
||||
task :consistency => :environment do
|
||||
{Section: [:image, :page] , Card: [:section , :image]}.each do |name , keys|
|
||||
Merged.check_class(name, keys)
|
||||
end
|
||||
Merged.check_images
|
||||
end
|
||||
|
||||
module Merged
|
||||
|
||||
def self.check_class(name , ids)
|
||||
clazz = self.const_get name.to_s
|
||||
clazz.all.each do |elem|
|
||||
ids.each do |id|
|
||||
check_id(elem , id )
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def self.check_id(elem , id)
|
||||
attr = elem.attributes["#{id}_id".to_sym]
|
||||
return if attr.blank?
|
||||
begin
|
||||
key = self.const_get(id.to_s.capitalize).find( attr.to_i)
|
||||
rescue
|
||||
puts "#{elem.class.name.split('::').last}:#{elem.id} missing #{id}:#{attr}"
|
||||
end
|
||||
end
|
||||
|
||||
def self.check_images
|
||||
Image.all.each do |image|
|
||||
next if File.exist?(image.full_filename)
|
||||
puts "missing image #{image.full_filename}"
|
||||
end
|
||||
end
|
||||
end
|
196
merged/cards.yml
@ -683,3 +683,199 @@
|
||||
:updated_by: torsten@villataika.fi
|
||||
:id: 59
|
||||
:image_id: 143
|
||||
- :section_id: 81
|
||||
:index: 2
|
||||
:header: Fortress Suomenlinna
|
||||
:text: " is a sea fortress, which was built gradually from 1748 onwards on a group
|
||||
of islands belonging to the district of Helsinki. It has served to defend three
|
||||
different sovereign states over the years: the Kingdom of Sweden, the Russian
|
||||
Empire and most recently the Republic of FinlandCurrently is a living district
|
||||
of Helsinki with about 800 inhabitants."
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: solid_black
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:07:50.565766702 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 61
|
||||
:image_id: 160
|
||||
- :section_id: 81
|
||||
:index: 1
|
||||
:header: Helsinki Cathedral
|
||||
:text: is the Finnish Evangelical Lutheran cathedral located in the heart of Helsinki.
|
||||
The church built between the years 1830 and 1852 as a tribute to the Grand Duke
|
||||
Nicholas I, Tsar of Russia. Earlier called St. Nicholas Church and Great Cathedral.
|
||||
In present time has become the symbol of the whole of Helsinki.
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: solid_black
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:02:56.652234630 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 62
|
||||
:image_id: 159
|
||||
- :section_id: 81
|
||||
:index: 3
|
||||
:header: Löyly Sauna
|
||||
:text: 'is a modern seaside sauna with a stylish design.The structure is like a
|
||||
big stone on the sea shore. It provides interesting views open up to city centre
|
||||
and even to open sea between wooden lamellas that cover the warm building mass. '
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:37:48.072489928 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 63
|
||||
:image_id: 161
|
||||
- :section_id: 81
|
||||
:index: 4
|
||||
:header: Uspenski Cathedral
|
||||
:text: is considered to be the largest Orthodox temple in Northern and Western Europe.
|
||||
Uspenski Cathedral is consecrated to the Dormition of the Mother of God.The cathedral
|
||||
was designed by the Russian church architect Aleksei M. Gornostajev. The Uspenski
|
||||
Cathedral was consecrated in 1868.
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:43:57.501447494 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 64
|
||||
:image_id: 162
|
||||
- :section_id: 81
|
||||
:index: 5
|
||||
:header: Old Market Hall
|
||||
:text: 'It has served its customers since 1889. Merchants sell all sorts of cheese,
|
||||
fish, shellfish, vegetable, fruit and cakes to spices, coffee and tea. '
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:48:23.554867099 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 65
|
||||
:image_id: 165
|
||||
- :section_id: 81
|
||||
:index: 6
|
||||
:header: Seurasaari Island
|
||||
:text: 'is rich in wildlife an island in Helsinki museum provides an overview of
|
||||
life in the Finnish countryside by showcasing old, mainly wooden houses built
|
||||
in different eras. '
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:48:40.237976189 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 66
|
||||
:image_id: 167
|
||||
- :section_id: 81
|
||||
:index: 7
|
||||
:header: Temppeliaukio Church
|
||||
:text: is Lutheran church which is built directly into solid rock church hall is
|
||||
covered with a dome, lined with copper and supported on the rock walls by reinforced
|
||||
concrete beams. The interior walls are of rugged rock and rubble wall.
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:48:33.066894533 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 67
|
||||
:image_id: 168
|
||||
- :section_id: 81
|
||||
:index: 8
|
||||
:header: Esplanade Park
|
||||
:text: The popular Esplanade Park, fondly referred to as "Espa" among locals, is
|
||||
the most famous park in Finland and the green heart of Helsinki. People come here
|
||||
to see and be seen, to listen to music and watch performances, and to enjoy picnics.
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:48:53.954919060 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 68
|
||||
:image_id: 169
|
||||
- :section_id: 81
|
||||
:index: 9
|
||||
:header: Helsinki Central railway station
|
||||
:text: The station is mostly clad in Finnish granite, and its distinguishing features
|
||||
are its clock tower and the two pairs of statues holding the spherical lamps,
|
||||
lit at night-time, on either side of the main entrance. The first railway station
|
||||
in Helsinki was built in 1860, as Finland's first railway between Helsinki and
|
||||
Hameenlinna was opened.
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:49:25.301428655 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 69
|
||||
:image_id: 170
|
||||
- :section_id: 81
|
||||
:index: 10
|
||||
:header: Finnish Museum of Natural History
|
||||
:text: 'is a contemporary art museum located on Mannerheimintie in Helsinki, Finland.
|
||||
Its name kiasma, Finnish for chiasma, alludes to the basic conceptual idea of
|
||||
its architect, Steven Holl. Kiasma is a place for crossings and perspectives of
|
||||
the most varied kind. '
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 17:09:18.904299381 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 70
|
||||
:image_id: 173
|
||||
- :section_id: 81
|
||||
:index: 11
|
||||
:header: The National Museum of Finland
|
||||
:text: 'National Museum illustrates Finnish history from medieval times to the 19th
|
||||
century. The museum''s unique exhibits tells of the life from a period of over
|
||||
1000 years. '
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: none
|
||||
text_align: center
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:updated_at: 2023-02-13 15:49:00.315094095 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 71
|
||||
:image_id: 172
|
||||
- :section_id: 82
|
||||
:index: 1
|
||||
:header: ''
|
||||
:text: 'You can take a train from Karis to Helsinki. The trip takes around 55 minutes
|
||||
and you can book your ticket on www.vr.fi. The price for the ticket in one way
|
||||
is around 10-15 € or you can rent a car. '
|
||||
:options:
|
||||
background: light_blue
|
||||
text_color: solid_black
|
||||
text_align: left
|
||||
:updated_at: 2023-02-13 16:08:35.407535170 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 72
|
||||
:image_id: 158
|
||||
|
@ -523,3 +523,156 @@
|
||||
:id: 143
|
||||
:updated_at: 2023-01-25 16:24:43.990281723 +02:00
|
||||
:updated_by: torsten@villataika.fi
|
||||
- :name: winter-in-helsinki-1024x682
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 1024
|
||||
:height: 682
|
||||
:size: 137
|
||||
:id: 157
|
||||
:updated_at: 2023-02-13 11:02:28.121774642 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: STA0470_VR_SMX_web
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 810
|
||||
:height: 540
|
||||
:size: 586
|
||||
:id: 158
|
||||
:updated_at: 2023-02-13 12:49:42.401779722 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: thingshelsinki3
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 804
|
||||
:height: 532
|
||||
:size: 47
|
||||
:id: 159
|
||||
:updated_at: 2023-02-13 13:00:15.911691889 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: site_0583_0004-1200-630-20151104174432
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 792
|
||||
:height: 528
|
||||
:size: 102
|
||||
:id: 160
|
||||
:updated_at: 2023-02-13 16:49:40.172371202 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: avanto-160531_loyly_132
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 800
|
||||
:height: 534
|
||||
:size: 57
|
||||
:id: 161
|
||||
:updated_at: 2023-02-13 16:50:10.737412471 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: helsinki14
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 807
|
||||
:height: 538
|
||||
:size: 133
|
||||
:id: 162
|
||||
:updated_at: 2023-02-13 16:50:41.154614963 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: Panorama-Of-Embankment-In-Hels-78444872q
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 1453
|
||||
:height: 799
|
||||
:size: 160
|
||||
:id: 163
|
||||
:updated_at: 2023-02-13 13:19:05.621703682 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: cce2ee4aa32adb2c632c2ebcac91de32-2519885935
|
||||
:type: png
|
||||
:tags: ''
|
||||
:width: 1513
|
||||
:height: 553
|
||||
:size: 1105
|
||||
:id: 164
|
||||
:updated_at: 2023-02-13 13:20:47.881387948 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: Old-Market-Hall
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 1024
|
||||
:height: 683
|
||||
:size: 160
|
||||
:id: 165
|
||||
:updated_at: 2023-02-13 17:02:25.932701482 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: Seurasaari-Island
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 1024
|
||||
:height: 768
|
||||
:size: 218
|
||||
:id: 166
|
||||
:updated_at: 2023-02-13 13:28:36.636536199 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: _mg_8294
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 739
|
||||
:height: 493
|
||||
:size: 72
|
||||
:id: 167
|
||||
:updated_at: 2023-02-13 17:04:43.570262012 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: Temppeliaukio-Church
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 1024
|
||||
:height: 680
|
||||
:size: 157
|
||||
:id: 168
|
||||
:updated_at: 2023-02-13 16:53:12.641974457 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: the-esplanadi-park
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 1178
|
||||
:height: 785
|
||||
:size: 231
|
||||
:id: 169
|
||||
:updated_at: 2023-02-13 17:06:04.418529968 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: upload-1559614166256
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 1244
|
||||
:height: 829
|
||||
:size: 247
|
||||
:id: 170
|
||||
:updated_at: 2023-02-13 17:12:04.727790195 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: kiasma_generic
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 924
|
||||
:height: 616
|
||||
:size: 77
|
||||
:id: 171
|
||||
:updated_at: 2023-02-13 17:07:20.519108692 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: ba
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 657
|
||||
:height: 438
|
||||
:size: 57
|
||||
:id: 172
|
||||
:updated_at: 2023-02-13 16:59:45.808893807 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
- :name: vk_0025__PM_0259
|
||||
:type: jpg
|
||||
:tags: ''
|
||||
:width: 2400
|
||||
:height: 1600
|
||||
:size: 522
|
||||
:id: 173
|
||||
:updated_at: 2023-02-13 17:09:18.885604762 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
|
@ -50,8 +50,10 @@
|
||||
:type: page
|
||||
:updated_by: torsten@villataika.fi
|
||||
:id: 15
|
||||
- :name: helsinki_turku
|
||||
:updated_at: 2023-01-25 03:45:20.978053091 +02:00
|
||||
- :name: helsinki
|
||||
:updated_at: 2023-02-13 14:40:58.881445210 +02:00
|
||||
:type: page
|
||||
:updated_by: torsten@villataika.fi
|
||||
:id: 16
|
||||
:options: {}
|
||||
:redirects: helsinki_turku
|
||||
|
@ -105,7 +105,7 @@
|
||||
text_align: left
|
||||
:header: Food
|
||||
:text: "\r\n "
|
||||
:image_id: 0
|
||||
:image_id:
|
||||
:card_template: card_wide_square
|
||||
- :template: section_cards
|
||||
:index: 1
|
||||
@ -165,7 +165,7 @@
|
||||
:text: "Volunteers live in their own shared community. There is usually between
|
||||
6-12, rarely less or more.\r\nWhile you get to know many people this way, communal
|
||||
also requires everyone to participate (socially, cleaning etc)"
|
||||
:image_id: 0
|
||||
:image_id:
|
||||
:card_template: card_wide_square
|
||||
- :template: section_cards
|
||||
:index: 4
|
||||
@ -340,7 +340,7 @@
|
||||
if you have any hobby or skill you would like to share with others. We've already
|
||||
had for example Japanese tea seremony, photographing, French bread baking, Jiujitsu,
|
||||
Yoga and so on..."
|
||||
:image_id: 0
|
||||
:image_id:
|
||||
- :template: section_cards
|
||||
:index: 4
|
||||
:page_id: 8
|
||||
@ -458,7 +458,7 @@
|
||||
text_align: center
|
||||
:header: Summer and winter
|
||||
:text: we've dedicated a page for the main seasons, you can fill in the dots between
|
||||
:image_id: 0
|
||||
:image_id:
|
||||
- :template: section_cards
|
||||
:index: 4
|
||||
:page_id: 11
|
||||
@ -568,3 +568,73 @@
|
||||
:options: {}
|
||||
:header: Latest Pictures
|
||||
:text: ''
|
||||
- :template: section_half_image
|
||||
:index: 1
|
||||
:page_id: 16
|
||||
:updated_at: 2023-02-13 16:21:14.887869550 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 80
|
||||
:card_template: ''
|
||||
:options:
|
||||
subheader: ''
|
||||
margin: none
|
||||
order: left
|
||||
text_color: solid_black
|
||||
text_align: left
|
||||
background: light_blue
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
fixed: 'on'
|
||||
item_align: left
|
||||
image_align: left-top
|
||||
shade_color: white_25
|
||||
:image_id: 163
|
||||
:header: Tips for Helsinki trip
|
||||
:text: The city is well-known for its innovative art, culture and architecture.
|
||||
The capital city of Findland is located on peninsula in the Gulf of Finland in
|
||||
the Uusimaa region. The town of Helsinki was founded by King Gustavus Vasa of
|
||||
Sweden. A poetic name for Helsinki is "the daughter of the Baltic Sea. Currently
|
||||
is the largest city in Finland. The are over 650 000 people who live there. Staying
|
||||
at the Hubfeenix is a great opportunity to travel for a weekend overthere.
|
||||
- :template: section_cards
|
||||
:index: 3
|
||||
:page_id: 16
|
||||
:header: What to see in Helsinki ?
|
||||
:text: ''
|
||||
:options:
|
||||
order: left
|
||||
background: none
|
||||
text_color: none
|
||||
text_align: center
|
||||
subheader: ''
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
text_columns: '3'
|
||||
margin: none
|
||||
item_align: left
|
||||
columns: '4'
|
||||
:updated_at: 2023-02-13 14:48:49.353092719 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 81
|
||||
:card_template: card_normal_round
|
||||
:image_id: 158
|
||||
- :template: section_cards
|
||||
:index: 2
|
||||
:page_id: 16
|
||||
:updated_at: 2023-02-13 17:13:30.394024446 +02:00
|
||||
:updated_by: maijanposteja@gmail.com
|
||||
:id: 82
|
||||
:card_template: card_full_image
|
||||
:options:
|
||||
background: white
|
||||
columns: '1'
|
||||
subheader: ''
|
||||
text_color: solid_black
|
||||
text_align: left
|
||||
text_columns: '2'
|
||||
margin: none
|
||||
button_link: ''
|
||||
button_text: ''
|
||||
:image_id: 158
|
||||
:header: How to get to Helsinki ?
|
||||
:text: ''
|
||||
|