diff --git a/app/assets/stylesheets/layout.css.scss b/app/assets/stylesheets/layout.css.scss index 8b79e2b..f35d236 100755 --- a/app/assets/stylesheets/layout.css.scss +++ b/app/assets/stylesheets/layout.css.scss @@ -257,4 +257,10 @@ div.toolbar-inline > div.dropdown } div.btn-toolbar > div.dropdown > ul.dropdown-menu { font-size: small; +} +div.toolbar-inline > .ficon.fa-stack { +height:1em; +line-height:1em; +width:1em; +height:1em; } \ No newline at end of file diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f2ded81..5d0cf3c 100755 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -53,6 +53,10 @@ m.save content_tag("i","", class: "ficon "+name ) end + def fa_stack(icon1, icon2) + content_tag("i", content_tag("i","", class: "ficon "+" fa-"+icon1+" fa fa-stack-1x" ) + content_tag("i","", class: "ficon "+" fa-"+icon2+" fa fa-stack-1x" ),class: "fa-stack") + + end def ffi1_list y=YAML.load_file("#{::Rails.root.to_s}/config/flatfeticon1.yml") y["ffi1"] diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb index 16dfd58..7b7373c 100644 --- a/app/helpers/attachments_helper.rb +++ b/app/helpers/attachments_helper.rb @@ -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 diff --git a/app/views/attachments/_form_bulk2.html.erb b/app/views/attachments/_form_bulk2.html.erb index 16958a1..db3e35e 100644 --- a/app/views/attachments/_form_bulk2.html.erb +++ b/app/views/attachments/_form_bulk2.html.erb @@ -4,7 +4,7 @@