internetee/registry

View on GitHub
app/views/admin/domains/show.html.erb

Summary

Maintainability
Test Coverage
<% domain = DomainPresenter.new(domain: @domain, view: self) %>

<ol class="breadcrumb">
    <li><%= link_to t('admin.domains.index.header'), admin_domains_path %></li>
</ol>

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

        <div class="col-sm-5 text-right">
            <%= link_to t('.download_btn'), download_admin_domain_path(@domain), class: 'btn btn-primary' %>
            <%= link_to t('.edit_btn'), edit_admin_domain_path(@domain), class: 'btn btn-primary' %>
            <%= link_to t('.history_btn'), admin_domain_domain_versions_path(@domain),
                        class: 'btn btn-primary' %>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-6">
        <%= render 'admin/domains/partials/general' %>
    </div>
    <div class="col-md-6">
        <%= render 'admin/domains/partials/owner' %>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <%= render 'admin/domains/partials/tech_contacts' %>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <%= render 'admin/domains/partials/admin_contacts' %>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <%= render 'admin/domains/partials/statuses' %>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <%= render 'admin/domains/partials/nameservers' %>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <%= render 'admin/domains/partials/dnskeys' %>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <%= render 'admin/domains/partials/legal_documents', legal_documents:
            @domain.legal_documents %>
    </div>
</div>