From 13f059160569833c30074b9b52e8735caa83a95d Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 11 Dec 2019 17:22:23 +0100 Subject: [PATCH] Wrap table header rows in thead --- app/views/diary_entries/comments.html.erb | 12 ++++---- app/views/notes/mine.html.erb | 18 ++++++------ app/views/oauth_clients/index.html.erb | 12 ++++---- app/views/user_blocks/_blocks.html.erb | 34 ++++++++++++----------- app/views/users/index.html.erb | 34 ++++++++++++----------- 5 files changed, 60 insertions(+), 50 deletions(-) diff --git a/app/views/diary_entries/comments.html.erb b/app/views/diary_entries/comments.html.erb index 56dba30b8..00045efc0 100644 --- a/app/views/diary_entries/comments.html.erb +++ b/app/views/diary_entries/comments.html.erb @@ -3,11 +3,13 @@ <% end %> - - - - - + + + + + + + <% @comments.each do |comment| -%> <% cl = cycle("table0", "table1") %> "> diff --git a/app/views/notes/mine.html.erb b/app/views/notes/mine.html.erb index c7015578b..266349b30 100644 --- a/app/views/notes/mine.html.erb +++ b/app/views/notes/mine.html.erb @@ -6,14 +6,16 @@ <%= render :partial => "notes_paging_nav" %>
<%= t ".post" %><%= t ".when" %><%= t ".comment" %>
<%= t ".post" %><%= t ".when" %><%= t ".comment" %>
- - - - - - - - + + + + + + + + + + <% @notes.each do |note| -%> class="creator"<% end %>>
<%= t ".id" %><%= t ".creator" %><%= t ".description" %><%= t ".created_at" %><%= t ".last_changed" %>
<%= t ".id" %><%= t ".creator" %><%= t ".description" %><%= t ".created_at" %><%= t ".last_changed" %>
diff --git a/app/views/oauth_clients/index.html.erb b/app/views/oauth_clients/index.html.erb index f1dc4afcd..54bb4f9f6 100644 --- a/app/views/oauth_clients/index.html.erb +++ b/app/views/oauth_clients/index.html.erb @@ -6,11 +6,13 @@

<%= t ".my_tokens" %>

<%= t ".list_tokens" %>

- - - - - + + + + + + + <% @tokens.each do |token| %> diff --git a/app/views/user_blocks/_blocks.html.erb b/app/views/user_blocks/_blocks.html.erb index 2f7f54a19..03ee7ae8e 100644 --- a/app/views/user_blocks/_blocks.html.erb +++ b/app/views/user_blocks/_blocks.html.erb @@ -1,20 +1,22 @@
<%= t ".application" %><%= t ".issued_at" %> 
<%= t ".application" %><%= t ".issued_at" %> 
<%= link_to token.client_application.name, token.client_application.url %>
- - <% if show_user_name %> - - <% end %> - <% if show_creator_name %> - - <% end %> - - - - - - <% if show_revoke_link %> - - <% end %> - + + + <% if show_user_name %> + + <% end %> + <% if show_creator_name %> + + <% end %> + + + + + + <% if show_revoke_link %> + + <% end %> + + <%= render :partial => "block", :locals => { :show_revoke_link => show_revoke_link, :show_user_name => show_user_name, :show_creator_name => show_creator_name }, :collection => @user_blocks %>
<%= t ".display_name" %><%= t ".creator_name" %><%= t ".reason" %><%= t ".status" %><%= t ".revoker_name" %>
<%= t ".display_name" %><%= t ".creator_name" %><%= t ".reason" %><%= t ".status" %><%= t ".revoker_name" %>
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index f1ef5b538..01b7c60aa 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -14,22 +14,24 @@ <%= hidden_field_tag :ip, params[:ip] if params[:ip] %> <%= hidden_field_tag :page, params[:page] if params[:page] %> - - - - + + + + + + <%= render @users %>
- <%= t ".showing", - :page => @user_pages.current_page.number, - :first_item => @user_pages.current_page.first_item, - :last_item => @user_pages.current_page.last_item, - :items => @user_pages.item_count, - :count => @user_pages.current_page.last_item - @user_pages.current_page.first_item + 1 %> - <% if @user_pages.page_count > 1 %> - | <%= raw pagination_links_each(@user_pages, {}) { |n| link_to n, @params.merge(:page => n) } %> - <% end %> - - <%= check_box_tag "user_all", "1", false %> -
+ <%= t ".showing", + :page => @user_pages.current_page.number, + :first_item => @user_pages.current_page.first_item, + :last_item => @user_pages.current_page.last_item, + :items => @user_pages.item_count, + :count => @user_pages.current_page.last_item - @user_pages.current_page.first_item + 1 %> + <% if @user_pages.page_count > 1 %> + | <%= raw pagination_links_each(@user_pages, {}) { |n| link_to n, @params.merge(:page => n) } %> + <% end %> + + <%= check_box_tag "user_all", "1", false %> +
-- 2.45.1