% htmloptions = {class: ''}.merge(htmloptions || {}) htmloptions[:class] += " btn-#{size}" rescue nil %> <%= link_to_if_arvados_object object, { link_text: raw('Show ') }, { class: 'btn btn-default ' + htmloptions[:class] } %>