brightcontent-core 2.3.2 → 2.3.3

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
  SHA1:
3
- metadata.gz: 6563e594a9eac2ccab983bcf4077426b89ed9f49
4
- data.tar.gz: 98c62c9ab671aede312c5ff6e1865c0b066ed155
3
+ metadata.gz: fc28e73875ef4679ee08153287cbf8e7a141e492
4
+ data.tar.gz: 963c4af3bbbc66ed469853c668be945fb18c7b4a
5
5
  SHA512:
6
- metadata.gz: 1b669d87ad7b4be5b4425e8d537cee1d8eb37a72682fc12e75b053a8e3890b07515bccdbced5c5b9743cd3ded21b4fed528077920b51c64c8dbf96bb1842ae79
7
- data.tar.gz: 5f905144921855cec0b9b804dff6ad1ff1bb73ca00999c9c09bcb902c8bfd380809d40c52e59306e4a681d94b4373abc1ecbb4cb49dd93775bc6df5157a75ec2
6
+ metadata.gz: 644b914c0d27320593a08ab801576a9e32651a055648e55fd57f195fff91cb2f6d51a64878d55d8e6d8937563581df9d1fd794e7a23dc5709fedc648d1be3e48
7
+ data.tar.gz: 26aa3acd1268af9b8069a1997c47c84cf786de9de28f965193abf1d9855b3694d4c99fd0046a7b6482bd8925f5027db5785a3bbce6a8e5d29c5be519d937b98d
@@ -0,0 +1,19 @@
1
+ //= require bootstrap-wysihtml5
2
+ //= require brightcontent/wysithtml5-parser-rules
3
+ //= require bootstrap-wysihtml5/locales/nl-NL
4
+
5
+ $(function() {
6
+ var editorLocale = $('body').data('editorLocale');
7
+
8
+ $('[data-wysihtml5]').wysihtml5({
9
+ html: true,
10
+ locale: editorLocale,
11
+ parserRules: wysihtml5ParserRules,
12
+ events: {
13
+ load: function() {
14
+ var editor = $("#insertable").data("wysihtml5").editor;
15
+ editor.focus();
16
+ }
17
+ }
18
+ });
19
+ });
@@ -7,7 +7,7 @@ module Brightcontent
7
7
  protect_from_forgery
8
8
 
9
9
  def index
10
- redirect_to root_path + user_resources.first.path
10
+ redirect_to polymorphic_url(user_resources.first.klass)
11
11
  end
12
12
 
13
13
  private
@@ -1,3 +1,3 @@
1
1
  <li class="<%= 'active' if resource_class == resource.klass %>">
2
- <%= link_to nominative_plural(resource.klass).capitalize, root_path + resource.path %>
2
+ <%= link_to nominative_plural(resource.klass).capitalize, polymorphic_url(resource.klass) %>
3
3
  </li>
@@ -1,6 +1,6 @@
1
1
  <%= form_tag sessions_path, class: "form-signin", role: 'form' do %>
2
2
  <h2 class="form-signin-heading"><%=t('brightcontent.sign_in')%></h2>
3
- <%= text_field_tag :email, params[:email], class: 'form-control', placeholder: 'Email', autofocus: true %>
4
- <%= password_field_tag :password, nil, class: 'form-control', placeholder: 'Password' %>
5
- <%= submit_tag "Login", class: "btn btn-lg btn-primary btn-block" %>
3
+ <%= text_field_tag :email, params[:email], class: 'form-control', placeholder: t('activerecord.attributes.brightcontent/admin_user.email'), autofocus: true %>
4
+ <%= password_field_tag :password, nil, class: 'form-control', placeholder: t('activerecord.attributes.brightcontent/admin_user.password') %>
5
+ <%= submit_tag t('brightcontent.login'), class: "btn btn-lg btn-primary btn-block" %>
6
6
  <% end %>
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
20
20
  s.add_dependency "bootstrap-sass", ">= 3.1"
21
21
  s.add_dependency "bootstrap-wysihtml5-rails", ">= 0.3.2"
22
22
  s.add_dependency "inherited_resources", ">= 1.6.0"
23
- s.add_dependency "coffee-rails"
24
23
  s.add_dependency "jquery-rails"
25
24
  s.add_dependency "sass-rails", ">= 4.0.2"
26
25
  s.add_dependency "simple_form"
@@ -19,6 +19,7 @@ en:
19
19
  logout: Logout
20
20
  hidden: Hidden
21
21
  sign_in: Please sign in
22
+ login: Login
22
23
  editor_locale: ""
23
24
  extra_menu: More
24
25
 
@@ -27,5 +28,6 @@ en:
27
28
  brightcontent/admin_user: Admin
28
29
  attributes:
29
30
  brightcontent/admin_user:
31
+ email: Email
30
32
  password: Password
31
33
  password_confirmation: Password confirmation
@@ -19,6 +19,7 @@ nl:
19
19
  logout: Uitloggen
20
20
  hidden: Verborgen
21
21
  sign_in: Inloggen
22
+ login: Inloggen
22
23
  editor_locale: "nl-NL"
23
24
  extra_menu: Meer
24
25
 
@@ -27,5 +28,6 @@ nl:
27
28
  brightcontent/admin_user: Beheerder
28
29
  attributes:
29
30
  brightcontent/admin_user:
31
+ login: Inloggen
30
32
  password: Wachtwoord
31
33
  password_confirmation: Wachtwoord bevestiging
@@ -3,7 +3,6 @@
3
3
  #
4
4
  ENV['RANSACK_FORM_BUILDER'] ||= '::SimpleForm::FormBuilder'
5
5
 
6
- require "coffee_script"
7
6
  require "bootstrap-sass"
8
7
  require "bootstrap-wysihtml5-rails"
9
8
  require "inherited_resources"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Brightin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-12 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.6.0
83
- - !ruby/object:Gem::Dependency
84
- name: coffee-rails
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: jquery-rails
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -286,7 +272,7 @@ files:
286
272
  - Gemfile
287
273
  - Rakefile
288
274
  - app/assets/javascripts/brightcontent/brightcontent.js.erb
289
- - app/assets/javascripts/brightcontent/core.js.coffee
275
+ - app/assets/javascripts/brightcontent/core.js
290
276
  - app/assets/javascripts/brightcontent/custom.js
291
277
  - app/assets/javascripts/brightcontent/wysithtml5-parser-rules.js
292
278
  - app/assets/stylesheets/brightcontent/brightcontent.css.erb
@@ -439,7 +425,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
439
425
  version: '0'
440
426
  requirements: []
441
427
  rubyforge_project:
442
- rubygems_version: 2.4.5
428
+ rubygems_version: 2.5.1
443
429
  signing_key:
444
430
  specification_version: 4
445
431
  summary: Brightcontent core
@@ -1,15 +0,0 @@
1
- #= require bootstrap-wysihtml5
2
- #= require brightcontent/wysithtml5-parser-rules
3
- #= require bootstrap-wysihtml5/locales/nl-NL
4
-
5
- $ ->
6
- editorLocale = $('body').data('editorLocale')
7
-
8
- $('[data-wysihtml5]').wysihtml5
9
- html: true
10
- locale: editorLocale
11
- parserRules: wysihtml5ParserRules
12
- events:
13
- load: ->
14
- editor = $("#insertable").data("wysihtml5").editor
15
- editor.focus()