function attachmentSections()

in public/scripts/main.js [45:62]


function attachmentSections(t, options) {
  var attachments = options.entries;
  var gitlabAttachments = attachments.filter(utils.isAttachmentGitLabMergeRequest);

  if (gitlabAttachments.length > 0) {
    return [{
      icon: './images/card_logo.svg',
      title: 'GitLab Merge Requests',
      claimed: gitlabAttachments,
      content: {
        type: 'iframe',
        url: t.signUrl('./mr_section.html')
      }
    }];
  }

  return [];
}