internetee/registry

View on GitHub
app/views/admin/domains/partials/_general.html.erb

Summary

Maintainability
Test Coverage
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">
            <%= t(:general) %>
        </h3>
    </div>

    <div class="panel-body">
        <dl class="dl-horizontal">
            <dt><%= t(:name) %></dt>
            <dd style="word-break:break-all;"><%= @domain.name %></dd>

            <dt><%= Domain.human_attribute_name :registered_at %></dt>
            <dd><%= l(@domain.registered_at) %></dd>

            <dt><%= t(:registrar_name) %></dt>
            <dd><%= link_to(@domain.registrar, admin_registrar_path(@domain.registrar)) %></dd>

            <dt><%= Domain.human_attribute_name :transfer_code %></dt>
            <dd>
                <%= tag :input, type: 'text', value: @domain.transfer_code, readonly: true,
                        class: 'form-control input-sm' %>
            </dd>

            <dt><%= t(:valid_to) %></dt>
            <dd><%= l(@domain.valid_to) %></dd>

            <dt><%= t('.outzone_time') %></dt>
            <dd><%= l(@domain.outzone_at) %></dd>

            <dt><%= Domain.human_attribute_name :delete_date %></dt>
            <dd><%= l @domain.delete_date %></dd>

            <dt><%= Domain.human_attribute_name :force_delete_date %></dt>
            <dd><%= l @domain.force_delete_date %></dd>

            <dt><%= t('.locked_by_registrant_at') %></dt>
            <dd><%= l(@domain.locked_by_registrant_at) %></dd>
        </dl>
    </div>
</div>