suite
This commit is contained in:
parent
8c232ea267
commit
00307a0535
@ -40,15 +40,13 @@ class Plume < ActiveRecord::Base
|
||||
return cat.plume_articles.first
|
||||
|
||||
else
|
||||
if self.id = 3
|
||||
if a = self.plume_articles.where(:id => 25).first
|
||||
if self.id = 3 and a = self.plume_articles.where(:id => 25).first
|
||||
a
|
||||
elsif self.id = 11 and a = self.plume_articles.where(:id => 218).first
|
||||
a
|
||||
else
|
||||
return nil
|
||||
end
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -54,7 +54,7 @@
|
||||
-if @plume.data_file
|
||||
=link_to "Télécharger la version PDF", @plume.data_file.file.path, :target => "plume_pdf_#{plume.id}", :class => "btn"
|
||||
-else
|
||||
=link_to "Télécharger la version PDF", print_public_plume_path(@plume, :format => "pdf"), :target => "plume_pdf_#{@plume.id}", :class => "btn"
|
||||
=link_to "Télécharger la version PDF", print_public_plume_path(@plume.id, :format => "pdf"), :target => "plume_pdf_#{@plume.id}", :class => "btn"
|
||||
|
||||
.clear
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user