<link rel"stylesheet" type="text/css" href="application.css">

<h1>Election 2016</h1>
<h3>Hello <%= current_user.first_name%> <%= current_user.last_name %>!</h3>

<ul>
  <li> Email: <%= current_user.email %> </li>
  <li> Birthday: <%= current_user.birthday %> </li>
  <li> Sex: <%= current_user.gender %> </li>
  <li> Password: <%= current_user.password %> </li>
</ul>


<table width="100%" style="margin:100px;">
  <tr>
    <th>Candidate ID </th>
    <th>First Name</th>
    <th>Last Name</th>
    <th>Slogan</th>
  </tr>
  <% @candidates.each do |candidate| %>
    <tr>
      <td><%= candidate.id %></td>
      <td><%= candidate.first_name %></td>
      <td><%= candidate.last_name %></td>
      <td><%= candidate.slogan %></td>
      <!--<td>
        <%= link_to "Show ", candidate_path(candidate.id) %> |

		    <%= link_to "Edit", edit_candidate_path(candidate.id) %> 

		    <%= link_to "Delete", candidate_path(candidate.id), method: :delete, data: { confirm: 'Are you sure?'} %>
      </td> -->
    </tr>
  <% end %>
</table>