mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Plugin stuff:
* Allow plugins to work with only autoloaded assets. * Give a plugin outlet a class name based on its name if no view class * Give the `topic-title` outlet a default class of `clear: both`
This commit is contained in:
parent
a33461d1c7
commit
57b89a2c7f
3 changed files with 11 additions and 9 deletions
|
@ -174,12 +174,12 @@ class Plugin::Instance
|
|||
if auto_assets = generate_automatic_assets!
|
||||
assets.concat auto_assets.map{|a| [a]}
|
||||
end
|
||||
unless assets.blank?
|
||||
register_assets!
|
||||
# TODO possibly amend this to a rails engine
|
||||
Rails.configuration.assets.paths << auto_generated_path
|
||||
Rails.configuration.assets.paths << File.dirname(path) + "/assets"
|
||||
end
|
||||
|
||||
register_assets! unless assets.blank?
|
||||
|
||||
# TODO possibly amend this to a rails engine
|
||||
Rails.configuration.assets.paths << auto_generated_path
|
||||
Rails.configuration.assets.paths << File.dirname(path) + "/assets"
|
||||
|
||||
public_data = File.dirname(path) + "/public"
|
||||
if Dir.exists?(public_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue