diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-12-10 20:15:09 -0800 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-12-10 20:32:28 -0800 |
commit | bdca1614d574a4b34633a19776446d2d8cf2d2e6 (patch) | |
tree | 39dd38bdacf2b6c25065a63cdc2940c0d71fbbaf /app/views/settings/flavours | |
parent | dabf66e676c693e7e26a6035e0c6296e6804e776 (diff) |
Screenshot support for themes
Diffstat (limited to 'app/views/settings/flavours')
-rw-r--r-- | app/views/settings/flavours/show.html.haml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/settings/flavours/show.html.haml b/app/views/settings/flavours/show.html.haml index 488fd2d15..8214f1b3d 100644 --- a/app/views/settings/flavours/show.html.haml +++ b/app/views/settings/flavours/show.html.haml @@ -4,6 +4,9 @@ = simple_form_for current_user, url: settings_flavour_path(@selected), html: { method: :put } do |f| = render 'shared/error_messages', object: current_user + - Themes.instance.flavour(@selected)['screenshot'].each do |screen| + %img.flavour-screen{ width: 700, src: asset_pack_path(screen) } + .flavour-description = t "flavours.#{@selected}.description", default: '' |