qbrick 2.7 → 2.7.1

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: a4a7a8140be43d0e7d62d35acc326f6e21c8908b
4
- data.tar.gz: 4e6a28e356fe3faaca9df4c83004dabe902d0a61
3
+ metadata.gz: 4ff94148913e1a3d0cfaa209493dcf3c4a26c3c4
4
+ data.tar.gz: 74137918ad7323852ba59b71c27e2214e35238ba
5
5
  SHA512:
6
- metadata.gz: a4c3805524f4bc8d16a131ebbc283da844f54a79555651be867be95ab3defade6e4d46cae21ab4f773799d7c2c90f83efdf95812fe98e7186ca943e797e1569a
7
- data.tar.gz: 7dfffed96761598156d00d841105eba80682be2d7586c2f716a883210ae9a142e7ef810a66b5c9fca86b31ac21e0c61e4b414f9defe4b512dcf55b1da3c5c285
6
+ metadata.gz: 327284ab3b61598d278ba4f93e897a6b462fa9fe2b47f89e4c5c74f1d0a19d8c8ad8fee8a51ec420f172f45412fdeb804b0827085537c8dd5f5e80751a587d9c
7
+ data.tar.gz: 6d8f7a358810eb39c0fda434f90c84f9c4767c1827f9de4ac62f863cf948fa087b0f3fc4c5ec32d21189a5c92510de3d06f475c25e6f6855e9aaed02e1bb5c0f
@@ -126,7 +126,7 @@ $(document).ready ->
126
126
  checkPageType()
127
127
  sortableBrick()
128
128
  initSubmitLinks()
129
- stopPropagationOfDisplayStyles($('#display-styles ul'))
129
+ stopPropagationOfDisplayStyles($('.js-stop-propagation ul'))
130
130
 
131
131
  $('#page_page_type').change ->
132
132
  checkPageType()
@@ -25,6 +25,10 @@ h1
25
25
  form
26
26
  margin: 0 !important
27
27
 
28
+ .dropdown--display-styles
29
+ .checkbox, .radio
30
+ display: block
31
+
28
32
  // bootrap overrides
29
33
 
30
34
  .breadcrumb
@@ -9,8 +9,8 @@
9
9
  - I18n.available_locales.each do |locale|
10
10
  - unless I18n.locale == locale
11
11
  - if @page.translated_to?(locale)
12
- %li= link_to t('.to_locale', :locale_name => locale.upcase), cms_page_mirror_path(@page, :target_locale => locale, :rutheless => false), :remote => true
12
+ %li= link_to t('.to_locale', locale_name: locale.upcase), cms_page_mirror_path(@page, target_locale: locale, rutheless: false), remote: true
13
13
 
14
14
  - else
15
15
  %li.disabled{ 'data-toggle' => 'tooltip', 'title' => t('.not_translated') }
16
- = link_to t('.to_locale', :locale_name => locale.upcase), '#'
16
+ = link_to t('.to_locale', locale_name: locale.upcase), '#'
@@ -1,4 +1,4 @@
1
- - unless brick_list.brick_types.allowed.empty?
1
+ - unless brick_list.brick_types.empty?
2
2
  .btn-group
3
3
  - if brick_list.brick_types.allowed.many?
4
4
  %a.btn.btn-small.btn-primary.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
@@ -28,7 +28,7 @@
28
28
 
29
29
  - # possible styles
30
30
  - unless brick.available_display_styles.empty?
31
- #display-styles.btn-group
31
+ .dropdown--display-styles.js-stop-propagation.btn-group
32
32
  %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
33
33
  %i.icon-tint
34
34
  %span.caret
@@ -13,7 +13,7 @@
13
13
  - brick_content = render(@brick.to_edit_partial_path, :brick => @brick, :form => form)
14
14
 
15
15
  - unless @brick.available_display_styles.empty?
16
- #display-styles.btn-group.pull-right
16
+ .dropdown--display-styles.js-stop-propagation.btn-group.pull-right
17
17
  %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
18
18
  %i.icon-tint
19
19
  %span.caret
@@ -11,4 +11,4 @@ $("#brick-form").find('textarea.ckeditor').each(function (index, elem) { initCKE
11
11
  $("#brick-form").modal('show');
12
12
 
13
13
  // Stop propagation of display styles dropdown
14
- stopPropagationOfDisplayStyles($('#display-styles ul'));
14
+ stopPropagationOfDisplayStyles($('.js-stop-propagation ul'));
@@ -46,7 +46,8 @@
46
46
  %i.icon-resize-small
47
47
  = t('.collapse_all')
48
48
 
49
- = render 'brick_clone_menu'
49
+ - if I18n.available_locales.many?
50
+ = render 'brick_clone_menu'
50
51
  = render 'brick_type_dropdown', brick_list: @page
51
52
 
52
53
  = render 'qbrick/cms/bricks/brick_list', brick_list: @page
@@ -1,3 +1,3 @@
1
1
  module Qbrick
2
- VERSION = '2.7'
2
+ VERSION = '2.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbrick
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.7'
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Immanuel Häussermann
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-08-26 00:00:00.000000000 Z
15
+ date: 2015-11-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec-rails