diff options
Diffstat (limited to 'app/views/characters')
-rw-r--r-- | app/views/characters/show.html.erb | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb index c497ea1..e7f9696 100644 --- a/app/views/characters/show.html.erb +++ b/app/views/characters/show.html.erb @@ -54,9 +54,24 @@ <div class="my-6"> <h2 class="text-2xl mb-4">Skills</h2> - <ul> + <table class="table-auto mb-8"> + <thead> + <tr> + <th class="table-header-padded">Skill</th> + <th class="table-header-padded">Level</th> + <th class="table-header-padded">XPTNL</th> + <th class="table-header-padded">Total XP</th> + </tr> + </thead> + <tbody> <% @character.character_skills.ordered_by_skill_name.each do |cs| %> - <li><%= cs.skill.name %> Level <%= cs.level %> (<%= cs.xp %> XP)</li> + <tr> + <td class="table-cell-padded"><%= cs.skill.name %></td> + <td class="table-cell-padded"><%= cs.level %></td> + <td class="table-cell-padded"><%= cs.xp_to_next_level %></td> + <td class="table-cell-padded"><%= cs.xp %></td> + </tr> <% end %> - </ul> + </tbody> + </table> </div> |