forked from bofh/fetsite
AutoCommit Mit Aug 19 21:03:04 CEST 2015
This commit is contained in:
@@ -53,7 +53,7 @@ m.save
|
||||
content_tag("i","", class: "ficon "+name )
|
||||
end
|
||||
def fa_icon_stack(name1, name2)
|
||||
content_tag("span", content_tag("i","",class:"fa fa-stack-1x fa-"+name1)+ content_tag("i","",class:"fa fa-stack-1x fa-sm fa-"+name2),class: "fa-stack fa-sm")
|
||||
content_tag("span", content_tag("i","",class:"fa fa-stack-2x fa-"+name1)+ content_tag("i","",class:"fa fa-stack-1x fa-"+name2),class: "fa-stack fa-sm")
|
||||
end
|
||||
def ffi1_list
|
||||
y=YAML.load_file("#{::Rails.root.to_s}/config/flatfeticon1.yml")
|
||||
@@ -153,4 +153,8 @@ end
|
||||
raw(out)
|
||||
end
|
||||
|
||||
def meta_itemprop(itemprop, content)
|
||||
tag("meta", itemprop: itemprop, content: content)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -6,4 +6,16 @@ module AttachmentsHelper
|
||||
render(partial:"attachments/attachment_list", object: p.attachments, locals: {editor: (can?(:edit, p)), parent: p} )+ ((can?(:edit, p))? (render partial:"attachments/form_bulk2", object: a ): "")
|
||||
|
||||
end
|
||||
|
||||
def render_attachments_list_for(p)
|
||||
a= Attachment.new
|
||||
a.parent=p
|
||||
render(partial:"attachments/attachment_list", object: p.attachments, locals: {editor: (can?(:edit, p)), parent: p} )
|
||||
end
|
||||
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user