home_page 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b1b0c2e8b3b4e2d6653b1128323205ed89ca5b1
4
- data.tar.gz: b321b9085cf84b2c9861bee1ee35ad520e56c06a
3
+ metadata.gz: 216c9a840f44595c1fc4074de0f13ee34b4fe7ef
4
+ data.tar.gz: 8201fae5624b35aba4b059968280f3aa86433af5
5
5
  SHA512:
6
- metadata.gz: 90ebbe9706ec2d98711f84d2f4a77360a6f521d3b69631320d580948ca0abb253d5d49f09843eec80a50eac1cd79acce257ad9359a21a235c324e380232c284a
7
- data.tar.gz: 49cbf70b6d1a645dbc4f292591c21774171321f9c130c545b1e2387d20462a58eddf4c3cfe44462329bcc79a16664fceeb56a984a71d1dc02a361d5e03ec2b19
6
+ metadata.gz: e24ab9f5fef20adfd8e12ef8ba3f7ee44167892f23d4669633a6b320b2c99cddc278015aebebbc94f5b8921d56242115c55a8c32646b449eecc457b48042e767
7
+ data.tar.gz: dcea08ef0341c3243c4469420124c85e9b3f9fb6ce9b6cefdedd636e59f61ae14033b4c439e57f05414bc39a5ce64487136c2a2b491f5a868f5bbb221c87491b
@@ -18,7 +18,7 @@
18
18
  <%= raw breadcrumbs %><br/>
19
19
  <% end %>
20
20
 
21
- <h2 id="title"><%= yield :title %></h2>
21
+ <h2 id="title"><%= yield :title %> <%= image_tag 'home_page/spinner.gif', id: 'page_spinner', class: 'hide' %></h2>
22
22
  </div>
23
23
  </div>
24
24
  </div>
@@ -0,0 +1,3 @@
1
+ module Volontariat
2
+ HOSTS = { development: 'http://localhost:3001', production: 'http://volontari.at'}
3
+ end
@@ -16,6 +16,9 @@ en:
16
16
  coming_soon: Coming soon
17
17
  back_to_top: Back to top
18
18
  powered_by_home_page_software: Powered by %{link}.
19
+ year: Year
20
+ name: Name
21
+ position: position
19
22
 
20
23
  form:
21
24
  errors_count: '%{count} prohibited this object from being saved:'
@@ -30,7 +33,10 @@ en:
30
33
  wrong_recaptcha: The captcha code which you typed in is wrong.
31
34
  access_denied: Access denied
32
35
  not_found: Resource not found.
33
-
36
+
37
+ volontariat:
38
+ request_failed: Volontari.at request failed!
39
+
34
40
  pages:
35
41
  privacy_policy:
36
42
  title: Privacy Police
@@ -0,0 +1,10 @@
1
+ module HomePage
2
+ class PaginationMetadata
3
+ attr_accessor :current_page, :per_page, :total_entries
4
+ alias_method :total_pages, :total_entries
5
+
6
+ def initialize(attributes)
7
+ attributes.each{|k,v| self.send("#{k}=", v) if self.respond_to?("#{k}=") }
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module HomePage
2
- VERSION = "0.0.4"
2
+ VERSION = '0.0.5'
3
3
  end
data/lib/home_page.rb CHANGED
@@ -18,8 +18,10 @@ require 'will_paginate-bootstrap'
18
18
  require 'turbolinks'
19
19
  require 'uglifier'
20
20
  require 'yui/compressor'
21
+ require 'httparty'
21
22
 
22
23
  require 'home_page/navigation'
24
+ require 'home_page/pagination_metadata'
23
25
  require 'home_page/simple_navigation_renderer/breadcrumbs_without_method_links'
24
26
  require 'home_page/simple_navigation_renderer/twitter_sidenav'
25
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: home_page
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Gawlista
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -318,6 +318,20 @@ dependencies:
318
318
  - - "~>"
319
319
  - !ruby/object:Gem::Version
320
320
  version: 0.12.0
321
+ - !ruby/object:Gem::Dependency
322
+ name: httparty
323
+ requirement: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - "~>"
326
+ - !ruby/object:Gem::Version
327
+ version: 0.13.3
328
+ type: :runtime
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - "~>"
333
+ - !ruby/object:Gem::Version
334
+ version: 0.13.3
321
335
  - !ruby/object:Gem::Dependency
322
336
  name: mysql2
323
337
  requirement: !ruby/object:Gem::Requirement
@@ -348,6 +362,7 @@ files:
348
362
  - app/assets/fonts/socialicious.svg
349
363
  - app/assets/fonts/socialicious.ttf
350
364
  - app/assets/fonts/socialicious.woff
365
+ - app/assets/images/home_page/spinner.gif
351
366
  - app/assets/javascripts/home_page/application.js
352
367
  - app/assets/javascripts/home_page/loader.js
353
368
  - app/assets/stylesheets/home_page/application.css
@@ -385,6 +400,7 @@ files:
385
400
  - config/initializers/simple_form.rb
386
401
  - config/initializers/simple_form_bootstrap.rb
387
402
  - config/initializers/simple_navigation.rb
403
+ - config/initializers/volontariat.rb
388
404
  - config/locales/devise.en.yml
389
405
  - config/locales/general/en.yml
390
406
  - config/locales/resources/tag/en.yml
@@ -396,6 +412,7 @@ files:
396
412
  - lib/home_page.rb
397
413
  - lib/home_page/engine.rb
398
414
  - lib/home_page/navigation.rb
415
+ - lib/home_page/pagination_metadata.rb
399
416
  - lib/home_page/simple_navigation_renderer/breadcrumbs_without_method_links.rb
400
417
  - lib/home_page/simple_navigation_renderer/twitter_sidenav.rb
401
418
  - lib/home_page/version.rb