Sha256: 56b51d7bb5526f3a50cba11aab564e6727765f5f1a9ca3f71b686a7406ec407c
Contents?: true
Size: 429 Bytes
Versions: 28
Compression:
Stored size: 429 Bytes
Contents
<% if @model.has_route?(:new) && can?(:create, @model) %> <%= link_to( content_tag( :div, content_tag(:i, nil, class: 'fa fa-plus-circle fa-2x') + content_tag( :span, I18n.t('action.create', resource: @model.display_name) ), class: 'btn btn-box span2' ), { controller: params[:controller], action: :new }, id: 'new-resource-button' ) %> <% end %>
Version data entries
28 entries across 28 versions & 1 rubygems