From bcc8039d5426864ed7ccf81b0f394f3fbd924e1b Mon Sep 17 00:00:00 2001 From: Toru Takahashi Date: Sun, 20 May 2018 21:01:00 +0900 Subject: [PATCH] [phase-7]add rendering sidebar to other views --- app/views/glossary_categories/index.html.erb | 2 ++ app/views/glossary_categories/show.html.erb | 2 ++ app/views/glossary_terms/show.html.erb | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/views/glossary_categories/index.html.erb b/app/views/glossary_categories/index.html.erb index de3e535..8742aa0 100644 --- a/app/views/glossary_categories/index.html.erb +++ b/app/views/glossary_categories/index.html.erb @@ -4,6 +4,8 @@ <%= link_to l(:label_glossary_category_new), new_project_glossary_category_path, class: 'icon icon-add' %> +<%= render partial: 'glossary_terms/sidebar' %> + diff --git a/app/views/glossary_categories/show.html.erb b/app/views/glossary_categories/show.html.erb index fca9e16..1521a1c 100644 --- a/app/views/glossary_categories/show.html.erb +++ b/app/views/glossary_categories/show.html.erb @@ -4,6 +4,8 @@ data: {confirm: l(:text_are_you_sure)}, class: 'icon icon-del' %> +<%= render partial: 'glossary_terms/sidebar' %> +

<%=l :label_glossary_category %> #<%=@category.id %>

<%= @category.name %>

diff --git a/app/views/glossary_terms/show.html.erb b/app/views/glossary_terms/show.html.erb index 44f7624..f28673f 100644 --- a/app/views/glossary_terms/show.html.erb +++ b/app/views/glossary_terms/show.html.erb @@ -4,6 +4,8 @@ data: {confirm: l(:text_are_you_sure)}, class: 'icon icon-del' %> +<%= render partial: 'sidebar' %> +

<%=l :label_glossary_term %> #<%= @term.id %>

<%= @term.name %>