Sha256: af25dcbcb4f7a140c21e8c93bff744ac1c5ce7e1476f29047a93e522921590b9

Contents?: true

Size: 618 Bytes

Versions: 4

Compression:

Stored size: 618 Bytes

Contents

<% if current_user.addresses.present? %>
  <h2><%= Address.human_name(:count => 2) %></h2>
  <table class="table table-bordered">
    <thead>
    <tr>
      <th><%= Address.human_name %></th>
      <th></th>
    </tr>
    </thead>
    <tbody>
    <% current_user.addresses.each do |address| %>
      <tr class="<%= cycle('even', 'odd') %>">
        <td><%= address %></td>
        <td><%= link_to t(:edit), edit_address_path(address) %></td>
        <td><%= link_to t(:remove), address_path(address), :method => :delete, :confirm => t(:are_you_sure) %></td>
      </tr>
    <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
synergy_bootstrap_theme-0.0.4 app/views/users/_addresses.html.erb
synergy_bootstrap_theme-0.0.3 app/views/users/_addresses.html.erb
synergy_bootstrap_theme-0.0.2 app/views/users/_addresses.html.erb
synergy_bootstrap_theme-0.0.1 app/views/users/_addresses.html.erb