Merge pull request #2525 from internetee/2520-fix-long-domain-names

Fixed viewing of long domains in admin portal
This commit is contained in:
Timo Võhmar 2023-01-17 15:52:03 +02:00 committed by GitHub
commit a15522ea9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 10 deletions

View file

@ -9,7 +9,7 @@
<div class="page-header">
<div class="row">
<div class="col-sm-8">
<h1 class="text-center-xs">
<h1 class="text-center-xs" style="word-break:break-all;">
<%= t '.header' %> <%= domain.name_with_status %>
</h1>
</div>

View file

@ -8,7 +8,7 @@
<div class="panel-body">
<dl class="dl-horizontal">
<dt><%= t(:name) %></dt>
<dd><%= @domain.name %></dd>
<dd style="word-break:break-all;"><%= @domain.name %></dd>
<dt><%= Domain.human_attribute_name :registered_at %></dt>
<dd><%= l(@domain.registered_at) %></dd>

View file

@ -7,7 +7,7 @@
<div class="page-header">
<div class="row">
<div class="col-sm-7">
<h1><%= domain.name_with_status %></h1>
<h1 style="word-break:break-all;"><%= domain.name_with_status %></h1>
</div>
<div class="col-sm-5 text-right">

View file

@ -116,13 +116,10 @@
%body
.container
#header.row
.col-sm-6.left
#header-content
%h1= "#{@domain.name} (#{Time.zone.now.to_date.strftime("%d/%m/%Y")})"
.col-sm-6.right
%img{src: "#{Rails.root}/public/eis-logo-black-et.png"}
.clear
.row
.col-sm-12
%h1= "#{@domain.name} (#{Time.zone.now.to_date.strftime("%d/%m/%Y")})"
%hr
.row
.col-sm-8.left