Skip to content

Instantly share code, notes, and snippets.

@hayduke19us
Created December 10, 2013 22:53
Show Gist options
  • Save hayduke19us/7901898 to your computer and use it in GitHub Desktop.
Save hayduke19us/7901898 to your computer and use it in GitHub Desktop.
<% if options.orientation == :vertical %>{<% 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="Arial-BoldMT" 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="Arial-ItalicMT" color="grey60"><%= attribute.type_description %></font></td></tr>
<% end %>
</table>
<% else %>
<% end %>
<% if options.orientation == :vertical %>}<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment