summaryrefslogtreecommitdiff
path: root/app/views/notify/new_release_email.html.haml
blob: 1cd3a2340c6d1fc5e66df9e4de814d955290b2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- release_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: @target_url }
- description_details = { tag: @release.tag, name: @project.name, release_link_start: release_link_start, release_link_end: '</a>'.html_safe }

%div{ style: "font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;" }
  %p
    = _("A new Release %{tag} for %{name} was published. Visit the %{release_link_start}Releases page%{release_link_end} to read more about it.").html_safe % description_details

  %p
    %h4= _("Assets:")
    %ul
      - @release.links.each do |link|
        %li= link_to(link.name, link.url)
      - @release.sources.each do |source|
        %li= link_to(_("Download %{format}") % { format: source.format }, source.url)

  %p
    %h4= _("Release notes:")
    = markdown(@release.description, pipeline: :email, author: @release.author, current_user: @recipient)