Patch #32847

Ability to add custom css classes to body tag

Added by Aleksandar Pavic 3 months ago. Updated about 1 month ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Plugin API
Target version:-

Description

This ability is important for plugin developers to avoid unnecessary use of deface gem.

If it's going to be implemented, also wiki page for plugin developers should
be updated, accordingly.

body_css.patch Magnifier - Patches application_helper and application_controller adding ability to add custom css class from controller to view body tag... (1.89 KB) Aleksandar Pavic, 2020-01-21 07:43

History

#1 Updated by Holger Just about 1 month ago

The changed body_css_classes method is unfortunately not idempotent. Each call of the changed method will add the "normal" classes to the @css instance variable. Thus, if you call the method two times, the list of classes be doubled.

Also available in: Atom PDF