danielweinmann/unlock

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

Summary

Maintainability
Test Coverage
- content_for :title do
  = t('my_contributions')
section.active
  h3= t('activerecord.state_machines.contribution.state.states.active').pluralize
  - if @active.exists?
    ul.contributions= render @active
  - else
    em= t('empty', model: Contribution.model_name.human.downcase)
section.suspended
  h3= t('activerecord.state_machines.contribution.state.states.suspended').pluralize
  - if @suspended.exists?
    ul.contributions= render @suspended
  - else
    em= t('empty', model: Contribution.model_name.human.downcase)