-
- Downloads
There was an error fetching the commit references. Please try again later.
Refactored the user callout class
Instead of the JS being in charge of the HTML, the HAML now handles it. The HAML can then check the cookie & show it needed. It also allows the HAML access to the paths so we don't have to pass that through. Closes #29955
Showing
- app/assets/javascripts/user_callout.js 6 additions, 37 deletionsapp/assets/javascripts/user_callout.js
- app/helpers/application_helper.rb 4 additions, 0 deletionsapp/helpers/application_helper.rb
- app/views/dashboard/projects/index.html.haml 3 additions, 1 deletionapp/views/dashboard/projects/index.html.haml
- app/views/shared/_user_callout.html.haml 14 additions, 0 deletionsapp/views/shared/_user_callout.html.haml
- app/views/users/show.html.haml 2 additions, 2 deletionsapp/views/users/show.html.haml
- spec/features/user_callout_spec.rb 15 additions, 3 deletionsspec/features/user_callout_spec.rb
- spec/javascripts/fixtures/dashboard.rb 31 additions, 0 deletionsspec/javascripts/fixtures/dashboard.rb
- spec/javascripts/fixtures/user_callout.html.haml 0 additions, 2 deletionsspec/javascripts/fixtures/user_callout.html.haml
- spec/javascripts/user_callout_spec.js 12 additions, 32 deletionsspec/javascripts/user_callout_spec.js
app/views/shared/_user_callout.html.haml
0 → 100644
spec/javascripts/fixtures/dashboard.rb
0 → 100644
Please register or sign in to comment