app/views/access_points/_access_point.html.erb
<div id="index_item" class="panel panel-default access_point">
<div class="panel-heading">
<div class="panel-title clearfix">
<% if policy(:application).write? %>
<span class="pull-right">
<%= link_to edit_referential_stop_area_access_point_path(@referential, @stop_area, access_point), :class => "btn btn-default btn-sm" do %>
<span class="fa fa-pencil"></span>
<% end %>
<%= link_to referential_stop_area_access_point_path(@referential, @stop_area, access_point), :method => :delete, :data => {:confirm => t('access_points.actions.destroy_confirm')}, :class => "btn btn-danger btn-sm" do %>
<span class="fa fa-trash-o"></span>
<% end %>
</span>
<% end %>
<h5>
<%= link_to([@referential, @stop_area, access_point], :class => "preview", :title => "#{Chouette::StopArea.model_name.human.capitalize} #{access_point.name}") do %>
<span class="name">
<%= image_tag "map/access_" + access_point.access_point_type + ".png" %> <%= truncate(access_point.name, :length => 20) %>
</span>
<% end %>
</h5>
</div>
</div>
<div class="panel-body">
<% unless access_point.geometry %>
<p>
<span class="warning"><%= t('.no_position') %></span> -
</p>
<% end %>
<p><%= t("access_types.label.#{access_point.access_point_type}") %></p>
</div>
</div>