continue to backport old code
This commit is contained in:
20
app/views/wow_mounts/index.html.erb
Normal file
20
app/views/wow_mounts/index.html.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
<h2>Mount list</h2>
|
||||
|
||||
<table class="table table-hover table-dark table-image">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><%= t('mount_list.name') %></th>
|
||||
<th scope="col"><%= t('mount_list.description') %></th>
|
||||
<th scope="col"><%= t('mount_list.owned') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @wow_mounts.each do |mount| %>
|
||||
<tr>
|
||||
<td><%= link_to mount.name, mount %></td>
|
||||
<td><%= mount.description %></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
17
app/views/wow_mounts/show.html.erb
Normal file
17
app/views/wow_mounts/show.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
<div class="card">
|
||||
<% if @wow_mount.asset_zoom %>
|
||||
<img src=<%= @wow_mount.asset_zoom %> class="card-img-top" alt="mount-zoom-image">
|
||||
<% end %>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><%= @wow_mount.name %></h5>
|
||||
<p class="card-text">Description: <%= @wow_mount.description %></p>
|
||||
<p class="card-text">Owned: </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-7">
|
||||
<h1>Suite de la page de la monture</h1>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user