We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f5866c commit 11cf1cfCopy full SHA for 11cf1cf
app/views/repositories/page.html.erb
@@ -0,0 +1,16 @@
1
+<%- cache [@subsite, @page] do -%>
2
+<div id="content" class="row mx-auto">
3
+ <h2 class="text-center w-100"><%= @page.title %></h2>
4
+ <%= render Dcv::PageImageComponent.new(depictable: @page, blacklight_config: @subsite.blacklight_config) %>
5
+ <hr class="w-100">
6
+ <%- @page.site_text_blocks.sort { |a,b| a.sort_label <=> b.sort_label }.each do |text_block| -%>
7
+ <div class="inner">
8
+ <%- if text_block.label.present? -%>
9
+ <h3 class="text-center"><%= text_block.label %></h3>
10
+ <%- end -%>
11
+ <%= render Dcv::PageImageComponent.new(depictable: text_block, blacklight_config: @subsite.blacklight_config) %>
12
+ <%= controller.render_markdown(text_block.markdown) %>
13
+ </div>
14
15
+</div>
16
+<%- end -%>
0 commit comments