mconf/mconf-web

View on GitHub
app/views/my/meetings.html.haml

Summary

Maintainability
Test Coverage
- page_title t('.title')
- home_navbar_menu_at(:meetings)

= content_for :navbar_menu do
  = render "my/navbar_menu", user_spaces: @user_spaces

-# = content_for :sidebar do
-#   = render "my/navbar_menu", user_spaces: @user_spaces
-# = render "my/sidebar", user_spaces: @user_spaces

= content_for :sidebar_menu do
  %ul
    %li= link_to t(".recordedonly_true"), my_meetings_path, class: "#{'active' if params[:recordedonly].nil? }"
    %li= link_to t(".recordedonly_false"), my_meetings_path(recordedonly: 'false'), class: "#{'active' if params[:recordedonly] == 'false' }"

- cls = @meetings.count <= 0 ? 'empty' : ''
#my-meetings{ class: cls }
  - if @meetings.count > 0
    %h1= t('.subtitle')

    #my-meetings-list
      = render partial: 'shared/recording_list', locals: { meetings: @meetings, show_authors: false, redir_to: my_meetings_path }

  - else
    %h2= t('.no_meetings_headline')