From ca4555df43b36adc005e7a9752b94878f0990da9 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 10 Aug 2023 19:12:25 +0300 Subject: [PATCH] Use Bootstrap inline lists for
s on user pages --- app/assets/stylesheets/common.scss | 11 ----------- app/views/users/show.html.erb | 28 ++++++++++++++-------------- 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 779fbbe35d..b8db4d31b6 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1251,17 +1251,6 @@ div.secondary-actions { text-align: center; } -/* Create a single-line dl */ - -dl.dl-inline { - dt, dd { - display: inline-block; - } - dd { - margin-right: 1em; - } -} - /* Rules for OpenID logo */ .openid_logo { diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 4dcc9ab054..81e33dddb8 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -118,12 +118,12 @@
-
-
<%= t ".mapper since" %>
-
<%= l @user.created_at.to_date, :format => :long %>
+
+
<%= t ".mapper since" %>
+
<%= l @user.created_at.to_date, :format => :long %>
<% unless @user.terms_agreed %> -
<%= t ".ct status" %>
-
+
<%= t ".ct status" %>
+
<% if @user.terms_seen? -%> <%= t ".ct declined" %> <% else -%> @@ -188,17 +188,17 @@ <% if current_user and current_user.administrator? -%>
-
-
<%= t ".email address" %>
-
<%= @user.email %>
+
+
<%= t ".email address" %>
+
<%= @user.email %>
<% unless @user.creation_ip.nil? -%> -
<%= t ".created from" %>
-
<%= @user.creation_ip %>
+
<%= t ".created from" %>
+
<%= @user.creation_ip %>
<% end -%> -
<%= t ".status" %>
-
<%= @user.status.capitalize %>
-
<%= t ".spam score" %>
-
<%= @user.spam_score %>
+
<%= t ".status" %>
+
<%= @user.status.capitalize %>
+
<%= t ".spam score" %>
+
<%= @user.spam_score %>