From 76d7d2d6f47a32d6699b194d217ea7f6c4215775 Mon Sep 17 00:00:00 2001 From: climatebrad Date: Thu, 11 Jul 2024 10:50:23 -0400 Subject: [PATCH 1/2] Update index.html.erb to move headers into _articles_list Move column headings into the list form --- app/views/admin/articles/index.html.erb | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/views/admin/articles/index.html.erb b/app/views/admin/articles/index.html.erb index b841c2f7..1e649bc8 100644 --- a/app/views/admin/articles/index.html.erb +++ b/app/views/admin/articles/index.html.erb @@ -39,19 +39,6 @@ - - - - - - - - - - - - - <%= render 'article_list', articles: @articles %> - + <%= render 'article_list', articles: @articles %>
<%= t(".title") %><%= t(".author") %><%= t(".created_at") %><%= t(".published_at") %><%= t(".feedback") %><%= t(".text_filter") %><%= t(".actions") %>
<% end %> From 24430d0a21b1a4dd8f4dde6ef9b66437b454082c Mon Sep 17 00:00:00 2001 From: climatebrad Date: Thu, 11 Jul 2024 10:56:04 -0400 Subject: [PATCH 2/2] Move headers from index.html.erb to _article_list.html.erb --- app/views/admin/articles/_article_list.html.erb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/views/admin/articles/_article_list.html.erb b/app/views/admin/articles/_article_list.html.erb index 7716cc07..652e316b 100644 --- a/app/views/admin/articles/_article_list.html.erb +++ b/app/views/admin/articles/_article_list.html.erb @@ -1,3 +1,15 @@ + + + <%= t(".title") %> + <%= t(".author") %> + <%= t(".created_at") %> + <%= t(".published_at") %> + <%= t(".feedback") %> + <%= t(".text_filter") %> + <%= t(".actions") %> + + + <% if @articles.empty? %> @@ -39,3 +51,4 @@ <% end %> <%= display_pagination(@articles, 7, 'first', 'last') %> +