Skip to content
Snippets Groups Projects
Commit 248d08f8 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #506

parent 7cc5e8c1
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,10 @@ class Research::Journal::Paper < ApplicationRecord ...@@ -65,6 +65,10 @@ class Research::Journal::Paper < ApplicationRecord
"content/papers/#{published_at.year}/#{published_at.strftime "%Y-%m-%d"}-#{slug}.html" if (volume.nil? || volume.published_at) && published_at "content/papers/#{published_at.year}/#{published_at.strftime "%Y-%m-%d"}-#{slug}.html" if (volume.nil? || volume.published_at) && published_at
end end
def template_static
"admin/research/journals/papers/static"
end
def git_dependencies(website) def git_dependencies(website)
[self] + [self] +
active_storage_blobs + active_storage_blobs +
......
...@@ -56,6 +56,11 @@ class Research::Journal::Volume < ApplicationRecord ...@@ -56,6 +56,11 @@ class Research::Journal::Volume < ApplicationRecord
"content/volumes/#{published_at.year}/#{slug}/_index.html" if published_at "content/volumes/#{published_at.year}/#{slug}/_index.html" if published_at
end end
def template_static
"admin/research/journals/volumes/static"
end
def git_dependencies(website) def git_dependencies(website)
[self] + [self] +
papers + papers +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment