Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 6883541

Browse files
Lorem ipsum
1 parent 04da752 commit 6883541

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

app/components/shared/page_body.rb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PageBody < Hyperloop::Component
1818
scrollTop: anchorchapter_position
1919
}, 500)
2020

21-
21+
2222
# end
2323
end
2424
convert_runable_code_blocks
@@ -29,17 +29,21 @@ class PageBody < Hyperloop::Component
2929
if SiteStore.sections[params.section].loaded?
3030

3131
set_pagebody_cssstyle
32-
32+
3333
edit_button if SiteStore.sections[params.section].current_page[:allow_edit]
34-
35-
DIV(class: 'pagebody', dangerously_set_inner_HTML: { __html: SiteStore.sections[params.section].current_page[:html] })
36-
34+
35+
puts params.section
36+
# html = SiteStore.sections[params.section].current_page[:html].to_s
37+
html = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Aenean vel elit scelerisque mauris pellentesque pulvinar pellentesque habitant. Metus vulputate eu scelerisque felis imperdiet proin. Cursus mattis molestie a iaculis at erat. Nisl vel pretium lectus quam id leo in vitae. Morbi tempus iaculis urna id volutpat lacus laoreet non. Suspendisse sed nisi lacus sed. A arcu cursus vitae congue. Elit scelerisque mauris pellentesque pulvinar pellentesque habitant morbi. In dictum non consectetur a erat nam at lectus urna. Pellentesque dignissim enim sit amet venenatis urna. Est sit amet facilisis magna. Sit amet aliquam id diam maecenas ultricies. In nisl nisi scelerisque eu ultrices vitae."
38+
39+
DIV(class: 'pagebody', dangerously_set_inner_HTML: { __html: html } )
40+
3741
end
3842
end
3943
end
4044

4145
def set_pagebody_cssstyle
42-
46+
4347
#Element['.ptopmargin-2'].prev('h1').css('height', '0em')
4448
# Element['h3'].prev().not('h2').css('margin-bottom', '5em')
4549
# Element['h4'].prev().css('margin-bottom', '5em')

0 commit comments

Comments
 (0)