Questions tagged [deface]

Deface is a library that allows you to customize HTML (ERB, Haml and Slim) views in a Rails application without editing the underlying view.

Deface is a library that allows you to customize HTML (ERB, Haml and Slim) views in a Rails application without editing the underlying view.

It allows you to easily target html & erb elements as the hooks for customization using CSS selectors as supported by Nokogiri.

63 questions
0
votes
1 answer

Modifying redmine views using deface

I am trying to make the "private issue" checkbox "checked by default" using a plug-in. I need to add the below check to the redmine default view :checked => @issue.new_record? || @issue.is_private, The default view is <%= f.check_box :is_private,…
born
  • 265
  • 3
  • 18
0
votes
1 answer

Spree customization with deface, auth_shared_login_bar

How can I move auth_shared_login_bar partial from _nav_bar to _main_nav_bar before #link_to_car? I managed to add a login link to _main_nav_bar using this: insert_before '#link-to-cart' partial 'spree/shared/login_bar' But can't find a way to…
Macin
  • 391
  • 2
  • 6
  • 20
0
votes
1 answer

Spree deface, submit button add class

How to select a search submit button to apply class to it using deface? tried this: set_attributes 'form.input[type="submit"]' attributes :class => 'saerchbox_submit' bot does not seem to work. Am I missing something?
Macin
  • 391
  • 2
  • 6
  • 20
1 2 3 4
5