Project

General

Profile

Actions

Patch #32847

open

Ability to add custom css classes to body tag

Added by Aleksandar Pavic almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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.


Files

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

Updated by Holger Just almost 5 years 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.

Actions

Also available in: Atom PDF