diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/custom/page_templates/public/chapter_detail.html.erb | 4 | ||||
| -rw-r--r-- | app/views/custom/partials/_chapter.html.erb | 4 | ||||
| -rw-r--r-- | app/views/nodes/edit.html.erb | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/app/views/custom/page_templates/public/chapter_detail.html.erb b/app/views/custom/page_templates/public/chapter_detail.html.erb index 794be823..105ec21a 100644 --- a/app/views/custom/page_templates/public/chapter_detail.html.erb +++ b/app/views/custom/page_templates/public/chapter_detail.html.erb | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | <div class="article" lang="<%= @page.effective_lang %>"> | 1 | <div class="article" lang="<%= @page.effective_lang %>"> |
| 2 | <h1 class="headline"><%= @page.title %></h1> | 2 | <h1 class="headline"><%= @page.title %></h1> |
| 3 | <%= headline_image %> | 3 | <%= headline_image %> |
| 4 | <% if @page.node.external_url.present? %> | 4 | <% if @page.external_url.present? %> |
| 5 | <div class="chapter_url"><%= link_to @page.node.external_url, @page.node.external_url, target: '_blank', rel: 'noopener' %></div> | 5 | <div class="chapter_url"><%= link_to @page.external_url, @page.external_url, target: '_blank', rel: 'noopener' %></div> |
| 6 | <% end %> | 6 | <% end %> |
| 7 | <p><%= sanitize(@page.abstract) %></p> | 7 | <p><%= sanitize(@page.abstract) %></p> |
| 8 | <%= aggregate?(@page.body) %> | 8 | <%= aggregate?(@page.body) %> |
diff --git a/app/views/custom/partials/_chapter.html.erb b/app/views/custom/partials/_chapter.html.erb index 8a92b46f..2065560a 100644 --- a/app/views/custom/partials/_chapter.html.erb +++ b/app/views/custom/partials/_chapter.html.erb | |||
| @@ -7,8 +7,8 @@ | |||
| 7 | <% if page.abstract.present? %> | 7 | <% if page.abstract.present? %> |
| 8 | <div class="chapter_location"><%= page.abstract %></div> | 8 | <div class="chapter_location"><%= page.abstract %></div> |
| 9 | <% end %> | 9 | <% end %> |
| 10 | <% if page.node.external_url.present? %> | 10 | <% if page.external_url.present? %> |
| 11 | <div class="chapter_url"><%= link_to page.node.external_url, page.node.external_url, target: '_blank', rel: 'noopener' %></div> | 11 | <div class="chapter_url"><%= link_to page.external_url, page.external_url, target: '_blank', rel: 'noopener' %></div> |
| 12 | <% end %> | 12 | <% end %> |
| 13 | <% open_days = page.node.events.tagged_with('open-day').order(:start_time) %> | 13 | <% open_days = page.node.events.tagged_with('open-day').order(:start_time) %> |
| 14 | <% if open_days.any? %> | 14 | <% if open_days.any? %> |
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index ae206578..6b5a1234 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -116,8 +116,7 @@ | |||
| 116 | 116 | ||
| 117 | <div class="layout_row_label"><%= t(".external_url") %></div> | 117 | <div class="layout_row_label"><%= t(".external_url") %></div> |
| 118 | <div class="layout_row_content"> | 118 | <div class="layout_row_content"> |
| 119 | <%= f.text_field :external_url %> | 119 | <%= d.text_field :external_url %> |
| 120 | <p class="field_hint"><%= t(".external_url_hint") %></p> | ||
| 121 | </div> | 120 | </div> |
| 122 | 121 | ||
| 123 | <div class="layout_row_label"><%= t(".tags") %></div> | 122 | <div class="layout_row_label"><%= t(".tags") %></div> |
