You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
824 B

  1. - content_for :page_title do
  2. = t "flavours.#{@selected}.name", default: @selected
  3. = simple_form_for current_user, url: settings_flavour_path(@selected), html: { method: :put } do |f|
  4. = render 'shared/error_messages', object: current_user
  5. - Themes.instance.flavour(@selected)['screenshot'].each do |screen|
  6. %img.flavour-screen{ src: full_pack_url("media/#{screen}") }
  7. .flavour-description
  8. = t "flavours.#{@selected}.description", default: ''
  9. %hr/
  10. - if Themes.instance.skins_for(@selected).length > 1
  11. .fields-group
  12. = f.input :setting_skin, collection: Themes.instance.skins_for(@selected), label_method: lambda { |skin| I18n.t("skins.#{@selected}.#{skin}", default: skin) }, wrapper: :with_label, include_blank: false
  13. .actions
  14. = f.button :button, t('generic.use_this'), type: :submit