internetee/registry

View on GitHub
app/views/admin/registrars/show/_details.html.erb

Summary

Maintainability
Test Coverage
<div class="panel panel-default">
    <div class="panel-heading">
        <%= t '.header' %>
    </div>

    <div class="panel-body">
        <dl class="dl-horizontal">
            <dt><%= Registrar.human_attribute_name :name %></dt>
            <dd><%= registrar.name %></dd>

            <dt><%= Registrar.human_attribute_name :reg_no %></dt>
            <dd><%= registrar.reg_no %></dd>

            <dt><%= Registrar.human_attribute_name :code %></dt>
            <dd><%= registrar.code %></dd>

            <dt><%= Registrar.human_attribute_name :balance %></dt>
            <dd><%= link_to (number_to_currency registrar.balance), edit_admin_account_path(registrar.cash_account) %></dd>

            <dt><%= Registrar.human_attribute_name :website %></dt>
            <dd><%= registrar.website %></dd>
        </dl>
    </div>
</div>