Further styling tweaks to users/profile/maps

This commit is contained in:
Luke Barratt 2014-04-27 02:59:45 +01:00
parent 060f903632
commit 40fc1b036d
5 changed files with 30 additions and 29 deletions

View file

@ -98,6 +98,13 @@
}
}
}
table.predictions {
.prediction {
text-align: right;
}
}
}
#profile-edit {

View file

@ -4,14 +4,14 @@
<tr>
<th>Name</th>
<th>Download</th>
<th>Options</th>
<th></th>
</tr>
<% @maps.each do |map| %>
<tr>
<td><%= namelink map %></td>
<td><%= h map.download %></td>
<td>
<td class="actions">
<%= link_to icon('pencil'), edit_map_path(map) %>
<%= link_to icon('times'), map, confirm: 'Are you sure?', method: :delete %>
</td>

View file

@ -1,4 +1,4 @@
<table id="matches" class="<%= 'contest' if contest %>">
<table id="matches" class="<%= 'contest' if contest %> striped">
<tr>
<% if contest %>
<th class="contest">Contest</th>

View file

@ -1,22 +1,18 @@
<h2>
Predictions
</h2>
<h3>Predictions</h3>
<div class="userData">
<table class="data">
<table class="predictions striped">
<tr>
<th>Contest</th>
<th>Match</th>
<th class="prediction">Predicted</th>
</tr>
<% @user.predictions.with_contest.each do |prediction| %>
<tr>
<th>Contest</th>
<th>Match</th>
<th>Predicted</th>
<td><%= namelink prediction.match.contest %></td>
<td><%= namelink prediction.match, 30 %></td>
<td class="prediction">
<%= prediction.score1 %> - <%= prediction.score2 %>
</td>
</tr>
<% @user.predictions.with_contest.each do |prediction| %>
<tr>
<td><%= namelink prediction.match.contest %></td>
<td><%= namelink prediction.match, 30 %></td>
<td class="bold <%= prediction.result == 1 ? 'green' : 'red' %>">
<%= prediction.score1 %> - <%= prediction.score2 %>
</td>
</tr>
<% end %>
</table>
</div>
<% end %>
</table>

View file

@ -1,11 +1,9 @@
<h3>
Team History
</h3>
<h3>Team History</h3>
<table class="data">
<table class="teams striped">
<tr>
<th>Date Joined - Date Left</th>
<th>Team</th>
<th class="date">Date Joined - Date Left</th>
<th class="team">Team</th>
</tr>
<% @user.teamers.past.each do |teamer| %>
@ -15,7 +13,7 @@
-
<%= longdate teamer.updated_at %>
</td>
<td>
<td class="team">
<%= namelink teamer.team %>
</td>
</tr>