Refactor users/show.haml and user_tabs.js to remove legacy tabs
Remove hidden legacy tabs from users/show.haml and refactor user_tabs.js to render lazy content into a single centralized content container. This allows a significant amount of code to be removed and simplified. Light refactors of these files also remove naming references to removed legacy concepts and enhance readability.
显示
- app/assets/javascripts/pages/users/user_tabs.js 40 个添加, 155 个删除app/assets/javascripts/pages/users/user_tabs.js
- app/controllers/users_controller.rb 7 个添加, 0 个删除app/controllers/users_controller.rb
- app/helpers/users_helper.rb 5 个添加, 15 个删除app/helpers/users_helper.rb
- app/views/users/_legacy_tabs.html.haml 11 个添加, 0 个删除app/views/users/_legacy_tabs.html.haml
- app/views/users/show.html.haml 7 个添加, 95 个删除app/views/users/show.html.haml
- spec/features/calendar_spec.rb 9 个添加, 9 个删除spec/features/calendar_spec.rb
- spec/features/profiles/user_visits_profile_spec.rb 7 个添加, 7 个删除spec/features/profiles/user_visits_profile_spec.rb
- spec/features/users/overview_spec.rb 13 个添加, 13 个删除spec/features/users/overview_spec.rb
- spec/features/users/show_spec.rb 6 个添加, 103 个删除spec/features/users/show_spec.rb
- spec/features/users/user_browses_projects_on_user_page_spec.rb 2 个添加, 2 个删除...features/users/user_browses_projects_on_user_page_spec.rb
- spec/helpers/users_helper_spec.rb 18 个添加, 7 个删除spec/helpers/users_helper_spec.rb
加载中
想要评论请 注册 或 登录