grapple 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46d51d0d775864d1d0786ad077c385bee0fdc0f4
4
- data.tar.gz: a023e77771a81ad8d24e3ddcc8c531113b8ff37a
3
+ metadata.gz: 7edce33f3e366010ccbabeec695b5608c22d96e4
4
+ data.tar.gz: fb2b5e3666ba1e61fbc2dc7cb3f9e6991997c836
5
5
  SHA512:
6
- metadata.gz: aa8c2a04a826b5b169bc35555a4a81c46022096b1310b58285b308db8161ce59e29c1450698438782c1e3498b5de517e7962e851f40effcf2d98031b1600b574
7
- data.tar.gz: a3344fa9aa22a8d5b0171e54e3ec67c7c6b5725c22c4fc362d931d5d2d31718ac234b182efe9cd638c0953ed606d569ed5b07ae7687b02026958b8e45a8e0b4b
6
+ metadata.gz: fbebae6eca613e95bf347b3d9cb6c2af80f0007b76520cf25139e24255b1bb3c9689dd6fb977651567d34ee6d6d0d07138993eb5e22a57745b5d8797c598bbe6
7
+ data.tar.gz: 8d5cf544c3371b26be75ac13d9bbf4a35bb5e7c60d6f52393f0c55f7f69b1f7b3e2ebeb815923aaa13f4ca4e7c063c68cd6052cf35b5a33e1a99ea46b91df521
@@ -76,6 +76,18 @@
76
76
  background-color: #eee;
77
77
  }
78
78
 
79
+ .grapple thead .text-left {
80
+ text-align: left;
81
+ }
82
+
83
+ .grapple thead .text-center {
84
+ text-align: center;
85
+ }
86
+
87
+ .grapple thead .text-right {
88
+ text-align: right;
89
+ }
90
+
79
91
  /* Sortable Column Headings */
80
92
  .grapple thead .sortable:hover {
81
93
  background-color: #e0e0e0;
@@ -102,6 +114,7 @@
102
114
  /* Infobar */
103
115
  .grapple thead .infobar th{
104
116
  border-bottom: 1px solid #aaa;
117
+ text-align: left;
105
118
  }
106
119
 
107
120
  /* Toolbar */
@@ -236,17 +249,3 @@
236
249
  padding: 1px;
237
250
  margin: 0px;
238
251
  }
239
-
240
-
241
- /* TODO: Remove this stuff */
242
- .grapple tbody .red {
243
- background-color: #ffdddd;
244
- }
245
- .grapple h2 {
246
- font-size: 116%;
247
- padding: 2px 0;
248
- }
249
-
250
- .grapple .not-ready {
251
- visibility: hidden;
252
- }
@@ -12,6 +12,7 @@ module Grapple
12
12
  class WillPaginatePagination < HtmlComponent
13
13
 
14
14
  setting :no_results_message, :no_search_results
15
+ setting :renderer, nil
15
16
 
16
17
  def render(paginate_parameters = {})
17
18
  if records.instance_of?(Array)
@@ -20,7 +21,7 @@ module Grapple
20
21
  html = h(t(no_results_message))
21
22
  else
22
23
  paginate_parameters[:param_name] = url_parameter(:page) if builder.namespace
23
- html = template.will_paginate(records, paginate_parameters) || '&nbsp;'
24
+ html = template.will_paginate(records, { renderer: renderer }.compact.merge(paginate_parameters)) || '&nbsp;'
24
25
  end
25
26
 
26
27
  builder.row "<td colspan=\"#{num_columns}\">#{html}</td>"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grapple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Potocko
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-05 00:00:00.000000000 Z
13
+ date: 2016-08-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack