Commit b5e99c92 authored by Jasmine Principe's avatar Jasmine Principe

c and p index

parents 439dbf3e 3a7c9976
.box{
width: 400px;
height: 300px;
background-color: white;
border: none;
padding: 10px;
float: left;
}
table { table {
width: 100%; width: 100%;
......
...@@ -11,7 +11,15 @@ ...@@ -11,7 +11,15 @@
<%@positions.each do |p|%> <%@positions.each do |p|%>
<hr> <hr>
<h3><center><%=p.name%></center></h3> <h3><center><%=p.name%></center></h3>
<<<<<<< HEAD
<table> <table>
=======
<table class="table table-hover">
<thead>
<th witdth = "40%"><center>Name</center></th>
<th><center>Slogan</center></th>
</thead>
>>>>>>> 3a7c99764459a08d3b3963ee6e918b827b0e4445
<%p.candidates.each do |c|%> <%p.candidates.each do |c|%>
<tr> <tr>
<td> <td>
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="<%= yield(:home) %>" ><%= link_to "Home", root_path %></li> <li class="<%= yield(:home) %>" ><%= link_to "Home", root_path %></li>
<li class="<%= yield(:about) %>" ><%= link_to "About", about_path %></li>
<li class="<%= yield(:candidate) %>" ><%= link_to "Candidates", admin_candidates_path %></li> <li class="<%= yield(:candidate) %>" ><%= link_to "Candidates", admin_candidates_path %></li>
<li class="<%= yield(:position) %>" ><%= link_to "Positions", admin_positions_path %></li> <li class="<%= yield(:position) %>" ><%= link_to "Positions", admin_positions_path %></li>
<li class="<%= yield(:about) %>" ><%= link_to "About", about_path %></li>
</ul> </ul>
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<%if user_signed_in?%> <%if user_signed_in?%>
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
</tr> </tr>
<%end%> <%end%>
</table> </table>
<hr>
<%end%> <%end%>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment