Sha256: 09028e5bcf71a868f22c3f7125e9144bc671292dfe3ef4101adf918906f7e78d

Contents?: true

Size: 477 Bytes

Versions: 9

Compression:

Stored size: 477 Bytes

Contents

<% @model.routes_options %>
<% if @model.has_route?(:new) %>
  <%=
    link_to(
      content_tag(:div,
        content_tag(:i, nil, :class => 'fa fa-plus-circle fa-2x') +
          content_tag(:span, I18n.t("action.create") + " #{@model.display_name}"),
        :class => 'btn btn-box span2'
      ),
      {
        :controller => params[:controller],
        :action => 'new'
      },
      data: { no_turbolink: true },
      id: 'new-resource-button'
    )
  %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
adminpanel-2.1.7 app/views/shared/_new_resource_button.html.erb
adminpanel-2.1.6 app/views/shared/_new_resource_button.html.erb
adminpanel-2.1.5 app/views/shared/_new_resource_button.html.erb
adminpanel-2.1.3 app/views/shared/_new_resource_button.html.erb
adminpanel-2.1.2 app/views/shared/_new_resource_button.html.erb
adminpanel-2.1.1 app/views/shared/_new_resource_button.html.erb
adminpanel-2.1.0 app/views/shared/_new_resource_button.html.erb
adminpanel-2.0.1 app/views/shared/_new_resource_button.html.erb
adminpanel-2.0.0 app/views/shared/_new_resource_button.html.erb