diff options
author | David Gay <david@davidgay.org> | 2021-05-23 22:18:43 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-23 22:19:51 -0400 |
commit | 1d55d62b2561a402c902b4c5a66076ab1c278548 (patch) | |
tree | f2e5ac9aa618575a20aa8e73e6646b4825172dfc /app/views/characters | |
parent | 99a2ec9a166a36cfc44577d95c6d245c28709ee1 (diff) |
Various appearance improvements
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> |