Refatored to use shared/title partial

This commit is contained in:
Priit Tark 2015-04-16 16:29:04 +03:00
parent 4c660df43e
commit 8d4124585c
73 changed files with 402 additions and 411 deletions

View file

@ -1,5 +1,5 @@
- content_for :actions do
= link_to(t(:back_to_domain), [:admin, @domain], class: 'btn btn-default')
= render 'admin/shared/title', name: "#{t(:edit)}: #{@domain.name}"
= render 'shared/title', name: "#{t(:edit)}: #{@domain.name}"
= render 'form'

View file

@ -1,7 +1,5 @@
.row
.col-sm-12
%h2.text-center-xs= t(:domains)
%hr
= render 'shared/title', name: t(:domains)
.row
.col-md-12
= search_form_for [:admin, @q], html: { class: 'form-horizontal' } do |f|

View file

@ -1,13 +1,8 @@
.row
.col-sm-6
%h2.text-center-xs
= "#{t('domain_details')}"
.col-sm-6
%h2.text-right.text-center-xs
= link_to(t(:edit_statuses), edit_admin_domain_path(@domain), class: 'btn btn-primary')
= link_to(t(:history), admin_domain_domain_versions_path(@domain.id), method: :get, class: 'btn btn-primary')
- content_for :actions do
= link_to(t(:edit_statuses), edit_admin_domain_path(@domain), class: 'btn btn-primary')
= link_to(t(:history), admin_domain_domain_versions_path(@domain.id), method: :get, class: 'btn btn-primary')
= render 'shared/title', name: @domain.name
%hr
.row
.col-md-6= render 'admin/domains/partials/general'
.col-md-6= render 'admin/domains/partials/owner'

View file

@ -1,11 +1,7 @@
.row
.col-sm-6
%h2.text-center-xs
= "#{t('zonefile')}"
.col-sm-6
%h2.text-right.text-center-xs
= link_to(t('back_to_domain'), admin_domain_path(@domain), class: 'btn btn-default')
%hr
- content_for :actions do
= link_to(t(:back_to_domain), admin_domain_path(@domain), class: 'btn btn-default')
= render 'shared/title', name: t(:zonefile)
.row
.col-md-12
= preserve do