proforma-html-renderer 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/proforma/html_renderer/version.rb +1 -1
- data/spec/fixtures/snapshot/output/0.User List.html +115 -85
- data/templates/table.html.erb +29 -31
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6af72269e7959c26c2b7a0eb3711022ca15d7e00cbb630bf46c556a8996a8eb
|
4
|
+
data.tar.gz: 6030c3a35a1c0e442ca9d61b8de867ba6485219b95a62c7b8660dbe76de223a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46a414fae042143b2e3646781984c8c17e02d235fa387270a188023621d06d1168bf10e5a7642f888159adcbc1e22dabfaa4dfb9d8b42486532498bd1f8b7c7a
|
7
|
+
data.tar.gz: 7967d41d8af81f0f569c3f970d861ff2060d8b26156a78e7a6ddab99dbab173d3536d76944e4e6fbe501e8df0b52c9fbd9f4fedc668e4c819862a3cd527bb4e6
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
# 1.0.
|
1
|
+
# 1.0.4 (September 9th, 2019)
|
2
|
+
|
3
|
+
#### Fixes
|
4
|
+
|
5
|
+
* A table should always be rendered, even if it has no rows. This puts this library's table rendering on par with proforma-pdf-renderer, where it renders empty tables as well.
|
6
|
+
|
7
|
+
# 1.0.3 (September 9th, 2019)
|
2
8
|
|
3
9
|
#### Fixes
|
4
10
|
|
@@ -1779,50 +1779,49 @@ Chicago, IL 62626
|
|
1779
1779
|
<br>
|
1780
1780
|
|
1781
1781
|
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1782
|
+
<table class="table">
|
1783
|
+
<thead>
|
1784
|
+
<tr>
|
1785
|
+
<th style="text-align: left;width: 20.0%">ID Number</th>
|
1786
|
+
<th style="text-align: left;width: 20.0%">First Name</th>
|
1787
|
+
<th style="text-align: left;width: 20.0%">Last Name</th>
|
1788
|
+
<th style="text-align: left;width: 20.0%">Username</th>
|
1789
|
+
<th style="text-align: left;width: 20.0%">Login Count</th>
|
1790
|
+
</tr>
|
1791
|
+
</thead>
|
1792
|
+
<tbody>
|
1793
|
+
<tr>
|
1794
|
+
<td style="text-align: left;width: 20.0%">1</td>
|
1795
|
+
<td style="text-align: left;width: 20.0%">Will</td>
|
1796
|
+
<td style="text-align: left;width: 20.0%">Smith</td>
|
1797
|
+
<td style="text-align: left;width: 20.0%">will_smith</td>
|
1798
|
+
<td style="text-align: left;width: 20.0%">9219</td>
|
1799
|
+
</tr>
|
1800
|
+
<tr>
|
1801
|
+
<td style="text-align: left;width: 20.0%">2</td>
|
1802
|
+
<td style="text-align: left;width: 20.0%">Martin</td>
|
1803
|
+
<td style="text-align: left;width: 20.0%">Lawrence</td>
|
1804
|
+
<td style="text-align: left;width: 20.0%">mlaw10</td>
|
1805
|
+
<td style="text-align: left;width: 20.0%">8077</td>
|
1806
|
+
</tr>
|
1807
|
+
<tr>
|
1808
|
+
<td style="text-align: left;width: 20.0%">3</td>
|
1809
|
+
<td style="text-align: left;width: 20.0%">Will</td>
|
1810
|
+
<td style="text-align: left;width: 20.0%">Ferrell</td>
|
1811
|
+
<td style="text-align: left;width: 20.0%">will.ferrell</td>
|
1812
|
+
<td style="text-align: left;width: 20.0%">190890</td>
|
1813
|
+
</tr>
|
1814
|
+
</tbody>
|
1815
|
+
<tfoot>
|
1816
|
+
<tr>
|
1817
|
+
<td style="text-align: left;width: 20.0%">Login Count Ave.</td>
|
1818
|
+
<td style="text-align: left;width: 20.0%">69395.333333333333333333</td>
|
1819
|
+
<td style="text-align: left;width: 20.0%"></td>
|
1820
|
+
<td style="text-align: left;width: 20.0%">Login Count Sum</td>
|
1821
|
+
<td style="text-align: left;width: 20.0%">208186.0</td>
|
1822
|
+
</tr>
|
1823
|
+
</tfoot>
|
1824
|
+
</table>
|
1826
1825
|
<br>
|
1827
1826
|
<h1>User Details</h1>
|
1828
1827
|
|
@@ -1850,33 +1849,43 @@ Chicago, IL 62626
|
|
1850
1849
|
|
1851
1850
|
|
1852
1851
|
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1852
|
+
<table class="table">
|
1853
|
+
<thead>
|
1854
|
+
<tr>
|
1855
|
+
<th style="text-align: left">Type</th>
|
1856
|
+
<th style="text-align: left">Number</th>
|
1857
|
+
</tr>
|
1858
|
+
</thead>
|
1859
|
+
<tbody>
|
1860
|
+
<tr>
|
1861
|
+
<td style="text-align: left">cell</td>
|
1862
|
+
<td style="text-align: left">555-444-3333</td>
|
1863
|
+
</tr>
|
1864
|
+
<tr>
|
1865
|
+
<td style="text-align: left">fax</td>
|
1866
|
+
<td style="text-align: left">333-444-2222</td>
|
1867
|
+
</tr>
|
1868
|
+
</tbody>
|
1869
|
+
<tfoot>
|
1870
|
+
</tfoot>
|
1871
|
+
</table>
|
1874
1872
|
<br>
|
1875
1873
|
<h1>Table with no rows and no empty message test</h1>
|
1876
1874
|
|
1877
1875
|
|
1878
1876
|
|
1879
|
-
|
1877
|
+
<table class="table">
|
1878
|
+
<thead>
|
1879
|
+
<tr>
|
1880
|
+
<th style="text-align: left">Type</th>
|
1881
|
+
<th style="text-align: left">Number</th>
|
1882
|
+
</tr>
|
1883
|
+
</thead>
|
1884
|
+
<tbody>
|
1885
|
+
</tbody>
|
1886
|
+
<tfoot>
|
1887
|
+
</tfoot>
|
1888
|
+
</table>
|
1880
1889
|
<br>
|
1881
1890
|
<h1>User Details</h1>
|
1882
1891
|
|
@@ -1904,29 +1913,39 @@ Chicago, IL 62626
|
|
1904
1913
|
|
1905
1914
|
|
1906
1915
|
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1916
|
+
<table class="table">
|
1917
|
+
<thead>
|
1918
|
+
<tr>
|
1919
|
+
<th style="text-align: left">Type</th>
|
1920
|
+
<th style="text-align: left">Number</th>
|
1921
|
+
</tr>
|
1922
|
+
</thead>
|
1923
|
+
<tbody>
|
1924
|
+
<tr>
|
1925
|
+
<td style="text-align: left">home</td>
|
1926
|
+
<td style="text-align: left">999-888-7777</td>
|
1927
|
+
</tr>
|
1928
|
+
</tbody>
|
1929
|
+
<tfoot>
|
1930
|
+
</tfoot>
|
1931
|
+
</table>
|
1924
1932
|
<br>
|
1925
1933
|
<h1>Table with no rows and no empty message test</h1>
|
1926
1934
|
|
1927
1935
|
|
1928
1936
|
|
1929
|
-
|
1937
|
+
<table class="table">
|
1938
|
+
<thead>
|
1939
|
+
<tr>
|
1940
|
+
<th style="text-align: left">Type</th>
|
1941
|
+
<th style="text-align: left">Number</th>
|
1942
|
+
</tr>
|
1943
|
+
</thead>
|
1944
|
+
<tbody>
|
1945
|
+
</tbody>
|
1946
|
+
<tfoot>
|
1947
|
+
</tfoot>
|
1948
|
+
</table>
|
1930
1949
|
<br>
|
1931
1950
|
<h1>User Details</h1>
|
1932
1951
|
|
@@ -1959,7 +1978,18 @@ Chicago, IL 62626
|
|
1959
1978
|
|
1960
1979
|
|
1961
1980
|
|
1962
|
-
|
1981
|
+
<table class="table">
|
1982
|
+
<thead>
|
1983
|
+
<tr>
|
1984
|
+
<th style="text-align: left">Type</th>
|
1985
|
+
<th style="text-align: left">Number</th>
|
1986
|
+
</tr>
|
1987
|
+
</thead>
|
1988
|
+
<tbody>
|
1989
|
+
</tbody>
|
1990
|
+
<tfoot>
|
1991
|
+
</tfoot>
|
1992
|
+
</table>
|
1963
1993
|
</div>
|
1964
1994
|
</body>
|
1965
1995
|
</html>
|
data/templates/table.html.erb
CHANGED
@@ -7,34 +7,32 @@
|
|
7
7
|
end
|
8
8
|
%>
|
9
9
|
|
10
|
-
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
</table>
|
40
|
-
<% end -%>
|
10
|
+
<table class="table">
|
11
|
+
<thead>
|
12
|
+
<% object.header.rows.each do |row| -%>
|
13
|
+
<tr>
|
14
|
+
<% row.cells.each do |cell| -%>
|
15
|
+
<th style="<%= cell_style(cell) %>"><%= cell.text %></th>
|
16
|
+
<% end -%>
|
17
|
+
</tr>
|
18
|
+
<% end -%>
|
19
|
+
</thead>
|
20
|
+
<tbody>
|
21
|
+
<% object.body.rows.each do |row| -%>
|
22
|
+
<tr>
|
23
|
+
<% row.cells.each do |cell| -%>
|
24
|
+
<td style="<%= cell_style(cell) %>"><%= cell.text %></td>
|
25
|
+
<% end -%>
|
26
|
+
</tr>
|
27
|
+
<% end -%>
|
28
|
+
</tbody>
|
29
|
+
<tfoot>
|
30
|
+
<% object.footer.rows.each do |row| -%>
|
31
|
+
<tr>
|
32
|
+
<% row.cells.each do |cell| -%>
|
33
|
+
<td style="<%= cell_style(cell) %>"><%= cell.text %></td>
|
34
|
+
<% end -%>
|
35
|
+
</tr>
|
36
|
+
<% end -%>
|
37
|
+
</tfoot>
|
38
|
+
</table>
|