bhf 0.4.34 → 0.4.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -100,7 +100,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
100
100
  private
101
101
 
102
102
  def object_to_bhf_display_hash
103
- @platform.columns.each_with_object({to_bhf_s: @object.to_bhf_s, edit_path: edit_bhf_entry_path(@platform.name, @object)}) do |column, hash|
103
+ @platform.columns.each_with_object({to_bhf_s: @object.to_bhf_s, edit_path: edit_bhf_entry_path(@platform.name, @object), object_id: @object.id}) do |column, hash|
104
104
  unless column.field.macro == :column && @object.send(column.name).blank?
105
105
  p = "bhf/pages/macro/#{column.field.macro}/#{column.field.display_type}.html"
106
106
  hash[column.name] = render_to_string partial: p, locals: {column: column, object: @object}
@@ -1 +1 @@
1
- %span.page_number.gap= t('bhf.pagination.truncate')
1
+ .gap= t('bhf.pagination.truncate')
@@ -2,7 +2,7 @@
2
2
  //= require ./mootools-more-1.4.0.1.js
3
3
  //= require mootools_ujs
4
4
  //= require_tree ./classes/
5
-
5
+ var quickEdit;
6
6
  window.addEvent('domready', function(){
7
7
  var ajaxNote = new Ajaxify();
8
8
  var lang = document.html.get('lang');
@@ -98,7 +98,7 @@ window.addEvent('domready', function(){
98
98
  };
99
99
 
100
100
  // TODO: disable more ajax calls while ajax is loading
101
- var quickEdit = new AjaxEdit({
101
+ quickEdit = new AjaxEdit({
102
102
  holderParent: $('content'),
103
103
  onStartRequest: function(form){
104
104
  ajaxNote.loading();
@@ -642,6 +642,9 @@ input[type="submit"].alt_button,
642
642
 
643
643
 
644
644
  .pagination
645
+ .gap
646
+ display: inline
647
+ padding: 0 8px
645
648
  a, span, em
646
649
  @extend .alt_button
647
650
 
@@ -651,7 +654,6 @@ input[type="submit"].alt_button,
651
654
  &:hover
652
655
  background: #666
653
656
  border-color: #999
654
-
655
657
  .page_number
656
658
  background: transparent
657
659
  color: #3E3E3E
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.34
4
+ version: 0.4.35
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: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails