coton_app/app/views/portlets/render_public/_dynamiccontent.html.haml
2018-12-15 14:06:53 +01:00

15 lines
402 B
Plaintext

-if true
-begin
-if admin
=input.name.to_s.downcase
-else
=render :partial => "portlets/dynamic_contents/"+input.name.to_s.downcase ,:locals => {:input => input} if input.name
-rescue
=""
-else
-if admin
=input.name.to_s.downcase
-else
=render :partial => "portlets/dynamic_contents/"+input.name.to_s.downcase ,:locals => {:input => input} if input.name