render

in www/board/agenda/views/pages/adjournment.js.rb [42:142]


  def render
    _section.flexbox do
      _section do
        _pre.report @@item.text

        if not Todos.loading or Todos.fetched
          _h3 'Post Meeting actions'

          if
            Todos.add.empty? and Todos.remove.empty? and
            Todos.change.empty? and Todos.establish.empty?
          then
            if Todos.loading
              _em 'Loading...'
            else
              _p.comment 'complete'
            end
          end
        end

        unless
          Todos.add.empty? and Todos.change.empty? and Todos.establish.empty?
        then
          _PMCActions
        end

        unless Todos.remove.empty?
          _TodoRemove
        end

        unless Todos.feedback.empty?
          _FeedbackReminder
        end

        
        completed = Todos.minutes.todos
        if
          completed and completed.keys().length > 0 and (
          (completed.added and not completed.added.empty?) or
          (completed.changed and not completed.changed.empty?) or
          (completed.removed and not completed.removed.empty?) or
          (completed.established and not completed.established.empty?) or
          (completed.feedback_sent and not completed.feedback_sent.empty?))
        then
          _h3 'Completed actions'

          if completed.added and not completed.added.empty?
            _p 'Added to PMC chairs'
            _ul completed.added do |id|
              _li {_a id, href: "../../../roster/committer/#{id}"}
            end
          end

          if completed.changed and not completed.changed.empty?
            _p 'Changed PMC chairs'
            _ul completed.changed do |pmc|
              _li {_a pmc, href: "../../../roster/committee/#{pmc}"}
            end
          end

          if completed.removed and not completed.removed.empty?
            _p 'Removed from PMC chairs'
            _ul completed.removed do |id|
              _li {_a id, href: "../../../roster/committer/#{id}"}
            end
          end

          if completed.established and not completed.established.empty?
            _p 'Established PMCs'
            _ul completed.established do |pmc|
              _li {_a pmc, href: "../../../roster/committee/#{pmc}"}
            end
          end

          if completed.terminated and not completed.terminated.empty?
            _p 'Terminated PMCs'
            _ul completed.terminated do |pmc|
              _li {_a pmc.downcase(),
                 href: "../../../roster/committee/#{pmc.downcase()}"}
            end
          end

          if completed.feedback_sent and not completed.feedback_sent.empty?
            _p 'Sent feedback'
            _ul completed.feedback_sent do |pmc|
              _li {_Link text: pmc, href: pmc.gsub(/\s+/, '-')}
            end
          end
        end
      end

      _section do
        minutes = Minutes.get(@@item.title)
        if minutes
          _h3 'Minutes'
          _pre.comment minutes
        end
      end
    end
  end