add creature and base rp_world

This commit is contained in:
2021-06-02 22:24:04 +02:00
parent 5b3da08707
commit 62464846a3
56 changed files with 432 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
<h2>Characters list</h2>
<table class="table table-hover table-dark table-image">
<thead>
<tr>
<th scope="col"><%= t('rp_worlds.world_list.name') %></th>
<th scope="col"><%= t('rp_worlds.world_list.description') %></th>
</tr>
</thead>
<tbody>
<% @rp_worlds.each do |world| %>
<tr>
<td><%= link_to world.name, world %></td>
<td><%= world.description %></td>
</tr>
<% end %>
</tbody>
</table>

View File

@@ -0,0 +1,17 @@
<div class="row">
<div class="col-5">
<div class="card">
<div class="card-body">
<h5 class="card-title"><%= @rp_world.name %></h5>
<p class="card-text">Description: <%= @rp_world.description %></p>
<p>Membres: </p>
<% @rp_world.wow_characters.each do |member| %>
<p><%= link_to member.name, member %></p>
<% end %>
</div>
</div>
</div>
<div class="col-7">
<h1>Suite...</h1>
</div>
</div>