noodall-ui 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- noodall-ui (0.0.15)
4
+ noodall-ui (0.0.16)
5
5
  dynamic_form
6
6
  noodall-core
7
7
  thoughtbot-sortable_table (= 0.0.6)
@@ -7,10 +7,10 @@ module Noodall
7
7
 
8
8
  def index
9
9
  if params[:node_id].nil?
10
- @nodes = Node.roots
10
+ @nodes = Node.roots.paginate(:per_page => 20, :page => params[:page])
11
11
  else
12
12
  @parent = Node.find(params[:node_id])
13
- @nodes = @parent.children
13
+ @nodes = @parent.children.paginate(:per_page => 20, :page => params[:page])
14
14
  end
15
15
 
16
16
  respond_to do |format|
@@ -2,6 +2,7 @@ module Noodall
2
2
  module Admin
3
3
  module NodesHelper
4
4
  include Noodall::Permalinks
5
+ include AssetsHelper
5
6
 
6
7
  def sorted_node_tree(tree)
7
8
  nodes = []
@@ -17,7 +17,7 @@
17
17
  <% end %>
18
18
 
19
19
  </ul>
20
-
20
+ <%= will_paginate(@nodes, :previous_label => 'Previous', :next_label => 'Next') %>
21
21
  <div id="content-table">
22
22
  <table border="0" cellspacing="0" cellpadding="0" class="content">
23
23
  <thead>
@@ -66,3 +66,4 @@
66
66
  </tfoot>
67
67
  </table>
68
68
  </div>
69
+ <%= will_paginate(@nodes, :previous_label => 'Previous', :next_label => 'Next') %>
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module UI
3
- VERSION = "0.0.15"
3
+ VERSION = "0.0.16"
4
4
  end
5
5
  end
@@ -104,7 +104,7 @@ th .tooltip {
104
104
  top:-15px !important;
105
105
  }
106
106
 
107
- .pagination .prev_page,
107
+ .pagination .previous_page,
108
108
  .pagination .next_page {
109
109
  display:block !important;
110
110
  }
@@ -115,4 +115,4 @@ th .tooltip {
115
115
 
116
116
  .multi-file-files ol li:first-child {
117
117
  height:500px;
118
- }
118
+ }
@@ -286,12 +286,13 @@ form#uploader {
286
286
  }
287
287
 
288
288
  .pagination span,
289
+ .pagination em,
289
290
  .pagination a {
290
291
  padding:0 5px;
291
292
  vertical-align: middle;
292
293
  }
293
294
 
294
- .pagination .prev_page,
295
+ .pagination .previous_page,
295
296
  .pagination .next_page {
296
297
  width:130px;
297
298
  height:26px;
@@ -299,7 +300,7 @@ form#uploader {
299
300
  padding:0;
300
301
  }
301
302
 
302
- .pagination .prev_page {
303
+ .pagination .previous_page {
303
304
  margin-right:5px;
304
305
  }
305
306
 
@@ -249,13 +249,13 @@ ul.choices li.upload a {
249
249
  ul.choices li.upload a:hover {
250
250
  background-position:-122px -44px;
251
251
  }
252
-
253
-
252
+
253
+
254
254
  ul.choices li.cancel a:hover{
255
255
  background-position:-122px 0px;
256
256
  }
257
-
258
-
257
+
258
+
259
259
  ul.choices li.action a {
260
260
  background-position:0 -220px;
261
261
  }
@@ -325,17 +325,17 @@ ul.choices li a:hover {
325
325
  color:#49a3e1;
326
326
  }
327
327
 
328
- .pagination span {
328
+ .pagination span, .pagination em {
329
329
  color:#686666;
330
330
  }
331
331
 
332
- .pagination .prev_page,
332
+ .pagination .previous_page,
333
333
  .pagination .next_page {
334
334
  background:url("/images/admin/pagination.gif") no-repeat scroll;
335
335
 
336
336
  }
337
337
 
338
- .pagination a.prev_page {
338
+ .pagination a.previous_page {
339
339
  background-position:0 0;
340
340
  }
341
341
 
@@ -343,7 +343,7 @@ ul.choices li a:hover {
343
343
  background-position:-130px 0;
344
344
  }
345
345
 
346
- .pagination span.prev_page {
346
+ .pagination span.previous_page {
347
347
  background-position:0 -26px;
348
348
  }
349
349
 
@@ -576,7 +576,7 @@ ul.choices li a,
576
576
  div.tags,
577
577
  #show-assets #info,
578
578
  #modules-list,
579
- .pagination .prev_page,
579
+ .pagination .previous_page,
580
580
  .pagination .next_page,
581
581
  ul#topnav li a:hover,
582
582
  .file img,
@@ -635,7 +635,7 @@ a.child,
635
635
  .form-reset,
636
636
  .add-multi-asset,
637
637
  .remove,
638
- .pagination .prev_page,
638
+ .pagination .previous_page,
639
639
  .pagination .next_page,
640
640
  ul.choices li a,
641
641
  a.download,
@@ -174,6 +174,9 @@ div#flash a,
174
174
  list-style-type: decimal;
175
175
  }
176
176
 
177
+
178
+ }
179
+
177
180
  /* Uppercase */
178
181
  label,
179
182
  #sub-form h2,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-ui
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 63
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 15
10
- version: 0.0.15
9
+ - 16
10
+ version: 0.0.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve England
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-10 00:00:00 +00:00
18
+ date: 2010-12-13 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -54,7 +54,7 @@ dependencies:
54
54
  requirements:
55
55
  - - ~>
56
56
  - !ruby/object:Gem::Version
57
- hash: -1876988247
57
+ hash: 270495401
58
58
  segments:
59
59
  - 3
60
60
  - 0