bullet_train-themes 1.0.3 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76ca864a0a22a814f45e2b8a89c8b38b73adabf72abfa772eff87e1f6d1694d8
4
- data.tar.gz: e30fe8df989ba8d9726dc27b3db7845ddaf4ee2bd7d4a0a4456db34d61c8b399
3
+ metadata.gz: ce3869acc3151676694fade3b455ea078f986554e5846434dd81c5f351d6aefc
4
+ data.tar.gz: 59c65cb7b9a102271db21948b4eff4b2441045592c72126a7e5d2b3699117d63
5
5
  SHA512:
6
- metadata.gz: 634172a9f9fbe15608388aa3a440ccd8d91843abe81030a944074bc6b14cbebfa01dd42865a6647f0e5db21585b265e38cf5853626333bf59fe721c86225812f
7
- data.tar.gz: 90c8cdc8f9a6bca8b141bbf9b7e3534cc87d17dd8922caff40523a492ae0520cf946022d585ff5d7361b1c25b42f778281846152202497c705cfc6ec93ce65a3
6
+ metadata.gz: 4b80ab6f49e1663d62001ad5ad7e9445e3a6bcdf88e470e724536718dfa80b78930dcb428de5ba82c6e1b9af35a38ddaa033c41f154b188301df43591911e336
7
+ data.tar.gz: 8d8f8e01ebefdca642df2c643fc08ff916fc8af4da93d5443f24d31de93cc5e1df0f4c72c062b40285daacf7c45553fa876cd72690c647eda2b7228394cafbe3
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022 Andrew Culver
1
+ Copyright 2022 Bullet Train, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- <% yield %>
1
+ <% yield p = np %>
2
2
 
3
3
  <%
4
4
  form ||= current_fields_form
@@ -23,6 +23,9 @@ other_options ||= {}
23
23
  <%= render 'shared/fields/field', form: form, method: method, options: options, other_options: other_options do %>
24
24
  <% content_for :field do %>
25
25
  <%= form.rich_text_area method, options %>
26
+ <% if p.content_for? :submit_button %>
27
+ <%= p.content_for :submit_button %>
28
+ <% end %>
26
29
  <% end %>
27
30
  <% end %>
28
31
  </div>
@@ -1,6 +1,9 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  class Engine < ::Rails::Engine
4
+ initializer "bullet_train.themes.register" do |app|
5
+ BulletTrain.linked_gems << "bullet_train-themes"
6
+ end
4
7
  end
5
8
  end
6
9
  end
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
@@ -1,8 +1,17 @@
1
1
  require "bullet_train/themes/version"
2
2
  require "bullet_train/themes/engine"
3
+ # require "bullet_train/themes/base/theme"
3
4
 
4
5
  module BulletTrain
5
6
  module Themes
6
7
  mattr_accessor :themes, default: {}
8
+
9
+ module Base
10
+ class Theme
11
+ def directory_order
12
+ ['base']
13
+ end
14
+ end
15
+ end
7
16
  end
8
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-10 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails