Sha256: 2b311a0db8f67e7b730eda47deb7a4f5279f9a9e3bfa3f8042eb0a126546bbe5

Contents?: true

Size: 877 Bytes

Versions: 1

Compression:

Stored size: 877 Bytes

Contents

Volontariat.CommunityFeedbacksController = Volontariat.Controller.extend(Volontariat.PaginationController, Volontariat.FeedbackPersistence,
  paginationResource: 'feedback'
  
  anyItems: (-> @get('content.length') > 0).property('content')
  feedbackClass: (-> if @get('feedbackType') == 'Feedback' then 'active' else '').property('feedbackType')
  problemClass: (-> if @get('feedbackType') == 'Problem' then 'active' else '').property('feedbackType')
  questionClass: (-> if @get('feedbackType') == 'Question' then 'active' else '').property('feedbackType')
  ideaClass: (-> if @get('feedbackType') == 'Idea' then 'active' else '').property('feedbackType')
  praiseClass: (-> if @get('feedbackType') == 'Praise' then 'active' else '').property('feedbackType')
  announcementClass: (-> if @get('feedbackType') == 'Announcement' then 'active' else '').property('feedbackType')
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary_feedback-0.1.0 app/assets/javascripts/voluntary_feedback/controllers/community/feedbacks_controller.js.coffee