Commit ff24be48 authored by Alexis Reigel's avatar Alexis Reigel

show avatar status versions on appearance page

parent 18d4f121
...@@ -62,7 +62,13 @@ ...@@ -62,7 +62,13 @@
= f.label :favicon, 'Favicon', class: 'control-label' = f.label :favicon, 'Favicon', class: 'control-label'
.col-sm-10 .col-sm-10
- if @appearance.favicon? - if @appearance.favicon?
= image_tag @appearance.favicon.default_without_format_conversion.url, class: 'appearance-light-logo-preview' = image_tag @appearance.favicon.default.url, class: 'appearance-light-logo-preview'
- if @appearance.favicon?
= f.label :favicon, 'Generated status icons', class: 'control-label'
.col-sm-10
- if @appearance.favicon?
- FaviconUploader::STATUS_ICON_NAMES.each do |status_name|
= image_tag @appearance.favicon.public_send(status_name).url, class: 'appearance-light-logo-preview'
- if @appearance.persisted? - if @appearance.persisted?
%br %br
= link_to 'Remove favicon', favicon_admin_appearances_path, data: { confirm: "Favicon will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-logo" = link_to 'Remove favicon', favicon_admin_appearances_path, data: { confirm: "Favicon will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-logo"
......
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