mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 12:30:48 +00:00
Further styling tweaks to users/profile/maps
This commit is contained in:
parent
060f903632
commit
40fc1b036d
5 changed files with 30 additions and 29 deletions
|
@ -98,6 +98,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.predictions {
|
||||||
|
|
||||||
|
.prediction {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-edit {
|
#profile-edit {
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Download</th>
|
<th>Download</th>
|
||||||
<th>Options</th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<% @maps.each do |map| %>
|
<% @maps.each do |map| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= namelink map %></td>
|
<td><%= namelink map %></td>
|
||||||
<td><%= h map.download %></td>
|
<td><%= h map.download %></td>
|
||||||
<td>
|
<td class="actions">
|
||||||
<%= link_to icon('pencil'), edit_map_path(map) %>
|
<%= link_to icon('pencil'), edit_map_path(map) %>
|
||||||
<%= link_to icon('times'), map, confirm: 'Are you sure?', method: :delete %>
|
<%= link_to icon('times'), map, confirm: 'Are you sure?', method: :delete %>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<table id="matches" class="<%= 'contest' if contest %>">
|
<table id="matches" class="<%= 'contest' if contest %> striped">
|
||||||
<tr>
|
<tr>
|
||||||
<% if contest %>
|
<% if contest %>
|
||||||
<th class="contest">Contest</th>
|
<th class="contest">Contest</th>
|
||||||
|
|
|
@ -1,22 +1,18 @@
|
||||||
<h2>
|
<h3>Predictions</h3>
|
||||||
Predictions
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<div class="userData">
|
<table class="predictions striped">
|
||||||
<table class="data">
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>Contest</th>
|
<th>Contest</th>
|
||||||
<th>Match</th>
|
<th>Match</th>
|
||||||
<th>Predicted</th>
|
<th class="prediction">Predicted</th>
|
||||||
</tr>
|
</tr>
|
||||||
<% @user.predictions.with_contest.each do |prediction| %>
|
<% @user.predictions.with_contest.each do |prediction| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= namelink prediction.match.contest %></td>
|
<td><%= namelink prediction.match.contest %></td>
|
||||||
<td><%= namelink prediction.match, 30 %></td>
|
<td><%= namelink prediction.match, 30 %></td>
|
||||||
<td class="bold <%= prediction.result == 1 ? 'green' : 'red' %>">
|
<td class="prediction">
|
||||||
<%= prediction.score1 %> - <%= prediction.score2 %>
|
<%= prediction.score1 %> - <%= prediction.score2 %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
<h3>
|
<h3>Team History</h3>
|
||||||
Team History
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<table class="data">
|
<table class="teams striped">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Date Joined - Date Left</th>
|
<th class="date">Date Joined - Date Left</th>
|
||||||
<th>Team</th>
|
<th class="team">Team</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<% @user.teamers.past.each do |teamer| %>
|
<% @user.teamers.past.each do |teamer| %>
|
||||||
|
@ -15,7 +13,7 @@
|
||||||
-
|
-
|
||||||
<%= longdate teamer.updated_at %>
|
<%= longdate teamer.updated_at %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="team">
|
||||||
<%= namelink teamer.team %>
|
<%= namelink teamer.team %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue