fullstack-admin 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/assets/javascripts/support/forms.js.coffee +3 -1
- data/fullstack-admin.gemspec +2 -2
- data/lib/generators/fullstack/admin/scaffold_generator.rb +3 -2
- data/lib/generators/fullstack/admin/templates/root/app/assets/javascripts/admin/admin.js.coffee +0 -2
- data/lib/generators/fullstack/admin/templates/root/app/views/admin/shared/_nav.html.erb +30 -0
- metadata +3 -3
- data/lib/generators/fullstack/admin/templates/root/app/views/admin/_nav.html.erb +0 -34
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.16
|
@@ -7,11 +7,13 @@
|
|
7
7
|
#= require support/pickers
|
8
8
|
#= require chosen-jquery
|
9
9
|
#= require ajax-chosen
|
10
|
-
#= require jquery.form
|
11
10
|
#= require jquery.remotipart
|
12
11
|
#= require jquery.validate
|
13
12
|
#= require ckeditor/init
|
14
13
|
|
14
|
+
## require jquery.form
|
15
|
+
|
16
|
+
|
15
17
|
$(document).ready ->
|
16
18
|
|
17
19
|
$("input[data-limit],textarea[data-limit]").limit()
|
data/fullstack-admin.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "fullstack-admin"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.16"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["mcasimir"]
|
@@ -994,8 +994,8 @@ Gem::Specification.new do |s|
|
|
994
994
|
"lib/generators/fullstack/admin/templates/root/app/assets/stylesheets/admin/admin.css",
|
995
995
|
"lib/generators/fullstack/admin/templates/root/app/controllers/admin/dashboard_controller.rb",
|
996
996
|
"lib/generators/fullstack/admin/templates/root/app/models/user.rb",
|
997
|
-
"lib/generators/fullstack/admin/templates/root/app/views/admin/_nav.html.erb",
|
998
997
|
"lib/generators/fullstack/admin/templates/root/app/views/admin/dashboard/show.html.erb",
|
998
|
+
"lib/generators/fullstack/admin/templates/root/app/views/admin/shared/_nav.html.erb",
|
999
999
|
"lib/generators/fullstack/admin/templates/root/db/migrate/%migration_timestamp%_create_ckeditor_assets.rb",
|
1000
1000
|
"lib/generators/fullstack/admin/templates/root/lib/support/user_subject.rb",
|
1001
1001
|
"locales/en.yml",
|
@@ -45,10 +45,11 @@ module Fullstack
|
|
45
45
|
# end
|
46
46
|
|
47
47
|
def append_to_menu
|
48
|
-
|
48
|
+
placeholder_text = "FULLSTACK_PLACEHOLDER"
|
49
|
+
gsub_file(Rails.root.join('app', 'views', scope, "shared", "_nav.html.erb"), /\<\!-- #{placeholder_text} --\>\n/) do
|
49
50
|
<<-str
|
50
51
|
<%= nav_item _("#{controller_class_name}"), #{scope}_#{plural_name}_path %>
|
51
|
-
<!--
|
52
|
+
<!-- #{placeholder_text} -->
|
52
53
|
|
53
54
|
str
|
54
55
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<% content_for :menu do -%>
|
2
|
+
|
3
|
+
<%= nav do %>
|
4
|
+
<%= nav_item t('fullstack.admin.dashboard', :default => "Dashboard"), admin_root_path, :icon => "cog" , :icon_color => :white %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<%= nav(:class => 'float right') do %>
|
8
|
+
<%= nav_item t('fullstack.admin.homepage', :default => "Homepage"), "/", :icon => "home" , :icon_color => :white %>
|
9
|
+
<%= dropdown_nav_item t('fullstack.admin.account', :default => "Account"), :icon => "user" , :icon_color => :white do %>
|
10
|
+
<%= nav_item t('fullstack.admin.logout', :default => "Logout"), destroy_user_session_path, :method => :delete %>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% end -%>
|
15
|
+
|
16
|
+
<% content_for :nav do -%>
|
17
|
+
|
18
|
+
<div class="well">
|
19
|
+
<%= nav_list do %>
|
20
|
+
<!-- FULLSTACK_PLACEHOLDER -->
|
21
|
+
|
22
|
+
<!-- Please do not delete the comment above.
|
23
|
+
It is used by fullstack generators
|
24
|
+
to attach new items to this menu.
|
25
|
+
-->
|
26
|
+
<% end %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
|
30
|
+
<% end -%>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullstack-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -1220,8 +1220,8 @@ files:
|
|
1220
1220
|
- lib/generators/fullstack/admin/templates/root/app/assets/stylesheets/admin/admin.css
|
1221
1221
|
- lib/generators/fullstack/admin/templates/root/app/controllers/admin/dashboard_controller.rb
|
1222
1222
|
- lib/generators/fullstack/admin/templates/root/app/models/user.rb
|
1223
|
-
- lib/generators/fullstack/admin/templates/root/app/views/admin/_nav.html.erb
|
1224
1223
|
- lib/generators/fullstack/admin/templates/root/app/views/admin/dashboard/show.html.erb
|
1224
|
+
- lib/generators/fullstack/admin/templates/root/app/views/admin/shared/_nav.html.erb
|
1225
1225
|
- lib/generators/fullstack/admin/templates/root/db/migrate/%migration_timestamp%_create_ckeditor_assets.rb
|
1226
1226
|
- lib/generators/fullstack/admin/templates/root/lib/support/user_subject.rb
|
1227
1227
|
- locales/en.yml
|
@@ -1262,7 +1262,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1262
1262
|
version: '0'
|
1263
1263
|
segments:
|
1264
1264
|
- 0
|
1265
|
-
hash:
|
1265
|
+
hash: 2167604750692856345
|
1266
1266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1267
1267
|
none: false
|
1268
1268
|
requirements:
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<% content_for :menu do -%>
|
2
|
-
|
3
|
-
<%= nav do %>
|
4
|
-
<%= nav_item _("Dashboard"), admin_root_path, :icon => "cog" , :icon_color => :white %>
|
5
|
-
<% end %>
|
6
|
-
|
7
|
-
<%= nav(:class => 'float right') do %>
|
8
|
-
<%= nav_item _("Homepage"), "/", :icon => "home" , :icon_color => :white %>
|
9
|
-
<%= dropdown_nav_item _("Account"), :icon => "user" , :icon_color => :white do %>
|
10
|
-
<%= nav_item _('Logout'), destroy_user_session_path, :method => :delete %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<% end -%>
|
15
|
-
|
16
|
-
<% content_for :nav do -%>
|
17
|
-
|
18
|
-
<div class="well">
|
19
|
-
<%= nav_list do %>
|
20
|
-
<%= nav_header _("Contents") %>
|
21
|
-
<!-- FULLSTACK_PLACEHOLDER -->
|
22
|
-
|
23
|
-
<!-- Please do not delete the comment above.
|
24
|
-
It is a placeholder used by fullstack generators
|
25
|
-
to attach new menu items
|
26
|
-
-->
|
27
|
-
|
28
|
-
<%= nav_header _("Users") %>
|
29
|
-
<%= nav_item _("Users"), admin_users_path %>
|
30
|
-
<% end -%>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
|
34
|
-
<% end -%>
|