diff options
Diffstat (limited to 'app/views/custom/partials/_chapter.html.erb')
| -rw-r--r-- | app/views/custom/partials/_chapter.html.erb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/custom/partials/_chapter.html.erb b/app/views/custom/partials/_chapter.html.erb new file mode 100644 index 0000000..a5b8662 --- /dev/null +++ b/app/views/custom/partials/_chapter.html.erb | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | <div class="article_partial chapter_partial" lang="<%= page.effective_lang %>"> | ||
| 2 | <h2 class="headline"><%= link_to_path page.title, page.node.unique_name %></h2> | ||
| 3 | <% if page.abstract.present? %> | ||
| 4 | <div class="chapter_location"><%= page.abstract %></div> | ||
| 5 | <% end %> | ||
| 6 | <% if page.node.external_url.present? %> | ||
| 7 | <div class="chapter_url"><%= link_to page.node.external_url, page.node.external_url, target: '_blank', rel: 'noopener' %></div> | ||
| 8 | <% end %> | ||
| 9 | <p class="excerpt"><%= sanitize page.body %></p> | ||
| 10 | </div> | ||
