AutoCommit Fre Aug 21 21:03:01 CEST 2015
This commit is contained in:
@@ -13,9 +13,9 @@ module AttachmentsHelper
|
||||
render(partial:"attachments/attachment_list", object: p.attachments, locals: {editor: (can?(:edit, p)), parent: p} )
|
||||
end
|
||||
|
||||
def render_new_attachments_for(p, text, options={})
|
||||
def render_new_attachments_for(p, text="", options={})
|
||||
a= Attachment.new
|
||||
a.parent=p
|
||||
((can?(:edit, p))? (render partial:"attachments/form_bulk2", object: a ): "")+ link_to(text, new_calentry_path(),options)
|
||||
((can?(:edit, p))? (render partial:"attachments/form_bulk2", object: a ): "")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user