pulitzer 0.5.8 → 0.5.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ff1418b91cbd47d06bcb9b468e50d8b307a4355
|
4
|
+
data.tar.gz: 7d660e532c4b02a277e5cfec6d1320fe147158bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 <%=
|
2
|
-
|
1
|
+
<h1>Editing <%= post.title %></h1>
|
3
2
|
<div class="pulitzer-row margin-bottom list-item">
|
4
|
-
<%= link_back_to_posts(
|
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(
|
6
|
+
<div id="<%= dom_id(post, :preview_version)%>">
|
8
7
|
</div>
|
9
|
-
<%= ajax_link_now '', edit_version_path(
|
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 } %>
|
data/lib/pulitzer/engine.rb
CHANGED
data/lib/pulitzer/version.rb
CHANGED
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.
|
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-
|
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
|