- page_title << @server.name
- page_title << "Messages"
- page_title << "Message ##{@message.id}"
- page_title << "Attachments"
= render 'servers/sidebar', :active_server => @server
= render 'servers/header', :active_nav => :messages
= render 'header', :active_nav => @message.scope.to_sym
= render 'message_header', :active_nav => :attachments
.pageContent.pageContent--compact
  - if @message.attachments.empty?
    .noData.noData--clean
      %h2.noData__title There are no attachments for this message.
      %p.noData__text
        This means that we no longer store the raw data for this e-mail
        or the e-mail just didn't have any attached files.
  - else
    %ul.largeList
      - @message.attachments.each_with_index do |attachment, i|
        %li.largeList__item
          = link_to attachment_organization_server_message_path(organization, @server, @message.id, :attachment => i), :class => 'largeList__link', :data => {:turbolinks => "false"} do
            %p.largeList__rightLabel= number_to_human_size attachment.body.to_s.bytesize
            %p= attachment.filename
            %p.largeList__subText= attachment.mime_type
