pin_up 0.9.5 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop.yml DELETED
@@ -1,5 +0,0 @@
1
- LineLength:
2
- Enabled: false
3
-
4
- BlockAlignment:
5
- Enabled: false
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.1.0-preview1
@@ -1,217 +0,0 @@
1
- <html>
2
- <head>
3
- <title><%= @details[0] %></title>
4
- <style type="text/css">
5
- body{
6
- font-family: "Helvetica", arial, sans-serif;
7
- text-align: center;
8
- background: #eee;
9
- font-size: 14px;
10
- }
11
- a{
12
- color:#4b4b4b;
13
- text-decoration: none;
14
- }
15
- a:hover{
16
- color: #ccc;
17
- }
18
- h3,h5,h6{
19
- color:#9ba4ae;
20
- margin: 0px;
21
- }
22
- h5{
23
- font-size: 14px;
24
- margin: 20px 0 5px 0;
25
- }
26
- h3{
27
- font-size: 16px;
28
- }
29
- h4{
30
- color:#4b4b4b;
31
- font-weight: 600;
32
- margin:0;
33
- /*font-size: 14px;*/
34
- }
35
- h2{
36
- color:#4b4b4b;
37
- text-align: left;
38
- }
39
- .half p{
40
- /*margin: 20px 0 5px 0;*/
41
- }
42
- .full{
43
- width:100%;
44
- float: left;
45
- overflow: hidden;
46
- }
47
- #receipt{
48
- width:640px;
49
- margin: 0 auto;
50
- border:1px solid #ccc;
51
- border-top:5px solid #4b4b4b;
52
- padding: 15px;
53
- overflow: hidden;
54
- background: #fff;
55
- margin-top: 55px;
56
- }
57
- .logo{
58
- padding: 15px 0 25px 0;
59
- }
60
- .half{
61
- width:50%;
62
- overflow: hidden;
63
- }
64
- .right{
65
- float: right;
66
- text-align: right;
67
- }
68
- .left{
69
- float: left;
70
- text-align: left;
71
- }
72
- .center{
73
- text-align: center;
74
- }
75
- section{
76
- width:100%;
77
- overflow: hidden;
78
- float: left;
79
- }
80
- .text-right{
81
- text-align: right;
82
- color:#9ba4ae;
83
- }
84
- .break hr{
85
- border-top: 2px solid #eee;
86
- border-left:none;
87
- }
88
- table{
89
- text-align: left;
90
- font-size: 14px;
91
- }
92
- table th{
93
- border-bottom: 2px solid #eee;
94
- padding: 10px 0;
95
- }
96
- table td{
97
- padding: 10px 0;
98
- }
99
- table td:first-child{
100
- width:570px;
101
- font-weight: 600;
102
- padding-right: 90px;
103
- }
104
- .discount{
105
- color: green;
106
- }
107
- .fee{
108
- color: red;
109
- }
110
- .charge td{
111
- border-bottom: 1px solid #eee;
112
- }
113
- </style>
114
- </head>
115
- <body>
116
- <div id="receipt">
117
- <header>
118
- <div class="full center">
119
- <h1><%= @details[0] %></h1>
120
- </div>
121
- <div class="full center">
122
- <h3>Receipt</h3>
123
- </div>
124
- </header>
125
-
126
- <section class="company-details">
127
- <div class="half left">
128
- <h5>Date</h5>
129
- <h4><%= Time.parse(@charge["created_at"]).strftime("%d/%m/%Y") %></h4>
130
-
131
- <h5>Prepared for</h5>
132
- <h4><%= @charge["card"]["name"] %></h4>
133
- <p><%= @charge["card"]["address_line1"] %></p>
134
- <p><%= @charge["card"]["address_line2"] %></p>
135
- <p><%= @charge["card"]["address_city"] %></p>
136
- <p><%= @charge["card"]["address_state"] %></p>
137
- <p><%= @charge["card"]["address_country"] %></p>
138
- </div>
139
- <div class="half right">
140
- <h5>Prepared by</h5>
141
- <h4><%= @details[0] %></h4>
142
- <% @details.drop(1).each do |detail| %>
143
- <p><%= detail %></p>
144
- <% end %>
145
- </div>
146
- </section>
147
-
148
- <section class="break">
149
- <hr />
150
- </section>
151
-
152
- <section class="summary">
153
- <h2>Invoice Summary</h2>
154
- <table>
155
- <tr>
156
- <th>Description</th>
157
- <th>Amount</th>
158
- </tr>
159
- <tr class="charge">
160
- <td>
161
- <p><%= @charge["description"] %></p>
162
- <small><%= @charge["token"] %></small>
163
- </td>
164
- <td><%= @amount %></td>
165
- </tr>
166
- <tr>
167
- <td class="text-right">Subtotal</td>
168
- <td><%= @amount %></td>
169
- </tr>
170
- <% if @payment_options && @payment_options["discount"] %>
171
- <tr class="discount">
172
- <td class="text-right"><%= @payment_options["discount"]["name"] %></td>
173
- <td><%= @payment_options["discount"]["amount"] %></td>
174
- </tr>
175
- <% end %>
176
-
177
- <% if @payment_options && @payment_options["fee"] %>
178
- <tr class="fee">
179
- <td class="text-right"><%= @payment_options["fee"]["name"] %></td>
180
- <td><%= @payment_options["fee"]["amount"] %></td>
181
- </tr>
182
- <% end %>
183
-
184
- <% if @payment_options && @payment_options["tax"] %>
185
- <tr>
186
- <td class="text-right"><%= @payment_options["tax"]["name"] %></td>
187
- <td><%= @payment_options["tax"]["amount"] %></td>
188
- </tr>
189
- <% end %>
190
-
191
- <tr>
192
- <td class="text-right">Total</td>
193
- <td>$<%= @charge["amount"].to_f / 100.00 %></td>
194
- </tr>
195
- </table>
196
- </section>
197
-
198
- <section class="break">
199
- <hr />
200
- </section>
201
-
202
- <section class="info">
203
- <h2 class="center">That's it!</h2>
204
- <p>If this paid invoice is correct, you do not need to take any further action.</p>
205
- <p>Your credit card <em><%= @charge["card"]["display_number"] %></em> has been charged.</p>
206
- <p>Payment processed by <a href="https://pin.net.au" target="_blank">Pin Payments.</a></p>
207
- <p>Thank You.</p>
208
- <% unless @logo == '' %>
209
- <div class="full center">
210
- <img src="<%= @logo %>" class="logo">
211
- </div>
212
- <% end %>
213
- </section>
214
-
215
- </div>
216
- </body>
217
- </html>