beautiful_scaffold 0.3.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitattributes +2 -0
- data/.gitignore +2 -0
- data/CHANGELOG +68 -1
- data/Gemfile +24 -17
- data/README.rdoc +56 -44
- data/Rakefile +29 -0
- data/beautiful_scaffold.gemspec +8 -7
- data/lib/beautiful_scaffold/version.rb +3 -0
- data/lib/generators/beautiful_devisecancan_generator.rb +1 -1
- data/lib/generators/beautiful_jointable_generator.rb +40 -7
- data/lib/generators/beautiful_locale_generator.rb +102 -80
- data/lib/generators/beautiful_migration_generator.rb +14 -20
- data/lib/generators/beautiful_scaffold_common_methods.rb +88 -29
- data/lib/generators/beautiful_scaffold_generator.rb +166 -111
- data/lib/generators/templates/app/assets/javascripts/application-bs.js +11 -19
- data/lib/generators/templates/app/assets/javascripts/beautiful_scaffold.js +68 -78
- data/lib/generators/templates/app/assets/javascripts/bootstrap-datetimepicker-for-beautiful-scaffold.js +23 -42
- data/lib/generators/templates/app/assets/javascripts/fixed_menu.js +3 -1
- data/lib/generators/templates/app/assets/javascripts/jstree.min.js +6 -0
- data/lib/generators/templates/app/assets/stylesheets/application-bs.css +14 -12
- data/lib/generators/templates/app/assets/stylesheets/beautiful-scaffold.css.scss +38 -3
- data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/32px.png +0 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/40px.png +0 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/style.scss +1146 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/throbber.gif +0 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default/32px.png +0 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default/40px.png +0 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default/style.scss +1102 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default/throbber.gif +0 -0
- data/lib/generators/templates/app/controllers/base.rb +31 -14
- data/lib/generators/templates/app/controllers/master_base.rb +55 -47
- data/lib/generators/templates/app/helpers/beautiful_helper.rb +123 -72
- data/lib/generators/templates/app/helpers/model_helper.rb +14 -3
- data/lib/generators/templates/app/initializers/link_renderer.rb +24 -17
- data/lib/generators/templates/app/initializers/ransack.rb +16 -0
- data/lib/generators/templates/app/locales/beautiful_scaffold.ja.yml +50 -0
- data/lib/generators/templates/app/models/concerns/fulltext_concern.rb +10 -10
- data/lib/generators/templates/app/views/_form.html.erb +4 -1
- data/lib/generators/templates/app/views/_form_habtm_tag.html.erb +6 -2
- data/lib/generators/templates/app/views/_mass_inserting.html.erb +40 -31
- data/lib/generators/templates/app/views/_modal_columns.html.erb +4 -4
- data/lib/generators/templates/app/views/edit.html.erb +1 -3
- data/lib/generators/templates/app/views/index.html.erb +84 -58
- data/lib/generators/templates/app/views/layout.html.erb +29 -47
- data/lib/generators/templates/app/views/new.html.erb +0 -2
- data/lib/generators/templates/app/views/partials/_forget_password.html.erb +2 -2
- data/lib/generators/templates/app/views/partials/_form_field.html.erb +7 -33
- data/lib/generators/templates/app/views/partials/_index_batch.html.erb +1 -1
- data/lib/generators/templates/app/views/partials/_index_column.html.erb +4 -6
- data/lib/generators/templates/app/views/partials/_index_header.html.erb +1 -1
- data/lib/generators/templates/app/views/partials/_index_search.html.erb +2 -4
- data/lib/generators/templates/app/views/partials/_index_search_default_fields.html.erb +1 -1
- data/lib/generators/templates/app/views/partials/_register_form.html.erb +2 -2
- data/lib/generators/templates/app/views/partials/_show_field.html.erb +3 -3
- data/lib/generators/templates/app/views/partials/_sign_in_form.html.erb +1 -1
- data/lib/generators/templates/app/views/partials/_sign_in_sign_out.html.erb +2 -2
- data/lib/generators/templates/app/views/show.html.erb +2 -2
- data/lib/generators/templates/app/views/treeview.html.erb +8 -5
- metadata +41 -187
- data/lib/generators/templates/app/assets/javascripts/bootstrap-datepicker.js +0 -834
- data/lib/generators/templates/app/assets/javascripts/bootstrap-timepicker.js +0 -797
- data/lib/generators/templates/app/assets/javascripts/jquery.jstree.js +0 -4551
- data/lib/generators/templates/app/assets/javascripts/jquery.livequery.js +0 -226
- data/lib/generators/templates/app/assets/stylesheets/bootstrap_and_overrides.css.less +0 -40
- data/lib/generators/templates/app/assets/stylesheets/datepicker.css +0 -224
- data/lib/generators/templates/app/assets/stylesheets/reset.css +0 -48
- data/lib/generators/templates/app/assets/stylesheets/themes/default/d.gif +0 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default/d.png +0 -0
- data/lib/generators/templates/app/assets/stylesheets/themes/default/style.css +0 -74
- data/lib/generators/templates/app/assets/stylesheets/timepicker.css +0 -89
- data/lib/generators/templates/markitup/jquery.markitup.js +0 -593
- data/lib/generators/templates/markitup/sets/bbcode/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/clean.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/code.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/fonts.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/list-item.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/quotes.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/underline.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/bbcode/set.js +0 -39
- data/lib/generators/templates/markitup/sets/bbcode/style.css +0 -47
- data/lib/generators/templates/markitup/sets/default/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/clean.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/image.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/default/set.js +0 -30
- data/lib/generators/templates/markitup/sets/default/style.css +0 -34
- data/lib/generators/templates/markitup/sets/html/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/clean.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h1.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h2.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h3.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h4.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h5.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h6.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/image.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/list-item.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/paragraph.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/html/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/html/set.js +0 -39
- data/lib/generators/templates/markitup/sets/html/style.css +0 -59
- data/lib/generators/templates/markitup/sets/markdown/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/code.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h1.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h2.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h3.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h4.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h5.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h6.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/quotes.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/markdown/set.js +0 -52
- data/lib/generators/templates/markitup/sets/markdown/style.css +0 -54
- data/lib/generators/templates/markitup/sets/textile/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/code.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h1.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h2.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h3.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h4.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h5.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h6.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/paragraph.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/quotes.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/textile/set.js +0 -40
- data/lib/generators/templates/markitup/sets/textile/style.css +0 -60
- data/lib/generators/templates/markitup/sets/wiki/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/code.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h1.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h2.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h3.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h4.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h5.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h6.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/quotes.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/url.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/wiki/set.js +0 -37
- data/lib/generators/templates/markitup/sets/wiki/style.css +0 -57
- data/lib/generators/templates/markitup/skins/markitup/images/bg-container.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-bbcode.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-dotclear.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-html.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-json.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-markdown.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-textile.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-wiki.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-xml.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/handle.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/menu.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/submenu.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/style.css +0 -147
- data/lib/generators/templates/markitup/skins/simple/images/handle.png +0 -0
- data/lib/generators/templates/markitup/skins/simple/images/menu.png +0 -0
- data/lib/generators/templates/markitup/skins/simple/images/submenu.png +0 -0
- data/lib/generators/templates/markitup/skins/simple/style.css +0 -118
- data/lib/generators/templates/markitup/templates/preview.css +0 -5
- data/lib/generators/templates/markitup/templates/preview.html +0 -11
@@ -5,63 +5,56 @@
|
|
5
5
|
<title>Beautiful Scaffold</title>
|
6
6
|
|
7
7
|
<meta name="description" content="Beautiful Scaffold">
|
8
|
-
<meta name="author" content="You or me Sylvain Claudel (
|
8
|
+
<meta name="author" content="You or me Sylvain Claudel (https://blog.rivsc.ovh)">
|
9
9
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
<!--TODO remove cdn-->
|
12
|
+
<script src="https://unpkg.com/driver.js/dist/driver.min.js"></script>
|
13
|
+
<link rel="stylesheet" href="https://unpkg.com/driver.js/dist/driver.min.css">
|
14
|
+
|
15
|
+
<%%= stylesheet_link_tag "<%= engine_name %>application-bs" %>
|
16
|
+
<%%= javascript_include_tag "<%= engine_name %>application-bs" %>
|
13
17
|
|
14
18
|
<%%= csrf_meta_tags %>
|
15
19
|
<%%= yield :head %>
|
16
20
|
</head>
|
17
|
-
<body
|
18
|
-
<div class="navbar navbar-
|
19
|
-
<div class="
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
<ul class="nav navbar-nav pull-right">
|
35
|
-
<li>
|
36
|
-
<!-- Beautiful_scaffold - Signin - Do not remove -->
|
37
|
-
</li>
|
38
|
-
</ul>
|
39
|
-
</div>
|
21
|
+
<body>
|
22
|
+
<div class="navbar navbar-expand-md navbar-dark bg-dark">
|
23
|
+
<div class="navbar-header">
|
24
|
+
<a class="navbar-brand" href="#">
|
25
|
+
Beautiful-Scaffold
|
26
|
+
</a>
|
27
|
+
<button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
28
|
+
<span class="navbar-toggler-icon"></span>
|
29
|
+
</button>
|
30
|
+
</div>
|
31
|
+
<div class="navbar-collapse collapse">
|
32
|
+
<nav class="nav navbar-nav">
|
33
|
+
<a href="/" class="nav-link">Home</a>-
|
34
|
+
<%%= render :partial => "layouts/beautiful_menu" %>
|
35
|
+
</nav>
|
36
|
+
<i class="fa fa-question-circle text-white float-right" id="bs-help"></i>
|
37
|
+
<!-- Beautiful_scaffold - Signin - Do not remove -->
|
40
38
|
</div>
|
41
39
|
</div>
|
42
40
|
<div class="container-fluid">
|
43
41
|
<div class="row">
|
44
|
-
<div class="col-md
|
45
|
-
|
46
|
-
<%%= render :partial => "layouts/beautiful_menu" %>
|
47
|
-
</ul>
|
48
|
-
</div>
|
49
|
-
<div class="col-md-10">
|
50
|
-
<%% if not flash[:notice].blank? then %>
|
42
|
+
<div class="col-md filler">
|
43
|
+
<%% if !flash[:notice].blank? %>
|
51
44
|
<div class="alert alert-info">
|
52
45
|
<a class="close" data-dismiss="alert" href="#">×</a>
|
53
46
|
<h4 class="alert-heading">Info : </h4>
|
54
47
|
<%%= flash[:notice] %>
|
55
48
|
</div>
|
56
49
|
<%% end %>
|
57
|
-
<%% if
|
50
|
+
<%% if !flash[:error].blank? %>
|
58
51
|
<div class="alert alert-danger">
|
59
52
|
<a class="close" data-dismiss="alert" href="#">×</a>
|
60
53
|
<h4 class="alert-heading">Error : </h4>
|
61
54
|
<%%= flash[:error] %>
|
62
55
|
</div>
|
63
56
|
<%% end %>
|
64
|
-
<div>
|
57
|
+
<div class="mt-2">
|
65
58
|
<%%= yield %>
|
66
59
|
</div>
|
67
60
|
</div>
|
@@ -76,20 +69,9 @@
|
|
76
69
|
<!-- Beautiful_scaffold - Modal - Do not remove -->
|
77
70
|
|
78
71
|
<script type="text/javascript">
|
79
|
-
<%% if
|
72
|
+
<%% if !@opened_modal.blank? %>
|
80
73
|
$('<%%= @opened_modal %>').modal('show');
|
81
74
|
<%% end %>
|
82
75
|
</script>
|
83
|
-
<script type="text/javascript">
|
84
|
-
;(function($){
|
85
|
-
$.fn.datepicker.dates['<%%= I18n.locale.to_s %>'] = {
|
86
|
-
days: <%%= (t("date.day_names") + [t("date.day_names").first]).map(&:capitalize).to_s.html_safe %>,
|
87
|
-
daysShort: <%%= (t("date.abbr_day_names") + [t("date.abbr_day_names").first]).map(&:capitalize).to_s.html_safe %>,
|
88
|
-
daysMin: <%%= (t("date.abbr_day_names") + [t("date.abbr_day_names").first]).map{ |d| d.capitalize[0..2] }.to_s.html_safe %>,
|
89
|
-
months: <%%= t("date.month_names")[1..12].map(&:capitalize).to_s.html_safe %>,
|
90
|
-
monthsShort: <%%= t("date.abbr_month_names")[1..12].map(&:capitalize).to_s.html_safe %>
|
91
|
-
};
|
92
|
-
}(jQuery));
|
93
|
-
</script>
|
94
76
|
</body>
|
95
77
|
</html>
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<div class="modal-dialog">
|
3
3
|
<div class="modal-content">
|
4
4
|
<div class="modal-header">
|
5
|
+
<h5 class="modal-title"><%%= t(:forgot_password, :default => "Forgot password") %></h5>
|
5
6
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
6
|
-
<h3><%%= t(:forgot_password, :default => "Forgot password") %></h3>
|
7
7
|
</div>
|
8
8
|
<div class="modal-body">
|
9
9
|
<%%= form_for('<%= model %>', :as => '<%= model %>', :url => password_path('<%= model %>'), :html => { :method => :post, :class => "form-horizontal" }) do |f| %>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
</div>
|
16
16
|
<div class="form-group">
|
17
17
|
<div>
|
18
|
-
<%%= f.submit t(:send_me_reset_password_instructions, :default => "Send me reset password instructions"), :class => 'btn btn-
|
18
|
+
<%%= f.submit t(:send_me_reset_password_instructions, :default => "Send me reset password instructions"), :class => 'btn btn-light' %>
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
<%% end %>
|
@@ -1,49 +1,23 @@
|
|
1
1
|
<%- attributes.each do |attribute| -%>
|
2
|
-
<%- if @beautiful_attributes.include?(attribute.name + ':
|
3
|
-
<div class="form-group">
|
4
|
-
<%%= f.label :<%= attribute.name %>, <%= i18n_t_a(singular_table_name, attribute.name) %>.capitalize, :class => "control-label" %>
|
5
|
-
<%%= f.text_area :<%= attribute.name %>, :class => "richtext-editor" %>
|
6
|
-
</div>
|
7
|
-
<div class="form-group">
|
8
|
-
<label class="control-label" for="inlineCheckboxes"></label>
|
9
|
-
<% for type in richtext_type %>
|
10
|
-
<%% hashradio = {:id => "<%= attribute.name %>-<%= type %>", :class => "select-richtext", 'data-editor' => 'markItUp<%= singular_table_name.capitalize %>_<%= attribute.name.downcase %>', 'data-spleditor' => '<%= singular_table_name %>_<%= attribute.name %>' } %>
|
11
|
-
<%% hashradio[:checked] = "checked" if @<%= singular_table_name %>.<%= attribute.name %>_typetext == "<%= type %>" %>
|
12
|
-
<label for="<%= attribute.name %>-<%= type %>" class="label-richtext-type checkbox inline">
|
13
|
-
<%%= f.radio_button :<%= attribute.name %>_typetext, "<%= type %>", hashradio %>
|
14
|
-
<%= type.capitalize %>
|
15
|
-
</label>
|
16
|
-
<% end %>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<%% rttype = @<%= singular_table_name %>.<%= attribute.name %>_typetext.to_s %>
|
20
|
-
<%% if not rttype.blank? then %>
|
21
|
-
<script language="javascript">
|
22
|
-
$(document).ready(function(){
|
23
|
-
$('#<%= singular_table_name %>_<%= attribute.name %>').markItUp(my<%%= rttype.capitalize %>Settings);
|
24
|
-
$('#markItUp<%= singular_table_name.capitalize %>_<%= attribute.name.downcase %>').addClass('<%%= rttype.downcase %>');
|
25
|
-
});
|
26
|
-
</script>
|
27
|
-
<%% end %>
|
28
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':wysiwyg') then -%>
|
2
|
+
<%- if @beautiful_attributes.include?(attribute.name + ':wysiwyg') -%>
|
29
3
|
<div class="form-group">
|
30
4
|
<%%= f.label :<%= attribute.name %>, <%= i18n_t_a(singular_table_name, attribute.name) %>.capitalize, :class => "control-label" %>
|
31
5
|
<%%= f.text_area :<%= attribute.name %>, :class => "wysiwyg-editor form-control" %>
|
32
6
|
</div>
|
33
7
|
<%%= f.hidden_field :<%= attribute.name %>_typetext, :value => "html" %>
|
34
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':references')
|
8
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':references') -%>
|
35
9
|
<div class="form-group">
|
36
10
|
<%%= f.label :<%= attribute.name %>, <%= i18n_t_a(singular_table_name, attribute.name) %>.capitalize, :class => "control-label" %>
|
37
|
-
<%%= f.collection_select :<%= attribute.name %>_id, <%= attribute.name.camelcase %>.all, :id, :caption, { :include_blank => true }, { :class => "form-control" } %>
|
11
|
+
<%%= f.collection_select :<%= attribute.name %>_id, <%= engine_camel.present? ? "#{engine_camel}::" : '' %><%= attribute.name.camelcase %>.all, :id, :caption, { :include_blank => true }, { :class => "form-control" } %>
|
38
12
|
</div>
|
39
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':price')
|
13
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':price') -%>
|
40
14
|
<div class="form-group">
|
41
15
|
<%%= f.label :<%= attribute.name %>, <%= i18n_t_a(singular_table_name, attribute.name) %>.capitalize, :class => "control-label" %>
|
42
16
|
<div class="input-group">
|
43
17
|
<span class="input-group-addon">$</span><%%= f.<%= attribute.field_type %> :<%= attribute.name %>, :class => "form-control" %>
|
44
18
|
</div>
|
45
19
|
</div>
|
46
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':date')
|
20
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':date') -%>
|
47
21
|
<div class="form-group">
|
48
22
|
<%%= f.label :<%= attribute.name %>, <%= i18n_t_a(singular_table_name, attribute.name) %>.capitalize, :class => "control-label" %>
|
49
23
|
<input type="hidden" name="<%= singular_table_name %>[<%= attribute.name %>(3i)]" id="<%= singular_table_name %>_<%= attribute.name %>_3i" value="<%%= begin @<%= singular_table_name %>.<%= attribute.name %>.day rescue "" end %>" />
|
@@ -53,7 +27,7 @@
|
|
53
27
|
<%%= f.text_field :<%= attribute.name %>, :value => (begin @<%= singular_table_name %>.<%= attribute.name %>.strftime("%d/%m/%Y") rescue "" end), :class => "dpicker form-control" %><span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
54
28
|
</div>
|
55
29
|
</div>
|
56
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':datetime')
|
30
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':datetime') -%>
|
57
31
|
<div class="form-group">
|
58
32
|
<%%= f.label :<%= attribute.name %>, <%= i18n_t_a(singular_table_name, attribute.name) %>.capitalize, :class => "control-label" %>
|
59
33
|
<input type="hidden" name="<%= singular_table_name %>[<%= attribute.name %>(3i)]" id="<%= singular_table_name %>_<%= attribute.name %>_3i" value="<%%= begin @<%= singular_table_name %>.<%= attribute.name %>.day rescue "" end %>" />
|
@@ -68,7 +42,7 @@
|
|
68
42
|
<%%= f.text_field :<%= attribute.name %>, :value => (begin @<%= singular_table_name %>.<%= attribute.name %>.strftime("%H:%M") rescue "" end), :class => "tpicker form-control" %><span class="input-group-addon"><i class="fa fa-clock-o"></i></span>
|
69
43
|
</div>
|
70
44
|
</div>
|
71
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':color')
|
45
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':color') -%>
|
72
46
|
<div class="form-group">
|
73
47
|
<%%= f.label :<%= attribute.name %>, <%= i18n_t_a(singular_table_name, attribute.name) %>.capitalize, :class => "control-label" %>
|
74
48
|
<div class="input-group color" data-color="<%%= (@<%= model %>.<%= attribute.name %> || "rgba(0, 0, 0)") %>" data-color-format="rgba">
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%- attributes.each{ |attribute| -%>
|
2
|
-
<%- if attribute.type.to_s == "boolean"
|
2
|
+
<%- if attribute.type.to_s == "boolean" -%>
|
3
3
|
<option value="<%= attribute.name %>.true"><%%= t(:settrueforattr, :attr => "'<%= attribute.name %>'", :default => "Set <%= attribute.name %> to true") %></option>
|
4
4
|
<option value="<%= attribute.name %>.false"><%%= t(:setfalseforattr, :attr => "'<%= attribute.name %>'", :default => "Set <%= attribute.name %> to false") %></option>
|
5
5
|
<%- end -%>
|
@@ -1,13 +1,11 @@
|
|
1
1
|
<%- attributes.each do |attribute| -%>
|
2
2
|
<td <%%= visible_column("<%= singular_table_name %>", "<%= attribute.name %>") %> class="bs-col-<%= attribute.name %> <%%= align_attribute("<%= attribute.type %>") %>">
|
3
|
-
<%- if @beautiful_attributes.include?(attribute.name + ':price')
|
3
|
+
<%- if @beautiful_attributes.include?(attribute.name + ':price') -%>
|
4
4
|
<%%= number_to_currency(<%= singular_table_name %>.<%= attribute.name %>, :locale => I18n.locale) %>
|
5
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':
|
6
|
-
<%%= truncate(<%= singular_table_name %>.<%= attribute.name + "_fulltext" %>, :length => 30) %>
|
7
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':boolean') then -%>
|
5
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':boolean') -%>
|
8
6
|
<%%= t((<%= singular_table_name %>.<%= attribute.name %> ? "yes" : "no").to_sym) %>
|
9
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':references')
|
10
|
-
<%% if
|
7
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':references') -%>
|
8
|
+
<%% if !<%= singular_table_name %>.<%= attribute.name %>_id.nil? %>
|
11
9
|
<%%= link_to <%= singular_table_name %>.<%= attribute.name %>.caption, <%= namespace_for_route %><%= attribute.name %>_path(<%= singular_table_name %>.<%= attribute.name %>_id) %>
|
12
10
|
<%% else %>
|
13
11
|
<%%= t(:any, :default => "Any") %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%- attributes.each do |attribute| -%>
|
2
2
|
<th <%%= visible_column("<%= singular_table_name %>", "<%= attribute.name %>") %> class="bs-col-<%= attribute.name %>">
|
3
3
|
<%- id_or_not = "" -%>
|
4
|
-
<%- if @beautiful_attributes.include?(attribute.name + ':references')
|
4
|
+
<%- if @beautiful_attributes.include?(attribute.name + ':references') -%>
|
5
5
|
<%- id_or_not = "_id" -%>
|
6
6
|
<%- end -%>
|
7
7
|
<%%= sorting_header("<%= singular_table_name %>", "<%= attribute.name %><%= id_or_not %>", "<%= namespace_alone %>") %>
|
@@ -2,10 +2,8 @@
|
|
2
2
|
<%- next if @beautiful_attributes.include?(a.name + ':color') -%>
|
3
3
|
<%- attribute = "" -%>
|
4
4
|
<%- caption = a.name.capitalize -%>
|
5
|
-
<%- if @beautiful_attributes.include?(a.name + ':references')
|
5
|
+
<%- if @beautiful_attributes.include?(a.name + ':references') -%>
|
6
6
|
<%- attribute = "_id" -%>
|
7
|
-
<%- elsif @beautiful_attributes.include?(a.name + ':richtext') then -%>
|
8
|
-
<%- attribute = "_fulltext" -%>
|
9
7
|
<%- end -%>
|
10
|
-
<%%= ransack_field("<%= singular_table_name %>", "<%= a.name %><%= attribute %>", f, "<%= caption %>") %>
|
8
|
+
<%%= ransack_field("<%= singular_table_name %>", "<%= a.name %><%= attribute %>", f, "<%= caption %>"<%= (engine_name.blank? ? '' : ", \"#{engine_opt}\"") %>) %>
|
11
9
|
<%- end -%>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<%- { :created_at => "Created At", :updated_at => "Updated At", :id => "Id" }.each{ |k,v| -%>
|
2
|
-
<%%= ransack_field("<%= singular_table_name %>", "<%= k.to_s %>", f, "<%= v %>") %>
|
2
|
+
<%%= ransack_field("<%= singular_table_name %>", "<%= k.to_s %>", f, "<%= v %>"<%= (engine_name.blank? ? '' : ", \"#{engine_opt}\"") %>) %>
|
3
3
|
<%- } -%>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<div class="modal-dialog">
|
4
4
|
<div class="modal-content">
|
5
5
|
<div class="modal-header">
|
6
|
+
<h5 class="modal-title"><%%= t(:register, :default => "Register") %></h5>
|
6
7
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
7
|
-
<h3><%%= t(:register, :default => "Register") %></h3>
|
8
8
|
</div>
|
9
9
|
<div class="modal-body">
|
10
10
|
<%% resource ||= <%= model.camelize %>.new %>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
<div class="form-group">
|
36
36
|
<div>
|
37
|
-
<%%= f.submit t(:sign_up, :default => "Sign up"), :class => 'btn btn-
|
37
|
+
<%%= f.submit t(:sign_up, :default => "Sign up"), :class => 'btn btn-light' %>
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
<%% end %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<%- attributes.each do |attribute| -%>
|
2
2
|
<p>
|
3
3
|
<b><%%= <%= i18n_t_a(singular_table_name, attribute.name) %> %>:</b>
|
4
|
-
<%- if @beautiful_attributes.include?(attribute.name + ':price')
|
4
|
+
<%- if @beautiful_attributes.include?(attribute.name + ':price') -%>
|
5
5
|
<%%= number_to_currency(@<%= singular_table_name %>.<%= attribute.name %>) %>
|
6
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':boolean')
|
6
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':boolean') -%>
|
7
7
|
<%%= t((@<%= singular_table_name %>.<%= attribute.name %> ? "yes".to_sym : "no".to_sym)) %>
|
8
|
-
<%- elsif @beautiful_attributes.include?(attribute.name + ':references')
|
8
|
+
<%- elsif @beautiful_attributes.include?(attribute.name + ':references') -%>
|
9
9
|
<%%= (@<%= singular_table_name %>.<%= attribute.name %>.nil? ? "" : @<%= singular_table_name %>.<%= attribute.name %>.caption) %>
|
10
10
|
<%- else -%>
|
11
11
|
<%%= @<%= singular_table_name %>.<%= attribute.name %> %>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<%%= f.check_box :remember_me %> <%%= t(:remember_me, :default => "Remember me") %>
|
12
12
|
</label>
|
13
13
|
</div>
|
14
|
-
<%%= f.submit t(:sign_in, :default => "Sign in"), :class => "btn btn-
|
14
|
+
<%%= f.submit t(:sign_in, :default => "Sign in"), :class => "btn btn-light" %>
|
15
15
|
<%% end %>
|
16
16
|
<a data-toggle="modal" href="#modal-forget-password"><%%= t(:forgot_your_password, :default => "Forgot your password?") %></a>
|
17
17
|
<a data-toggle="modal" href="#modal-register-form"><%%= t(:register, :default => "Register") %></a>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%% if <%= model %>_signed_in?
|
1
|
+
<%% if <%= model %>_signed_in? %>
|
2
2
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
3
3
|
<i class="icon-user"></i> <%%= current_<%= model %>.caption %>
|
4
4
|
<span class="caret"></span>
|
5
5
|
</a>
|
6
6
|
<ul class="dropdown-menu">
|
7
7
|
<li><a href="#"><%%= t(:profile, :default => "Profile") %></a></li>
|
8
|
-
<li class="divider"></li>
|
8
|
+
<li class="dropdown-divider"></li>
|
9
9
|
<li><%%= link_to t(:sign_out, :default => "Sign Out"), destroy_<%= model %>_session_path, :method => :delete %></li>
|
10
10
|
</ul>
|
11
11
|
<%% else %>
|
@@ -3,6 +3,6 @@
|
|
3
3
|
<%= render_partial 'app/views/partials/_show_field.html.erb' %>
|
4
4
|
<!-- Beautiful_scaffold - AddField - Field - Do not remove -->
|
5
5
|
|
6
|
-
<%%= link_to t(:edit, :default => "Edit"), edit_<%= namespace_for_route %><%= singular_table_name %>_path(@<%= singular_table_name %>), :class => "btn btn-
|
7
|
-
<%%= link_to t(:back, :default => "Back"), <%= namespace_for_route %><%= plural_table_name %>_path, :class => "btn btn-
|
6
|
+
<%%= link_to t(:edit, :default => "Edit"), edit_<%= namespace_for_route %><%= singular_table_name %>_path(@<%= singular_table_name %>), :class => "btn btn-light" %>
|
7
|
+
<%%= link_to t(:back, :default => "Back"), <%= namespace_for_route %><%= plural_table_name %>_path, :class => "btn btn-light" %>
|
8
8
|
|
@@ -1,17 +1,20 @@
|
|
1
1
|
<h2><%%= t(:treeview, :default => 'Treeview') %> <%%= <%= i18n_t_m(singular_table_name) %> %></h2>
|
2
2
|
|
3
|
+
<% engine_or_empty = (engine_camel.present? ? "#{engine_camel}::" : '') %>
|
4
|
+
|
3
5
|
<%%
|
6
|
+
engine_name = "<%= engine_name %>"
|
4
7
|
namespace_for_url = "<%= namespace_for_url %>"
|
5
8
|
plural_model_name = "<%= model_pluralize %>"
|
6
9
|
model_name = "<%= singular_table_name %>"
|
7
|
-
opened_node = <%= model_camelize %>.select(:id).all.map{ |g| "'treeelt_" + g.id.to_s + "'" }.join(',').html_safe
|
10
|
+
opened_node = <%= engine_or_empty %><%= model_camelize %>.select(:id).all.map{ |g| "'treeelt_" + g.id.to_s + "'" }.join(',').html_safe
|
8
11
|
%>
|
9
12
|
|
10
|
-
<div id="treeview" data-model="<%%= model_name %>" data-url="/<%%= namespace_for_url %><%%= plural_model_name %>/" data-opened="[<%%= opened_node %>]">
|
13
|
+
<div id="treeview" data-model="<%%= model_name %>" data-url="/<%%= engine_name %><%%= namespace_for_url %><%%= plural_model_name %>/" data-opened="[<%%= opened_node %>]">
|
11
14
|
<ul>
|
12
|
-
<%% <%= model_camelize %>.transaction do %>
|
13
|
-
<%% ar = <%= model_camelize %>.where(:<%= model %>_id => nil) %>
|
14
|
-
<%% ar = ar.order("position") if <%= model_camelize %>.column_names.include?("position") %>
|
15
|
+
<%% <%= engine_or_empty %><%= model_camelize %>.transaction do %>
|
16
|
+
<%% ar = <%= engine_or_empty %><%= model_camelize %>.where(:<%= model %>_id => nil) %>
|
17
|
+
<%% ar = ar.order("position") if <%= engine_or_empty %><%= model_camelize %>.column_names.include?("position") %>
|
15
18
|
<%% for g in ar.all %>
|
16
19
|
<%%= build_treeview(g, '<%= model_pluralize %>') %>
|
17
20
|
<%% end %>
|
metadata
CHANGED
@@ -1,37 +1,31 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: beautiful_scaffold
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
- 6
|
10
|
-
version: 0.3.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Sylvain Claudel
|
14
|
-
autorequire:
|
8
|
+
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2015-03-20 00:00:00 Z
|
11
|
+
date: 2020-12-23 00:00:00.000000000 Z
|
19
12
|
dependencies: []
|
20
|
-
|
21
|
-
|
13
|
+
description: Beautiful Scaffold generate a complete scaffold (sort, export, paginate
|
14
|
+
and filter data) http://beautiful-scaffold.rivsc.ovh
|
22
15
|
email: claudel.sylvain@gmail.com
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
18
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
|
19
|
+
files:
|
20
|
+
- ".gitattributes"
|
21
|
+
- ".gitignore"
|
30
22
|
- CHANGELOG
|
31
23
|
- Gemfile
|
32
24
|
- MIT-LICENSE
|
33
25
|
- README.rdoc
|
26
|
+
- Rakefile
|
34
27
|
- beautiful_scaffold.gemspec
|
28
|
+
- lib/beautiful_scaffold/version.rb
|
35
29
|
- lib/generators/USAGE
|
36
30
|
- lib/generators/beautiful_devisecancan_generator.rb
|
37
31
|
- lib/generators/beautiful_jointable_generator.rb
|
@@ -48,37 +42,36 @@ files:
|
|
48
42
|
- lib/generators/templates/app/assets/javascripts/application-bs.js
|
49
43
|
- lib/generators/templates/app/assets/javascripts/beautiful_scaffold.js
|
50
44
|
- lib/generators/templates/app/assets/javascripts/bootstrap-colorpicker.js
|
51
|
-
- lib/generators/templates/app/assets/javascripts/bootstrap-datepicker.js
|
52
45
|
- lib/generators/templates/app/assets/javascripts/bootstrap-datetimepicker-for-beautiful-scaffold.js
|
53
|
-
- lib/generators/templates/app/assets/javascripts/bootstrap-timepicker.js
|
54
46
|
- lib/generators/templates/app/assets/javascripts/bootstrap-wysihtml5.js
|
55
47
|
- lib/generators/templates/app/assets/javascripts/fixed_menu.js
|
56
48
|
- lib/generators/templates/app/assets/javascripts/jquery-barcode.js
|
57
|
-
- lib/generators/templates/app/assets/javascripts/
|
58
|
-
- lib/generators/templates/app/assets/javascripts/jquery.livequery.js
|
49
|
+
- lib/generators/templates/app/assets/javascripts/jstree.min.js
|
59
50
|
- lib/generators/templates/app/assets/javascripts/modernizr.custom.js
|
60
51
|
- lib/generators/templates/app/assets/javascripts/tagit.js
|
61
52
|
- lib/generators/templates/app/assets/stylesheets/application-bs.css
|
62
53
|
- lib/generators/templates/app/assets/stylesheets/beautiful-scaffold.css.scss
|
63
54
|
- lib/generators/templates/app/assets/stylesheets/bootstrap-wysihtml5.css
|
64
|
-
- lib/generators/templates/app/assets/stylesheets/bootstrap_and_overrides.css.less
|
65
55
|
- lib/generators/templates/app/assets/stylesheets/colorpicker.css
|
66
|
-
- lib/generators/templates/app/assets/stylesheets/datepicker.css
|
67
|
-
- lib/generators/templates/app/assets/stylesheets/reset.css
|
68
56
|
- lib/generators/templates/app/assets/stylesheets/tagit-dark-grey.css
|
69
|
-
- lib/generators/templates/app/assets/stylesheets/themes/default/
|
70
|
-
- lib/generators/templates/app/assets/stylesheets/themes/default/
|
71
|
-
- lib/generators/templates/app/assets/stylesheets/themes/default/style.
|
57
|
+
- lib/generators/templates/app/assets/stylesheets/themes/default-dark/32px.png
|
58
|
+
- lib/generators/templates/app/assets/stylesheets/themes/default-dark/40px.png
|
59
|
+
- lib/generators/templates/app/assets/stylesheets/themes/default-dark/style.scss
|
60
|
+
- lib/generators/templates/app/assets/stylesheets/themes/default-dark/throbber.gif
|
61
|
+
- lib/generators/templates/app/assets/stylesheets/themes/default/32px.png
|
62
|
+
- lib/generators/templates/app/assets/stylesheets/themes/default/40px.png
|
63
|
+
- lib/generators/templates/app/assets/stylesheets/themes/default/style.scss
|
72
64
|
- lib/generators/templates/app/assets/stylesheets/themes/default/throbber.gif
|
73
|
-
- lib/generators/templates/app/assets/stylesheets/timepicker.css
|
74
65
|
- lib/generators/templates/app/controllers/base.rb
|
75
66
|
- lib/generators/templates/app/controllers/master_base.rb
|
76
67
|
- lib/generators/templates/app/controllers/registrations_controller.rb
|
77
68
|
- lib/generators/templates/app/helpers/beautiful_helper.rb
|
78
69
|
- lib/generators/templates/app/helpers/model_helper.rb
|
79
70
|
- lib/generators/templates/app/initializers/link_renderer.rb
|
71
|
+
- lib/generators/templates/app/initializers/ransack.rb
|
80
72
|
- lib/generators/templates/app/locales/beautiful_scaffold.en.yml
|
81
73
|
- lib/generators/templates/app/locales/beautiful_scaffold.fr.yml
|
74
|
+
- lib/generators/templates/app/locales/beautiful_scaffold.ja.yml
|
82
75
|
- lib/generators/templates/app/models/concerns/caption_concern.rb
|
83
76
|
- lib/generators/templates/app/models/concerns/default_sorting_concern.rb
|
84
77
|
- lib/generators/templates/app/models/concerns/fulltext_concern.rb
|
@@ -107,168 +100,29 @@ files:
|
|
107
100
|
- lib/generators/templates/app/views/show.html.erb
|
108
101
|
- lib/generators/templates/app/views/treeview.html.erb
|
109
102
|
- lib/generators/templates/lib/custom_failure.rb
|
110
|
-
|
111
|
-
|
112
|
-
-
|
113
|
-
|
114
|
-
|
115
|
-
- lib/generators/templates/markitup/sets/bbcode/images/italic.png
|
116
|
-
- lib/generators/templates/markitup/sets/bbcode/images/link.png
|
117
|
-
- lib/generators/templates/markitup/sets/bbcode/images/list-bullet.png
|
118
|
-
- lib/generators/templates/markitup/sets/bbcode/images/list-item.png
|
119
|
-
- lib/generators/templates/markitup/sets/bbcode/images/list-numeric.png
|
120
|
-
- lib/generators/templates/markitup/sets/bbcode/images/picture.png
|
121
|
-
- lib/generators/templates/markitup/sets/bbcode/images/preview.png
|
122
|
-
- lib/generators/templates/markitup/sets/bbcode/images/quotes.png
|
123
|
-
- lib/generators/templates/markitup/sets/bbcode/images/stroke.png
|
124
|
-
- lib/generators/templates/markitup/sets/bbcode/images/underline.png
|
125
|
-
- lib/generators/templates/markitup/sets/bbcode/readme.txt
|
126
|
-
- lib/generators/templates/markitup/sets/bbcode/set.js
|
127
|
-
- lib/generators/templates/markitup/sets/bbcode/style.css
|
128
|
-
- lib/generators/templates/markitup/sets/default/images/bold.png
|
129
|
-
- lib/generators/templates/markitup/sets/default/images/clean.png
|
130
|
-
- lib/generators/templates/markitup/sets/default/images/image.png
|
131
|
-
- lib/generators/templates/markitup/sets/default/images/italic.png
|
132
|
-
- lib/generators/templates/markitup/sets/default/images/link.png
|
133
|
-
- lib/generators/templates/markitup/sets/default/images/list-bullet.png
|
134
|
-
- lib/generators/templates/markitup/sets/default/images/list-numeric.png
|
135
|
-
- lib/generators/templates/markitup/sets/default/images/picture.png
|
136
|
-
- lib/generators/templates/markitup/sets/default/images/preview.png
|
137
|
-
- lib/generators/templates/markitup/sets/default/images/stroke.png
|
138
|
-
- lib/generators/templates/markitup/sets/default/set.js
|
139
|
-
- lib/generators/templates/markitup/sets/default/style.css
|
140
|
-
- lib/generators/templates/markitup/sets/html/images/bold.png
|
141
|
-
- lib/generators/templates/markitup/sets/html/images/clean.png
|
142
|
-
- lib/generators/templates/markitup/sets/html/images/h1.png
|
143
|
-
- lib/generators/templates/markitup/sets/html/images/h2.png
|
144
|
-
- lib/generators/templates/markitup/sets/html/images/h3.png
|
145
|
-
- lib/generators/templates/markitup/sets/html/images/h4.png
|
146
|
-
- lib/generators/templates/markitup/sets/html/images/h5.png
|
147
|
-
- lib/generators/templates/markitup/sets/html/images/h6.png
|
148
|
-
- lib/generators/templates/markitup/sets/html/images/image.png
|
149
|
-
- lib/generators/templates/markitup/sets/html/images/italic.png
|
150
|
-
- lib/generators/templates/markitup/sets/html/images/link.png
|
151
|
-
- lib/generators/templates/markitup/sets/html/images/list-bullet.png
|
152
|
-
- lib/generators/templates/markitup/sets/html/images/list-item.png
|
153
|
-
- lib/generators/templates/markitup/sets/html/images/list-numeric.png
|
154
|
-
- lib/generators/templates/markitup/sets/html/images/paragraph.png
|
155
|
-
- lib/generators/templates/markitup/sets/html/images/picture.png
|
156
|
-
- lib/generators/templates/markitup/sets/html/images/preview.png
|
157
|
-
- lib/generators/templates/markitup/sets/html/images/stroke.png
|
158
|
-
- lib/generators/templates/markitup/sets/html/readme.txt
|
159
|
-
- lib/generators/templates/markitup/sets/html/set.js
|
160
|
-
- lib/generators/templates/markitup/sets/html/style.css
|
161
|
-
- lib/generators/templates/markitup/sets/markdown/images/bold.png
|
162
|
-
- lib/generators/templates/markitup/sets/markdown/images/code.png
|
163
|
-
- lib/generators/templates/markitup/sets/markdown/images/h1.png
|
164
|
-
- lib/generators/templates/markitup/sets/markdown/images/h2.png
|
165
|
-
- lib/generators/templates/markitup/sets/markdown/images/h3.png
|
166
|
-
- lib/generators/templates/markitup/sets/markdown/images/h4.png
|
167
|
-
- lib/generators/templates/markitup/sets/markdown/images/h5.png
|
168
|
-
- lib/generators/templates/markitup/sets/markdown/images/h6.png
|
169
|
-
- lib/generators/templates/markitup/sets/markdown/images/italic.png
|
170
|
-
- lib/generators/templates/markitup/sets/markdown/images/link.png
|
171
|
-
- lib/generators/templates/markitup/sets/markdown/images/list-bullet.png
|
172
|
-
- lib/generators/templates/markitup/sets/markdown/images/list-numeric.png
|
173
|
-
- lib/generators/templates/markitup/sets/markdown/images/picture.png
|
174
|
-
- lib/generators/templates/markitup/sets/markdown/images/preview.png
|
175
|
-
- lib/generators/templates/markitup/sets/markdown/images/quotes.png
|
176
|
-
- lib/generators/templates/markitup/sets/markdown/readme.txt
|
177
|
-
- lib/generators/templates/markitup/sets/markdown/set.js
|
178
|
-
- lib/generators/templates/markitup/sets/markdown/style.css
|
179
|
-
- lib/generators/templates/markitup/sets/textile/images/bold.png
|
180
|
-
- lib/generators/templates/markitup/sets/textile/images/code.png
|
181
|
-
- lib/generators/templates/markitup/sets/textile/images/h1.png
|
182
|
-
- lib/generators/templates/markitup/sets/textile/images/h2.png
|
183
|
-
- lib/generators/templates/markitup/sets/textile/images/h3.png
|
184
|
-
- lib/generators/templates/markitup/sets/textile/images/h4.png
|
185
|
-
- lib/generators/templates/markitup/sets/textile/images/h5.png
|
186
|
-
- lib/generators/templates/markitup/sets/textile/images/h6.png
|
187
|
-
- lib/generators/templates/markitup/sets/textile/images/italic.png
|
188
|
-
- lib/generators/templates/markitup/sets/textile/images/link.png
|
189
|
-
- lib/generators/templates/markitup/sets/textile/images/list-bullet.png
|
190
|
-
- lib/generators/templates/markitup/sets/textile/images/list-numeric.png
|
191
|
-
- lib/generators/templates/markitup/sets/textile/images/paragraph.png
|
192
|
-
- lib/generators/templates/markitup/sets/textile/images/picture.png
|
193
|
-
- lib/generators/templates/markitup/sets/textile/images/preview.png
|
194
|
-
- lib/generators/templates/markitup/sets/textile/images/quotes.png
|
195
|
-
- lib/generators/templates/markitup/sets/textile/images/stroke.png
|
196
|
-
- lib/generators/templates/markitup/sets/textile/readme.txt
|
197
|
-
- lib/generators/templates/markitup/sets/textile/set.js
|
198
|
-
- lib/generators/templates/markitup/sets/textile/style.css
|
199
|
-
- lib/generators/templates/markitup/sets/wiki/images/bold.png
|
200
|
-
- lib/generators/templates/markitup/sets/wiki/images/code.png
|
201
|
-
- lib/generators/templates/markitup/sets/wiki/images/h1.png
|
202
|
-
- lib/generators/templates/markitup/sets/wiki/images/h2.png
|
203
|
-
- lib/generators/templates/markitup/sets/wiki/images/h3.png
|
204
|
-
- lib/generators/templates/markitup/sets/wiki/images/h4.png
|
205
|
-
- lib/generators/templates/markitup/sets/wiki/images/h5.png
|
206
|
-
- lib/generators/templates/markitup/sets/wiki/images/h6.png
|
207
|
-
- lib/generators/templates/markitup/sets/wiki/images/italic.png
|
208
|
-
- lib/generators/templates/markitup/sets/wiki/images/link.png
|
209
|
-
- lib/generators/templates/markitup/sets/wiki/images/list-bullet.png
|
210
|
-
- lib/generators/templates/markitup/sets/wiki/images/list-numeric.png
|
211
|
-
- lib/generators/templates/markitup/sets/wiki/images/picture.png
|
212
|
-
- lib/generators/templates/markitup/sets/wiki/images/preview.png
|
213
|
-
- lib/generators/templates/markitup/sets/wiki/images/quotes.png
|
214
|
-
- lib/generators/templates/markitup/sets/wiki/images/stroke.png
|
215
|
-
- lib/generators/templates/markitup/sets/wiki/images/url.png
|
216
|
-
- lib/generators/templates/markitup/sets/wiki/readme.txt
|
217
|
-
- lib/generators/templates/markitup/sets/wiki/set.js
|
218
|
-
- lib/generators/templates/markitup/sets/wiki/style.css
|
219
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-container.png
|
220
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor-bbcode.png
|
221
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor-dotclear.png
|
222
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor-html.png
|
223
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor-json.png
|
224
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor-markdown.png
|
225
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor-textile.png
|
226
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor-wiki.png
|
227
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor-xml.png
|
228
|
-
- lib/generators/templates/markitup/skins/markitup/images/bg-editor.png
|
229
|
-
- lib/generators/templates/markitup/skins/markitup/images/handle.png
|
230
|
-
- lib/generators/templates/markitup/skins/markitup/images/menu.png
|
231
|
-
- lib/generators/templates/markitup/skins/markitup/images/submenu.png
|
232
|
-
- lib/generators/templates/markitup/skins/markitup/style.css
|
233
|
-
- lib/generators/templates/markitup/skins/simple/images/handle.png
|
234
|
-
- lib/generators/templates/markitup/skins/simple/images/menu.png
|
235
|
-
- lib/generators/templates/markitup/skins/simple/images/submenu.png
|
236
|
-
- lib/generators/templates/markitup/skins/simple/style.css
|
237
|
-
- lib/generators/templates/markitup/templates/preview.css
|
238
|
-
- lib/generators/templates/markitup/templates/preview.html
|
239
|
-
homepage: http://beautiful-scaffold.com
|
240
|
-
licenses: []
|
241
|
-
|
242
|
-
post_install_message:
|
103
|
+
homepage: https://blog.rivsc.ovh
|
104
|
+
licenses:
|
105
|
+
- MIT
|
106
|
+
metadata: {}
|
107
|
+
post_install_message:
|
243
108
|
rdoc_options: []
|
244
|
-
|
245
|
-
require_paths:
|
109
|
+
require_paths:
|
246
110
|
- lib
|
247
111
|
- lib/generators
|
248
|
-
|
249
|
-
|
250
|
-
requirements:
|
112
|
+
- test/*
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
251
115
|
- - ">="
|
252
|
-
- !ruby/object:Gem::Version
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
version: "0"
|
257
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
258
|
-
none: false
|
259
|
-
requirements:
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
260
120
|
- - ">="
|
261
|
-
- !ruby/object:Gem::Version
|
262
|
-
|
263
|
-
segments:
|
264
|
-
- 0
|
265
|
-
version: "0"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
266
123
|
requirements: []
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
signing_key:
|
271
|
-
specification_version: 3
|
124
|
+
rubygems_version: 3.1.2
|
125
|
+
signing_key:
|
126
|
+
specification_version: 4
|
272
127
|
summary: Beautiful Scaffold generate fully customizable scaffold
|
273
128
|
test_files: []
|
274
|
-
|