Sha256: 4fe1090ec3f5264062786ef32db2fa9b4db0df146328d80c6fc927386fadc955

Contents?: true

Size: 760 Bytes

Versions: 8

Compression:

Stored size: 760 Bytes

Contents

<% if options.orientation == :horizontal %>{<% end %>
<table border="0" align="center" cellspacing="0.5" cellpadding="0" width="<%= NODE_WIDTH + 4 %>">
  <tr><td align="center" valign="bottom" width="<%= NODE_WIDTH %>"><font face="<%= FONTS[:bold] %>" point-size="11"><%= entity.name %></font></td></tr>
</table>
<% if attributes.any? %>
|
<table border="0" align="left" cellspacing="2" cellpadding="0" width="<%= NODE_WIDTH + 4 %>">
<%   attributes.each do |attribute| %>
  <tr><td align="left" width="<%= NODE_WIDTH %>" port="<%= attribute %>"><%= attribute %> <font face="<%= FONTS[:italic] %>" color="grey60"><%= attribute.type_description %></font></td></tr>
<%   end %>
</table>
<% else %>
<% end %>
<% if options.orientation == :horizontal %>}<% end %>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rails-erd-1.7.2 lib/rails_erd/diagram/templates/node.html.erb
rails-erd-1.7.1 lib/rails_erd/diagram/templates/node.html.erb
rails-erd-1.7.0 lib/rails_erd/diagram/templates/node.html.erb
db_diagram-0.1.0 lib/db_diagram/diagram/templates/node.html.erb
rails-erd-1.6.1 lib/rails_erd/diagram/templates/node.html.erb
rails-erd-1.6.0 lib/rails_erd/diagram/templates/node.html.erb
rails-erd-1.5.2 lib/rails_erd/diagram/templates/node.html.erb
rails-erd-1.5.1 lib/rails_erd/diagram/templates/node.html.erb