Commit
049d7ae3fd2995b1f7caf28c3b300cef132e3ab0
Exists in
staging
and in
26 other branches
angular_poc, api-article-archived, api-homepage, api_visitor, article-readonly, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, content-manager-hostspot, environment-api, export-comment-paragraph, fix_event_date_issue, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, pg_search_rank, production, resend_confirmation_email, tasks_keep_filter_params
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
| + |