mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Added manage pending link to history #2785
This commit is contained in:
parent
e387ea4bb4
commit
d524642742
3 changed files with 3 additions and 11 deletions
|
@ -3,7 +3,7 @@ class Admin::DomainVersionsController < AdminController
|
||||||
|
|
||||||
# rubocop:disable Style/GuardClause
|
# rubocop:disable Style/GuardClause
|
||||||
def index
|
def index
|
||||||
@domain = Domain.find(params[:domain_id])
|
@domain = Domain.where(id: params[:domain_id]).includes({versions: :item}).first
|
||||||
@versions = @domain.versions
|
@versions = @domain.versions
|
||||||
|
|
||||||
if @domain.pending_json.present?
|
if @domain.pending_json.present?
|
||||||
|
@ -13,13 +13,4 @@ class Admin::DomainVersionsController < AdminController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop:enable Style/GuardClause
|
# rubocop:enable Style/GuardClause
|
||||||
|
|
||||||
# def index
|
|
||||||
# # @q = DomainVersion.deleted.search(params[:q])
|
|
||||||
# # @domains = @q.result.page(params[:page])
|
|
||||||
# end
|
|
||||||
|
|
||||||
# def show
|
|
||||||
# @versions = DomainVersion.where(item_id: params[:id])
|
|
||||||
# end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
- tech_contacts = domain.tech_contacts
|
- tech_contacts = domain.tech_contacts
|
||||||
- admin_contacts = domain.admin_contacts
|
- admin_contacts = domain.admin_contacts
|
||||||
- registrant = [domain.registrant]
|
- registrant = [domain.registrant]
|
||||||
- event = 'PENDING'
|
- event = ('PENDING<br>' + link_to(t(:manage), edit_admin_domain_path(params[:domain_id]))).html_safe
|
||||||
- creator = pending_user.try(:username)
|
- creator = pending_user.try(:username)
|
||||||
- else # if legacy data not presentable
|
- else # if legacy data not presentable
|
||||||
- nameservers = []
|
- nameservers = []
|
||||||
|
|
|
@ -903,4 +903,5 @@ en:
|
||||||
poll_pending_update_rejected_by_registranti: 'Registrant rejected domain update'
|
poll_pending_update_rejected_by_registranti: 'Registrant rejected domain update'
|
||||||
poll_pending_delete_rejected_by_registrant: 'Registrant rejected domain deletion'
|
poll_pending_delete_rejected_by_registrant: 'Registrant rejected domain deletion'
|
||||||
poll_pending_delete_confirmed_by_registrant: 'Registrant confirmed domain deletion'
|
poll_pending_delete_confirmed_by_registrant: 'Registrant confirmed domain deletion'
|
||||||
|
manage: Manage
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue