diff options
| author | Seba Gamboa <[email protected]> | 2015-09-25 13:12:22 -0300 |
|---|---|---|
| committer | Seba Gamboa <[email protected]> | 2015-09-25 13:12:22 -0300 |
| commit | 48fb10fef522ab9262061bc612b44d74a8bda17d (patch) | |
| tree | c48dcb77245e4a6b15af4366e96c31d6eb1cdd93 /templates/default/header/html/function_summary.erb | |
| parent | e0e43a79d282d69f2f45d5cf71e0e1154357d181 (diff) | |
| download | yard-mruby-48fb10fef522ab9262061bc612b44d74a8bda17d.tar.gz yard-mruby-48fb10fef522ab9262061bc612b44d74a8bda17d.zip | |
Listing functions
Diffstat (limited to 'templates/default/header/html/function_summary.erb')
| -rw-r--r-- | templates/default/header/html/function_summary.erb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/templates/default/header/html/function_summary.erb b/templates/default/header/html/function_summary.erb index 037daa4..f37f075 100644 --- a/templates/default/header/html/function_summary.erb +++ b/templates/default/header/html/function_summary.erb @@ -1,6 +1,12 @@ -<ul class="summary"> +<% if function_listing.size > 0 %> + <h2> + Function Summary + <small><a href="#" class="summary_toggle">collapse</a></small> + </h2> - <% function_listing.each do |func| %> - <%= yieldall :item => func %> - <% end %> -</ul> + <ul class="summary"> + <% function_listing.each do |func| %> + <%= yieldall :item => func %> + <% end %> + </ul> +<% end %> |
