tkh_admin_panel 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.2.4
6
+
7
+ * Disabled tkh_editor - Will replace it soon
8
+ * Added 'company name' and 'contact email' attributes to Setting model
9
+
10
+
11
+ ## 0.2.3
12
+
13
+ * Minor debugging
14
+
15
+
5
16
  ## 0.2.2
6
17
 
7
18
  * Require page javascript file to support autocompletion of page parent
@@ -2,6 +2,6 @@ jQuery ->
2
2
  $("a[rel=popover]").popover()
3
3
  $(".tooltip").tooltip()
4
4
  $("a[rel=tooltip]").tooltip()
5
- $('#editable').wysihtml5()
5
+ # $('#editable').wysihtml5()
6
6
  $('.typeahead').typeahead()
7
7
  $('.whatever-man').tooltip()
@@ -5,7 +5,7 @@ end
5
5
 
6
6
  class Setting < ActiveRecord::Base
7
7
 
8
- attr_accessible :site_name, :site_tagline, :blog_name, :blog_tagline, :disable_blog, :enable_comments_in_pages, :enable_comments_in_blog
8
+ attr_accessible :company_name, :contact_email, :site_name, :site_tagline, :blog_name, :blog_tagline, :disable_blog, :enable_comments_in_pages, :enable_comments_in_blog
9
9
 
10
10
  translates :site_name, :site_tagline, :blog_name, :blog_tagline
11
11
 
@@ -4,7 +4,9 @@
4
4
  <%= f.error_notification %>
5
5
 
6
6
  <div class="form-inputs">
7
- <%= f.input :site_name %><br />
7
+ <%= f.input :company_name %><br />
8
+ <%= f.input :contact_email, hint: 'this is used to get the messages from the contact form and for other things as well.' %><br />
9
+ <%= f.input :site_name, hint: 'this is often the same as the company name' %><br />
8
10
  <%= f.input :site_tagline, hint: 'a small descriptive sentence' %><br />
9
11
  <%= f.input :enable_comments_in_pages, as: :boolean, inline_label: true, label: false %><br />
10
12
  <%= f.input :disable_blog, as: :boolean, inline_label: true, label: false, hint: 'should be checked if you do NOT want a blog' %><br />
@@ -1,6 +1,8 @@
1
1
  <h1>Settings</h1>
2
2
 
3
3
  <p>
4
+ <strong>Company name:</strong> <%= @setting.company_name %><br />
5
+ <strong>Contact email:</strong> <%= @setting.contact_email %><br />
4
6
  <strong>Site name:</strong> <%= @setting.site_name %><br />
5
7
  <strong>Site tagline:</strong> <%= @setting.site_tagline %><br />
6
8
  <strong>Enable comments in pages?:</strong> <%= @setting.enable_comments_in_pages? ? "<span class=\"label label-success\">✓</span>".html_safe : "<span class=\"label label-important\">X</span>".html_safe %><br />
@@ -18,6 +18,7 @@ module TkhAdminPanel
18
18
  def copy_migrations
19
19
  puts 'creating or updating setting migrations'
20
20
  migration_template "create_settings.rb", "db/migrate/create_settings.rb"
21
+ migration_template "add_contact_email_to_settings.rb", "db/migrate/add_contact_email_to_settings.rb"
21
22
  end
22
23
 
23
24
  end
@@ -0,0 +1,6 @@
1
+ class AddContactEmailToSettings < ActiveRecord::Migration
2
+ def change
3
+ add_column :settings, :contact_email, :string
4
+ add_column :settings, :company_name, :string
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module TkhAdminPanel
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_admin_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-25 00:00:00.000000000 Z
12
+ date: 2013-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -109,6 +109,7 @@ files:
109
109
  - lib/generators/tkh_admin_panel/create_or_update_locales/templates/es.yml
110
110
  - lib/generators/tkh_admin_panel/create_or_update_locales/templates/fr.yml
111
111
  - lib/generators/tkh_admin_panel/create_or_update_migrations/create_or_update_migrations_generator.rb
112
+ - lib/generators/tkh_admin_panel/create_or_update_migrations/templates/add_contact_email_to_settings.rb
112
113
  - lib/generators/tkh_admin_panel/create_or_update_migrations/templates/create_settings.rb
113
114
  - lib/tasks/tkh_admin_panel_tasks.rake
114
115
  - lib/tkh_admin_panel.rb