documentation-editor 0.0.5 → 0.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5df9d3922194dac8d1fdbaf0a0738327fe831d51
|
4
|
+
data.tar.gz: c758321378718f58217459519b5d3196ab33e8ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc9698672c529f0746547505ae63288d210d3b7019327a1d8feff002a10556a5f48bda7c89dd07e71bc3cd71916d61a457cb4cfda2e0d82eeb2280a39328bca2
|
7
|
+
data.tar.gz: a9d32039be21acf75c8fea4ed3d8f52b86748994cda163e8fddd896684c07b5be0116ec70c90d829498c787cbe0d06aa5655054e464e6133e84538e6167c1e7f
|
@@ -1,5 +1,6 @@
|
|
1
|
+
- id = "#{@page.id}-#{@revision.id}-#{@options.reject { |k, v| %w{action controller id}.include?(k.to_s) }.to_param}"
|
1
2
|
- content_for :page_menu do
|
2
|
-
- cache("page-#{
|
3
|
+
- cache("page-#{id}-toc") do
|
3
4
|
= render partial: 'menu_items', object: @revision.to_toc(@options)
|
4
5
|
|
5
6
|
.markdown-page
|
@@ -8,6 +9,6 @@
|
|
8
9
|
= link_to edit_page_path(@page), class: 'btn btn-warning' do
|
9
10
|
%i.fa.fa-edit
|
10
11
|
Edit
|
11
|
-
- cache("page-#{
|
12
|
+
- cache("page-#{id}-content") do
|
12
13
|
= find_and_preserve do
|
13
14
|
= @revision.to_html(@options).html_safe
|