Commit
049d7ae3fd2995b1f7caf28c3b300cef132e3ab0
Exists in
master
and in
22 other branches
angular_poc, api-article-archived, article-readonly, backup-7-jan-2016, captcha_serpro_plugin, content-manager-hostspot, export-comment-paragraph, fix_event_date_issue, login-captcha, master_rails3, new_video_plugin, pg_search_rank, production, refactor_with_role, refactor_with_role_scope, remove_profile_cat_icons, resend_confirmation_email, staging, staging_rails3, tasks_keep_filter_params, theme-brasil-digital-from-staging, travis
folder: fix empty subfolder view
It seems #empty? is emptying #children (probably a rails bug)
| @@ -4,8 +4,5 @@ |
| @@ -4,8 +4,5 @@ |
4
| </div> |
4
| </div> |
5
| <% end %> |
5
| <% end %> |
6
| |
6
| |
7
| -<% if folder.children.empty? %> |
| |
8
| - <em><%= _('(empty folder)') %></em> |
| |
9
| -<% else %> |
| |
10
| - <%= list_contents(:contents=>folder.children) %> |
| |
11
| -<% end %> |
7
| +<%= list_contents contents: folder.children %> |
| |
8
| + |