mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Merge pull request #1370 from internetee/remove-dead-code
Remove dead code
This commit is contained in:
commit
61f5532aee
8 changed files with 28 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
|||
- domains = contact.all_domains(page: params[:domain_page], per: 20, params: params)
|
||||
#contacts.panel.panel-default
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
.pull-left
|
||||
= t(:domains)
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
- panel_class = contact.errors.messages[:statuses] ? 'panel-danger' : 'panel-default'
|
||||
#contact_statuses.panel{class: panel_class}
|
||||
.panel-heading.clearfix
|
||||
= t(:statuses)
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-bordered.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-6'}= t(:status)
|
||||
%th{class: 'col-xs-6'}= t(:notes)
|
||||
%tbody
|
||||
- contact.statuses.each do |status|
|
||||
%tr
|
||||
%td= status
|
||||
%td= contact.status_notes[status]
|
||||
|
||||
- if contact.errors.messages[:statuses]
|
||||
%tfoot
|
||||
- @domain.errors.messages[:statuses].each do |s|
|
||||
%tr
|
||||
%td{colspan: 4}= s
|
23
app/views/admin/contacts/partials/_statuses.html.erb
Normal file
23
app/views/admin/contacts/partials/_statuses.html.erb
Normal file
|
@ -0,0 +1,23 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<%= t '.header' %>
|
||||
</div>
|
||||
|
||||
<table class="table table-hover table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-xs-6"><%= t(:status) %></th>
|
||||
<th class="col-xs-6"><%= t(:notes) %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% contact.statuses.each do |status| %>
|
||||
<tr>
|
||||
<td><%= status %></td>
|
||||
<td><%= contact.status_notes[status] %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
|
@ -1,9 +0,0 @@
|
|||
if @disclosure_policy
|
||||
@disclosure_policy.each do |k,v|
|
||||
xml.tag!('contact:disclose', 'flag' => k) do
|
||||
v.each do |attr|
|
||||
xml.tag!("contact:#{attr}")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -75,7 +75,6 @@ xml.epp_head do
|
|||
xml.tag!('contact:pw', 'No access')
|
||||
end
|
||||
end
|
||||
# xml << render('/epp/contacts/disclosure_policy')
|
||||
end
|
||||
end
|
||||
if can? :view_full_info, @contact, @password
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- domains = contact.all_domains(page: params[:domain_page], per: 20, params: params)
|
||||
#contacts.panel.panel-default
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
.pull-left
|
||||
= t(:domains)
|
||||
|
|
|
@ -15,3 +15,6 @@ en:
|
|||
|
||||
domains:
|
||||
roles: Roles
|
||||
|
||||
statuses:
|
||||
header: Statuses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue