app/helpers/pulitzer/posts_helper.rb in pulitzer-0.15.4 vs app/helpers/pulitzer/posts_helper.rb in pulitzer-0.15.5

- old
+ new

@@ -2,11 +2,13 @@ module PostsHelper def link_to_posts(post_type_version, plural_label, singular_label) if post_type_version.plural? ajax_link plural_label, posts_path(post_type_version_id: post_type_version.id), {}, '[data-tab-id="templates"]' - else + elsif post_type_version.singleton_post ajax_link singular_label, edit_post_path(post_type_version.singleton_post), {}, '[data-tab-id="templates"]' + else + '' end end def link_back_to_posts(post_type_version, plural_label, singular_label) if post_type_version.plural?