Story#105855968 - admin/show mark if registrar is test

This commit is contained in:
Vladimir Krylov 2016-03-21 12:18:48 +02:00
parent 60c9a0a766
commit d67db2d7c8
3 changed files with 6 additions and 2 deletions

View file

@ -2,6 +2,10 @@
= link_to(t(:edit), edit_admin_registrar_path(@registrar), class: 'btn btn-primary') = link_to(t(:edit), edit_admin_registrar_path(@registrar), class: 'btn btn-primary')
= link_to(t(:delete), admin_registrar_path(@registrar), = link_to(t(:delete), admin_registrar_path(@registrar),
method: :delete, data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger') method: :delete, data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger')
- content_for :page_name do
= @registrar.name
- if @registrar.test_registrar?
%span{style: "color: #c9302c;"} (test)
= render 'shared/title', name: @registrar.name = render 'shared/title', name: @registrar.name
- if @registrar.errors.any? - if @registrar.errors.any?

View file

@ -4,7 +4,7 @@
.row .row
.col-sm-6 .col-sm-6
%h1.text-center-xs %h1.text-center-xs
= truncate(name, length: 35) = content_for?(:page_name) ? yield(:page_name) : truncate(name, length: 35)
.col-sm-6 .col-sm-6
%h1.text-right.text-center-xs %h1.text-right.text-center-xs
= yield :actions = yield :actions

View file

@ -937,4 +937,4 @@ en:
add_blocked_domain: 'Add domain to blocked list' add_blocked_domain: 'Add domain to blocked list'
edit_pw: 'Edit Pw' edit_pw: 'Edit Pw'
optional: 'Optional' optional: 'Optional'
test_registrar: "Test registrar?" test_registrar: "Test registrar"