-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify handling of empty nodes in module summary
- Loading branch information
Showing
4 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
<%= unless Enum.empty?(nodes) do %> | ||
<div class="summary-<%= HTML.text_to_id(name) %> summary"> | ||
<h2> | ||
<a href="#<%= HTML.text_to_id(name) %>"><%= name %></a> | ||
</h2> | ||
<%= for node <- nodes do %> | ||
<div class="summary-row"> | ||
<div class="summary-signature"> | ||
<a href="#<%=enc node.id %>" translate="no"><%=h node.signature %></a> | ||
<%= if deprecated = node.deprecated do %> | ||
<span class="deprecated" title="<%= h(deprecated) %>">deprecated</span> | ||
<% end %> | ||
</div> | ||
<%= if doc = node.rendered_doc do %> | ||
<div class="summary-synopsis"><%= synopsis(doc) %></div> | ||
<div class="summary-<%= HTML.text_to_id(name) %> summary"> | ||
<h2> | ||
<a href="#<%= HTML.text_to_id(name) %>"><%= name %></a> | ||
</h2> | ||
<%= for node <- nodes do %> | ||
<div class="summary-row"> | ||
<div class="summary-signature"> | ||
<a href="#<%=enc node.id %>" translate="no"><%=h node.signature %></a> | ||
<%= if deprecated = node.deprecated do %> | ||
<span class="deprecated" title="<%= h(deprecated) %>">deprecated</span> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<%= if doc = node.rendered_doc do %> | ||
<div class="summary-synopsis"><%= synopsis(doc) %></div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</div> |