Skip to content

Commit 11cf1cf

Browse files
committed
add a page template for repositories layout (DLC-1157)
1 parent 2f5866c commit 11cf1cf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

app/views/repositories/page.html.erb

+16
Original file line numberDiff line numberDiff line change
@@ -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+
<%- end -%>
15+
</div>
16+
<%- end -%>

0 commit comments

Comments
 (0)