Commit ad8a76e4 authored by Valery Sizov's avatar Valery Sizov

fix preview appearance

parent ed1c4aa5
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
.form-actions .form-actions
= f.submit 'Save', class: 'btn btn-save' = f.submit 'Save', class: 'btn btn-save'
= link_to 'Preview', preview_admin_appearances_path, class: 'btn', target: '_blank' - if @appearance.persisted?
= link_to 'Preview last save', preview_admin_appearances_path, class: 'btn', target: '_blank'
- if @appearance.updated_at - if @appearance.updated_at
%span.pull-right %span.pull-right
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment