notee 1.1.2.2 → 1.1.2.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.
@@ -0,0 +1,39 @@
1
+ <%
2
+ @category_view = <<-EOC
3
+ <ul class="notee_sidebar_ul">
4
+ EOC
5
+
6
+ def loop_categories(categories)
7
+
8
+ return nil if categories.nil?
9
+
10
+ categories.each do |category|
11
+ @category_view << '<a href="/categories/' + category.slug + '">'
12
+ @category_view << ("<li>" + category.name.to_s + " (#{get_category_posts_count(category)})")
13
+ recursive_display_category(category)
14
+ end
15
+
16
+ @category_view << "\n" + "</ul>"
17
+ return @category_view.strip_heredoc.html_safe
18
+ end
19
+
20
+ def recursive_display_category(cate)
21
+ if cate.children.present?
22
+ @category_view << "\n" + '<ul>'
23
+ cate.children.each do |child_cate|
24
+ @category_view << '<a href="/categories/' + child_cate.slug + '">'
25
+ @category_view << ("\n" + "<li>" + child_cate.name.to_s+ " (#{get_category_posts_count(child_cate)})")
26
+ recursive_display_category(child_cate)
27
+ end
28
+ @category_view << "\n" + "</ul>"
29
+ end
30
+
31
+ @category_view << "\n" + "</li>"
32
+ @category_view << "\n" + "</a>"
33
+ end
34
+ %>
35
+
36
+ <h3>Category</h3>
37
+ <div class="notee_sidebar_content">
38
+ <%= loop_categories(get_parent_categories_arr) %>
39
+ </div>
@@ -0,0 +1,27 @@
1
+ <h3>Facebook</h3>
2
+ <div class="notee_sidebar_content">
3
+ <div id="fb-root"></div>
4
+ <script>(function(d, s, id) {
5
+ var js, fjs = d.getElementsByTagName(s)[0];
6
+ if (d.getElementById(id)) return;
7
+ js = d.createElement(s); js.id = id;
8
+ js.src = "//connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v2.8&appId=230256697179534";
9
+ fjs.parentNode.insertBefore(js, fjs);
10
+ }(document, 'script', 'facebook-jssdk'));</script>
11
+ <div
12
+ class="fb-page"
13
+ data-href="https://www.facebook.com/likeacatoooooo/"
14
+ data-tabs="timeline"
15
+ data-small-header="false"
16
+ data-adapt-container-width="true"
17
+ data-hide-cover="false"
18
+ data-show-facepile="true">
19
+ <blockquote
20
+ cite="https://www.facebook.com/likeacatoooooo/"
21
+ class="fb-xfbml-parse-ignore">
22
+ <a href="https://www.facebook.com/likeacatoooooo/">
23
+ Like_a_cat
24
+ </a>
25
+ </blockquote>
26
+ </div>
27
+ </div>
@@ -0,0 +1,10 @@
1
+ <h3>Twitter</h3>
2
+ <div class="notee_sidebar_content">
3
+ <a
4
+ class="twitter-timeline"
5
+ href="https://twitter.com/dev_funaota"
6
+ height="400">
7
+ Tweets by dev_funaota
8
+ </a>
9
+ <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
10
+ </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2.2
4
+ version: 1.1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - funaota
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-17 00:00:00.000000000 Z
11
+ date: 2016-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -310,6 +310,10 @@ files:
310
310
  - lib/tasks/views/notee/partials/_profile.html.erb
311
311
  - lib/tasks/views/notee/partials/_sidebar.html.erb
312
312
  - lib/tasks/views/notee/partials/_social.html.erb
313
+ - lib/tasks/views/notee/partials/sidebars/_archives.html.erb
314
+ - lib/tasks/views/notee/partials/sidebars/_categories.html.erb
315
+ - lib/tasks/views/notee/partials/sidebars/_facebook.html.erb
316
+ - lib/tasks/views/notee/partials/sidebars/_twitter.html.erb
313
317
  - lib/tasks/views/notee/posts.html.erb
314
318
  - lib/tasks/views/notee/show.html.erb
315
319
  - lib/tasks/views/notee/writers.html.erb