<!-- Version History Partial -->
<% if (history.length === 0) { %>
  <p style="color:#666;font-size:11px;margin:4px 0;">No version history yet.</p>
<% } else { %>
  <table style="width:100%;font-size:11px;border-collapse:collapse;">
    <thead>
      <tr style="color:#666;text-align:left;">
        <th style="padding:3px 6px;">Version</th>
        <th style="padding:3px 6px;">By</th>
        <th style="padding:3px 6px;">When</th>
      </tr>
    </thead>
    <tbody>
      <% history.forEach(function(h) { %>
        <tr style="border-top:1px solid #333;">
          <td style="padding:3px 6px;color:#e0e0e0;font-weight:600;"><%= h.version %></td>
          <td style="padding:3px 6px;color:#aaa;"><%= h.updated_by_username %></td>
          <td style="padding:3px 6px;color:#666;"><%= new Date(h.updated_at).toLocaleDateString() %></td>
        </tr>
      <% }); %>
    </tbody>
  </table>
<% } %>
