Skip to content

🐛 Fix broken HTML structure in show and index views#74

Merged
fusion94 merged 1 commit intomasterfrom
fix/62-html-structure
Mar 18, 2026
Merged

🐛 Fix broken HTML structure in show and index views#74
fusion94 merged 1 commit intomasterfrom
fix/62-html-structure

Conversation

@fusion94
Copy link
Copy Markdown
Collaborator

@fusion94 fusion94 commented Mar 18, 2026

Summary

Two HTML structure bugs in the views.

Changes

  • show.html.erb: Version partial moved out of header <tr> into separate <tbody>. Added <thead>/<tbody> structure.
  • index.html.erb: Empty state <td> wrapped in <tr>, rowspancolspan

Test Plan

  • 19 examples, 0 failures (Rails 7.1 + kaminari)
  • Show page renders valid HTML
  • Empty index renders valid HTML

Closes #62

- show.html.erb: version partial was rendered inside the header
  <tr>, creating nested/invalid <tr> tags. Moved partial to its
  own <tbody> after <thead>.
- index.html.erb: empty state <td> was not wrapped in <tr>.
  Added <tr> wrapper and fixed rowspan→colspan.

Closes #62
@fusion94 fusion94 merged commit 4f784fc into master Mar 18, 2026
18 checks passed
@fusion94 fusion94 deleted the fix/62-html-structure branch March 18, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Broken HTML structure in show and index views

1 participant