add creature and base rp_world
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <%= 'active' if current_page?(wow_reputations_path) %>" aria-current="page" href="<%= wow_reputations_path %>"><%= t('layouts.navbar.reputations') %></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <%= 'active' if current_page?(rp_worlds_path) %>" aria-current="page" href="<%= rp_worlds_path %>"><%= t('layouts.navbar.worlds') %></a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
|
||||
<%= render 'layouts/locales' %>
|
||||
|
||||
18
app/views/rp_worlds/index.html.erb
Normal file
18
app/views/rp_worlds/index.html.erb
Normal 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>
|
||||
17
app/views/rp_worlds/show.html.erb
Normal file
17
app/views/rp_worlds/show.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user