views: factor out sidebar layout template.
* Factor out common sidebar layout template. * Convert wiki pages and posts to use this template. * Add data-layout attribute to <body> element indicating the current layout.
This commit is contained in:
@@ -187,6 +187,7 @@ module ApplicationHelper
|
||||
data: {
|
||||
controller: controller_param,
|
||||
action: action_param,
|
||||
layout: controller.class.send(:_layout),
|
||||
**data_attributes_for(user, "user", attributes)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user