Quick correction, so the versions screen does display properly. Refs #15
This commit is contained in:
parent
b0fe24ca4b
commit
b89ca5deb8
@ -14,11 +14,10 @@
|
|||||||
- @versions.each do |version|
|
- @versions.each do |version|
|
||||||
:ruby
|
:ruby
|
||||||
if version.event == 'create'
|
if version.event == 'create'
|
||||||
object = version.item_type.constantize.find version.item_id
|
object = version.item_type.constantize.find_by_id version.item_id
|
||||||
else
|
|
||||||
object = version.reify
|
|
||||||
end
|
end
|
||||||
next unless object.moderated?
|
object = version.reify if object.nil?
|
||||||
|
next unless object.try(:moderated?)
|
||||||
|
|
||||||
changes = ''
|
changes = ''
|
||||||
if version.event == 'update'
|
if version.event == 'update'
|
||||||
@ -47,3 +46,8 @@
|
|||||||
%em.fa.fa-eye
|
%em.fa.fa-eye
|
||||||
|
|
||||||
= paginate @versions
|
= paginate @versions
|
||||||
|
|
||||||
|
.formats
|
||||||
|
= link_to versions_path do
|
||||||
|
%em.fa.fa-rss
|
||||||
|
= t '.feed'
|
||||||
|
@ -37,10 +37,9 @@ xml.rdf :RDF,
|
|||||||
|
|
||||||
@versions.each do |version|
|
@versions.each do |version|
|
||||||
if version.event == 'create'
|
if version.event == 'create'
|
||||||
object = version.item_type.constantize.find version.item_id
|
object = version.item_type.constantize.find_by_id version.item_id
|
||||||
else
|
|
||||||
object = version.reify
|
|
||||||
end
|
end
|
||||||
|
object = version.reify if object.nil?
|
||||||
next unless object.moderated?
|
next unless object.moderated?
|
||||||
url = polymorphic_url(version.item_type.tableize.singularize,
|
url = polymorphic_url(version.item_type.tableize.singularize,
|
||||||
id: version.item_id)
|
id: version.item_id)
|
||||||
|
@ -398,3 +398,4 @@ reason:
|
|||||||
create_html: <em class='fa fa-plus-circle'></em>
|
create_html: <em class='fa fa-plus-circle'></em>
|
||||||
update_html: <em class='fa fa-exchange'></em>
|
update_html: <em class='fa fa-exchange'></em>
|
||||||
destroy_html: <em class='fa fa-trash'></em>
|
destroy_html: <em class='fa fa-trash'></em>
|
||||||
|
feed: RSS feed
|
||||||
|
@ -398,3 +398,4 @@ l'adresse:"
|
|||||||
create_html: <em class='fa fa-plus-circle'></em>
|
create_html: <em class='fa fa-plus-circle'></em>
|
||||||
update_html: <em class='fa fa-exchange'></em>
|
update_html: <em class='fa fa-exchange'></em>
|
||||||
destroy_html: <em class='fa fa-trash'></em>
|
destroy_html: <em class='fa fa-trash'></em>
|
||||||
|
feed: Flux RSS
|
||||||
|
Loading…
Reference in New Issue
Block a user