poodle-rb 0.1.0 → 0.1.1

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: 979fff07efaad933578909ad85a7623c2cc7bbc7
4
- data.tar.gz: df9b48a604f41d12044669ae7b566eae9b8f8087
3
+ metadata.gz: 870d2e4608cc379603d293610ac0ffabcb936f44
4
+ data.tar.gz: 926764d17da68d811bd011622533379ffe2509e7
5
5
  SHA512:
6
- metadata.gz: b7b1e22bfe5e726174c181ef0a45e9beb992d9965798c46ff8be5d44d667dfd5b01367e7f7f12bb5422614910df66059082e443523d5c6fdd378641acd3419e5
7
- data.tar.gz: 0491858e489f85f6e023775b29ba352c868eeb499cf9c3c0a3bd0e19444e5618616c069341295165c140757dbe6321fb68e31beb8650614781d695611e6ec20c
6
+ metadata.gz: e6963aa512c937bd9bb6d7b68c34102099b7a23f863c190ed57bba9835cee9696b10f014527f1cc716a5eeb41eb1e0de13776245f1e150201e14a150876f0d02
7
+ data.tar.gz: 418c4d1f13b3ffdfe2e07dc2d966ef66ae7965f24e84ff85c8d6238f808fedf42bcab15e523c9dccfcecc16d9ee1cc544ca47a0e24ce9ab6cd16b2265ae761e6
@@ -19,6 +19,14 @@ module Poodle
19
19
  main_app_url_helper?(method) or super
20
20
  end
21
21
 
22
+ def stylesheet_filename
23
+ @stylesheet_filename || "poodle/application"
24
+ end
25
+
26
+ def javascript_filename
27
+ @javascript_filename || "poodle/application"
28
+ end
29
+
22
30
  private
23
31
 
24
32
  def main_app_url_helper?(method)
@@ -33,5 +33,9 @@ module Poodle
33
33
  def display_time(time)
34
34
  distance_of_time_in_words_to_now(time) + (time > Time.now ? " from now" : " ago")
35
35
  end
36
+
37
+ def stringify_date(date)
38
+ date.strftime("%A %d %b %Y")
39
+ end
36
40
  end
37
41
  end
@@ -4,7 +4,7 @@
4
4
  <title><%= title -%></title>
5
5
  <%= meta_tags %>
6
6
  <link rel="icon" href="/assets/favicon.ico" type="image/png">
7
- <%= stylesheet_link_tag "application", :media => "all" -%>
7
+ <%= stylesheet_link_tag stylesheet_filename, :media => "all" -%>
8
8
  <%= csrf_meta_tags -%>
9
9
  <%= yield :javascript_header -%>
10
10
  </head>
@@ -47,7 +47,7 @@
47
47
  <%= render :partial=>"/layouts/poodle/common/overlays" -%>
48
48
 
49
49
  <%#* Loading Javascripts -%>
50
- <%= javascript_include_tag "application" -%>
50
+ <%= javascript_include_tag javascript_filename -%>
51
51
 
52
52
  <%= yield :javascript_footer -%>
53
53
 
@@ -0,0 +1,5 @@
1
+ <div class="row footer">
2
+ <div class="col-md-12 text-center mt-15">
3
+ © 2015 <a href="http://qwinixtech.com">Poodle Copyright Message</a>
4
+ </div>
5
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="header">
2
+ Header!!!
3
+ </div>
4
+
@@ -4,7 +4,7 @@
4
4
  <title><%= title -%></title>
5
5
  <%= meta_tags %>
6
6
  <link rel="icon" href="/assets/favicon.ico" type="image/png">
7
- <%= stylesheet_link_tag "application", :media => "all" -%>
7
+ <%= stylesheet_link_tag stylesheet_filename, :media => "all" -%>
8
8
  <%= csrf_meta_tags -%>
9
9
  <%= yield :javascript_header -%>
10
10
  </head>
@@ -15,12 +15,12 @@
15
15
  <div class="container-fluid header-block clearfix">
16
16
 
17
17
  <div id="div_page_header">
18
- <%= render :partial=>"/layouts/poodle/application/header" -%>
18
+ <%= render :partial=>"/layouts/poodle/public/header" -%>
19
19
  </div>
20
20
 
21
21
  <%#* Show flash messages if controller has set any. -%>
22
22
  <div id="div_flash_message">
23
- <%= flash_message(false) -%>
23
+ <%= flash_message(false) if defined?(flash) -%>
24
24
  </div>
25
25
 
26
26
  <%#* Page Content Starts here -%>
@@ -29,7 +29,7 @@
29
29
  </div>
30
30
 
31
31
  <%#* Display Footer -%>
32
- <%= render :partial=>"/layouts/poodle/application/footer" -%>
32
+ <%= render :partial=>"/layouts/poodle/public/footer" -%>
33
33
 
34
34
  </div>
35
35
 
@@ -39,7 +39,7 @@
39
39
  <%= render :partial=>"/layouts/poodle/common/overlays" -%>
40
40
 
41
41
  <%#* Loading Javascripts -%>
42
- <%= javascript_include_tag "application" -%>
42
+ <%= javascript_include_tag javascript_filename -%>
43
43
 
44
44
  <%= yield :javascript_footer -%>
45
45
 
@@ -79,7 +79,7 @@ module Poodle
79
79
  # <div class="row mb-10">
80
80
  # <div class="fs-22 col-sm-12"><i class='fa fa-rub fa-lg mr-10'></i>Manage Projects</div>
81
81
  # </div>
82
- def theme_heading(heading, icon='rub')
82
+ def theme_heading(heading, icon='')
83
83
  content_tag :div, class: "row mb-10" do
84
84
  content_tag :div, class: "fs-22 col-sm-12" do
85
85
  raw((icon ? theme_fa_icon(icon, 'lg') : "") + " #{heading}")
@@ -1,3 +1,3 @@
1
1
  module Poodle
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poodle-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krishnaprasad Varma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2015-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kaminari
@@ -341,6 +341,8 @@ files:
341
341
  - app/views/layouts/poodle/application/_sidebar.html.erb
342
342
  - app/views/layouts/poodle/common/_overlays.html.erb
343
343
  - app/views/layouts/poodle/public.html.erb
344
+ - app/views/layouts/poodle/public/_footer.html.erb
345
+ - app/views/layouts/poodle/public/_header.html.erb
344
346
  - app/views/widgets/_more_details.html.erb
345
347
  - app/views/widgets/_more_details_table.html.erb
346
348
  - config/initializers/poodle_validators.rb