Sha256: d250b672ddaa95e45932f45ead8491dc9878a33738a4ed51ddb994f2a2d98a11
Contents?: true
Size: 919 Bytes
Versions: 5
Compression:
Stored size: 919 Bytes
Contents
module Admin::PostsHelper def options_for_parent_category(parent_id = 0) if @categories[parent_id] return @categories[parent_id].collect do |c| opts = [c.name, c.id] opts += options_for_parent_category(c.id) end else return [] end end def link_to_disqus_comment_count(post) # TODO: It would be great to link directly to the thread # ie: https://myblog.disqus.com/admin/moderate/#/all/search/thread:4584301535 # # However, we do not know the thread ID at this time. We may be able to fetch it # via the Disqus JavaScript API. # return link_to 'Comments', "https://#{Spud::Blog.disqus_shortname}.disqus.com/admin/moderate/#/all", target: :blank, class: 'disqus-comment-count', data: { disqus_identifier: post.identifier } end end
Version data entries
5 entries across 5 versions & 1 rubygems