danielweinmann/unlock

View on GitHub
app/views/users/my_initiatives.html.slim

Summary

Maintainability
Test Coverage
- content_for :title do
  = t('my_initiatives')
- if @user.initiatives.exists?
  section.initiatives= render @user.initiatives
- else
  em= t('empty', model: Initiative.model_name.human.downcase)