gluttonberg-core 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/app/assets/stylesheets/admin-override.sass +4 -1
- data/app/helpers/gluttonberg/admin.rb +7 -6
- data/lib/generators/gluttonberg/resource/templates/admin_controller.rb +1 -3
- data/lib/generators/gluttonberg/resource/templates/backend_view_index.html.haml +0 -2
- data/lib/gluttonberg/version.rb +1 -1
- metadata +3 -3
- data/README +0 -107
data/README.md
ADDED
@@ -0,0 +1,4 @@
|
|
1
|
+
Gluttonberg Core
|
2
|
+
================
|
3
|
+
|
4
|
+
The Gluttonberg goal has always been to create a Content Management System that's great for users, content manager and developers. The focus of Gluttonberg 2.5 has been two-fold: a refined management user interface to make maintaining your website even easier and a change in the architecture of the system to support our new functionality modules: Events, TV, Mobile and soon eCommerce.
|
@@ -412,16 +412,16 @@ module ActionView
|
|
412
412
|
unique_field_name = "#{field_name}_#{Gluttonberg::Member.generateRandomString}"
|
413
413
|
date_field_html_opts[:onblur] = "checkDateFormat(this,'.#{unique_field_name}_error');combine_datetime('#{unique_field_name}');"
|
414
414
|
if date_field_html_opts[:class].blank?
|
415
|
-
date_field_html_opts[:class] = "small datefield"
|
415
|
+
date_field_html_opts[:class] = "small span2 datefield"
|
416
416
|
|
417
417
|
else
|
418
|
-
date_field_html_opts[:class] += " small datefield"
|
418
|
+
date_field_html_opts[:class] += " small span2 datefield"
|
419
419
|
end
|
420
420
|
|
421
421
|
if time_field_html_opts[:class].blank?
|
422
|
-
time_field_html_opts[:class] = "timefield"
|
422
|
+
time_field_html_opts[:class] = " small span2 timefield"
|
423
423
|
else
|
424
|
-
time_field_html_opts[:class] += " timefield"
|
424
|
+
time_field_html_opts[:class] += " small span2 timefield"
|
425
425
|
end
|
426
426
|
time_field_html_opts[:onblur] = "checkTimeFormat(this,'.#{unique_field_name}_error');combine_datetime('#{unique_field_name}')"
|
427
427
|
|
@@ -433,11 +433,12 @@ module ActionView
|
|
433
433
|
time = self.object.send(field_name).strftime("%I:%M %p")
|
434
434
|
end
|
435
435
|
html += text_field_tag("#{unique_field_name}_date" , date , date_field_html_opts )
|
436
|
-
html += "<span class='date'>DD/MM/YYYY</span>"
|
436
|
+
# html += "<span class='date'>DD/MM/YYYY</span>"
|
437
437
|
html += " "
|
438
438
|
html += text_field_tag("#{unique_field_name}_time" , time , time_field_html_opts )
|
439
|
-
html += "<span class='date time'>HH:MM AM/PM</span>"
|
439
|
+
# html += "<span class='date time'>HH:MM AM/PM</span>"
|
440
440
|
html += self.hidden_field("#{field_name}" , :class => "#{unique_field_name}")
|
441
|
+
html += "<span class='help-block'><span class='span2'>DD/MM/YYYY</span> <span class='span2'>HH:MM AM/PM</span></span>"
|
441
442
|
html += "<label class='error #{unique_field_name}_error'></label>"
|
442
443
|
html += "<div class='clear'></div>"
|
443
444
|
html += "<script type='text/javascript'>$(document).ready(function() { combine_datetime('#{unique_field_name}'); }); </script>"
|
@@ -20,14 +20,12 @@
|
|
20
20
|
- form_tag(admin_<%=plural_name%>_path, :method => :get , :id => "list_search_form") do
|
21
21
|
= text_field_tag :query, params[:query]
|
22
22
|
= submit_tag "Search" , :class => "button"
|
23
|
-
|
24
23
|
<%end%>
|
25
24
|
|
26
25
|
- if @<%= plural_name %>.empty?
|
27
26
|
%p.empty
|
28
27
|
No <%= plural_class_name %>
|
29
28
|
- else
|
30
|
-
|
31
29
|
<% if draggable? %>
|
32
30
|
%table{:id => 'pages_table', :class => "table table-bordered #{(can?(:reorder , <%=class_name%>) ? "#{drag_tree_table_class} " : " " )}", :cellpadding => 0, :cellspacing => 0, :rel => "" , :summary => "<%= plural_name %>" , :rel => drag_tree_url }
|
33
31
|
<%else%>
|
data/lib/gluttonberg/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gluttonberg-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2012-
|
15
|
+
date: 2012-12-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: authlogic
|
@@ -977,7 +977,7 @@ files:
|
|
977
977
|
- lib/pagination_list_link_renderer.rb
|
978
978
|
- lib/rails/railties/tasks.rake
|
979
979
|
- Rakefile
|
980
|
-
- README
|
980
|
+
- README.md
|
981
981
|
homepage: http://gluttonberg.com
|
982
982
|
licenses: []
|
983
983
|
post_install_message:
|
data/README
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
BOOTSTRAPPING
|
2
|
-
The Gluttonberg engine will not run a server by itself. Instead it needs to be
|
3
|
-
booted within a stubbed out Rails application. Thankfully, this is pretty easy
|
4
|
-
to do.
|
5
|
-
|
6
|
-
Say you have Gluttonberg stored in the following directory:
|
7
|
-
|
8
|
-
~/Code/gluttonberg
|
9
|
-
|
10
|
-
CD into the Code directory and generate a new Rails app:
|
11
|
-
|
12
|
-
$ cd ~/Code
|
13
|
-
$ rails new gluttonberg-test
|
14
|
-
|
15
|
-
Then inside the new rails app, open the Gemfile and edit it so it requires the
|
16
|
-
Gluttonberg engine.
|
17
|
-
|
18
|
-
$ mvim gluttonberg-test/Gemfile
|
19
|
-
|
20
|
-
The require should look like this - assuming you use the same dirs as me:
|
21
|
-
|
22
|
-
gem 'gluttonberg', :path => '../gluttonberg'
|
23
|
-
|
24
|
-
bundle install
|
25
|
-
|
26
|
-
If this is the first time you are bootstrapping gluttonberg, you will need to copy the migrations to the host app.
|
27
|
-
There is a simple generator that will do this for you.
|
28
|
-
|
29
|
-
Change your config/database.yml file
|
30
|
-
create your database by running rake db:create
|
31
|
-
|
32
|
-
$ rails generate gluttonberg:installer
|
33
|
-
|
34
|
-
Then boot your Rails app.
|
35
|
-
|
36
|
-
$ cd gluttonberg-test
|
37
|
-
$ rails generate gluttonberg:installer
|
38
|
-
$ rails server
|
39
|
-
|
40
|
-
Simple as that!
|
41
|
-
|
42
|
-
=======================================================================================
|
43
|
-
ASSET LIBRARY
|
44
|
-
|
45
|
-
First, you should install ImageMagick (www.imagemagick.org/) on your machine. Command line tools of ImageMagick must be in your system path. You can check this by running the command:
|
46
|
-
|
47
|
-
Customise your asset library settings in application.rb file. gluttonberg:installer will generate an example setting in readme file.
|
48
|
-
|
49
|
-
=======================================================================================
|
50
|
-
|
51
|
-
AUTHENTICATION
|
52
|
-
|
53
|
-
At this stage there is no signup form.
|
54
|
-
You will need to fire up a console and run the following commands (Change email, first name and password accordingly)
|
55
|
-
|
56
|
-
user = User.new(:email => "admin@freerangefuture.com", :password => "password1", :password_confirmation => "password1" , :first_name => "first_name" )
|
57
|
-
user.role = "super_admin"
|
58
|
-
user.save
|
59
|
-
|
60
|
-
You will now be able to log in.
|
61
|
-
|
62
|
-
** require_user **
|
63
|
-
require_user is called on every admin page via the Gluttonberg::Admin::BaseController.
|
64
|
-
|
65
|
-
To skip require_user use
|
66
|
-
|
67
|
-
skip_before_filter :require_user, :only => [:method]
|
68
|
-
|
69
|
-
=======================================================================================
|
70
|
-
|
71
|
-
SETTINGS
|
72
|
-
rake gluttonberg:library:bootstrap
|
73
|
-
rake gluttonberg:generate_default_locale
|
74
|
-
rake gluttonberg:generate_or_update_default_settings
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
VERSIONING
|
79
|
-
======================================================================================
|
80
|
-
|
81
|
-
If you want to make your make versions of your model data.
|
82
|
-
Put following line in your model
|
83
|
-
|
84
|
-
is_versioned
|
85
|
-
|
86
|
-
or
|
87
|
-
|
88
|
-
is_versioned opts_hash # for more detail about opts hash Please read acts_as_versioned documentation
|
89
|
-
|
90
|
-
please add following lines in your application.rb file and customize according to your requirement
|
91
|
-
|
92
|
-
config.filter_parameters += [:password , :password_confirmation]
|
93
|
-
config.app_name = "Gluttonberg Test" # Human readable name of your application
|
94
|
-
config.localize = false # or true : if you want localized pages then please set it true
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
BLOG
|
99
|
-
======================================================================================
|
100
|
-
|
101
|
-
rake jobs:work
|
102
|
-
|
103
|
-
|
104
|
-
EMAIL
|
105
|
-
======================================================================================
|
106
|
-
set this host_name for urls in email.
|
107
|
-
config.host_name
|