pulitzer 0.5.8 → 0.5.9

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: b20af04d674b558ae3a283c6a16899dd6bbba58b
4
- data.tar.gz: 666f9c4dc326bcaabc18fd35a40e81801d133c94
3
+ metadata.gz: 3ff1418b91cbd47d06bcb9b468e50d8b307a4355
4
+ data.tar.gz: 7d660e532c4b02a277e5cfec6d1320fe147158bf
5
5
  SHA512:
6
- metadata.gz: b763fa7c47c91a47cf54d03706f6939950ccea9313fa36ec1478a260488fb6e908e3fe7716778c9a5bd0bb8996e682ac4cd3e86d48c022b3ecc74a750b6936bc
7
- data.tar.gz: 89cc97f1f6211f8ef526432bc46bbdf571ca425bbd86a122a0ba79f73f3577b121cfff1659cf914a533f9a18a0de999f1cd7a917ed38774e2dec318a6deb2c25
6
+ metadata.gz: f74b2996c453d22005ec1ace1e8d9774c7dbf7793a98a6734a5c5eb452e85d3f8efa403f4cf279de017936633f9cc281f5b2f6a4df3fad846687b80d1641627e
7
+ data.tar.gz: c65d52d4f61dd1e4c6d6a82392778a7a8acb1e9319d7da0c5d108db0fea1a047429a4268c809aeea54db225f2ea50d2b89cd88c93123a1429f5d8fb71ab7e67a
@@ -11,9 +11,9 @@ module Pulitzer
11
11
 
12
12
  def link_back_to_posts(post_type, plural_label, singular_label)
13
13
  if post_type.plural?
14
- link_to plural_label, posts_path(post_type_id: post_type.id)
14
+ link_to plural_label, pulitzer.posts_path(post_type_id: post_type.id)
15
15
  else
16
- link_to singular_label, post_types_path
16
+ link_to singular_label, pulitzer.post_types_path
17
17
  end
18
18
  end
19
19
 
@@ -1,9 +1,8 @@
1
- <h1>Editing <%= @post.title %></h1>
2
-
1
+ <h1>Editing <%= post.title %></h1>
3
2
  <div class="pulitzer-row margin-bottom list-item">
4
- <%= link_back_to_posts(@post.post_type, "Back to #{@post.post_type.name.singularize} Posts", 'Back to post types') %>
3
+ <%= link_back_to_posts(post.post_type, "Back to #{post.post_type.name.singularize} Posts", 'Back to post types') %>
5
4
  </div>
6
5
 
7
- <div id="<%= dom_id(@post, :preview_version)%>">
6
+ <div id="<%= dom_id(post, :preview_version)%>">
8
7
  </div>
9
- <%= ajax_link_now '', edit_version_path(@post.next_version), {}, dom_target(@post, :preview_version) %>
8
+ <%= ajax_link_now '', pulitzer.edit_version_path(post.next_version), {}, dom_target(post, :preview_version) %>
@@ -0,0 +1 @@
1
+ <%= render partial: 'edit', locals: { post: @post } %>
@@ -14,6 +14,7 @@ module Pulitzer
14
14
 
15
15
  initializer 'pulitzer.action_controller' do |app|
16
16
  ActionView::Base.send :include, ContentElementHelper
17
+ ActionView::Base.send :include, Pulitzer::PostsHelper
17
18
  end
18
19
 
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module Pulitzer
2
- VERSION = '0.5.8'
2
+ VERSION = '0.5.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulitzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-22 00:00:00.000000000 Z
12
+ date: 2016-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -572,6 +572,7 @@ files:
572
572
  - app/views/pulitzer/posts/_show.html.erb
573
573
  - app/views/pulitzer/posts/_show_slug.html.erb
574
574
  - app/views/pulitzer/posts/_show_wrapper.html.erb
575
+ - app/views/pulitzer/posts/edit.html.erb
575
576
  - app/views/pulitzer/posts/index.html.erb
576
577
  - app/views/pulitzer/shared/_drag_handle.html.erb
577
578
  - app/views/pulitzer/shared/_error_messages.erb