Merge pull request #1370 from internetee/remove-dead-code

Remove dead code
This commit is contained in:
Timo Võhmar 2019-10-21 18:01:37 +03:00 committed by GitHub
commit 61f5532aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 33 deletions

View file

@ -1,5 +1,5 @@
- domains = contact.all_domains(page: params[:domain_page], per: 20, params: params) - domains = contact.all_domains(page: params[:domain_page], per: 20, params: params)
#contacts.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
.pull-left .pull-left
= t(:domains) = t(:domains)

View file

@ -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

View 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>

View file

@ -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

View file

@ -75,7 +75,6 @@ xml.epp_head do
xml.tag!('contact:pw', 'No access') xml.tag!('contact:pw', 'No access')
end end
end end
# xml << render('/epp/contacts/disclosure_policy')
end end
end end
if can? :view_full_info, @contact, @password if can? :view_full_info, @contact, @password

View file

@ -1,5 +1,5 @@
- domains = contact.all_domains(page: params[:domain_page], per: 20, params: params) - domains = contact.all_domains(page: params[:domain_page], per: 20, params: params)
#contacts.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
.pull-left .pull-left
= t(:domains) = t(:domains)

View file

@ -15,3 +15,6 @@ en:
domains: domains:
roles: Roles roles: Roles
statuses:
header: Statuses