summaryrefslogtreecommitdiff
path: root/app/views/admin/mailer/preview.html.haml
blob: 60e245884879790cccef16e50819ad6a62c1aef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%p This is page with preview for all system emails that are sent to user
%p Email previews built based on existing Project/Commit/Issue base - so some preview maybe unavailable unless object appear in system

#accordion
  %h3
    %a New user
  %div
    %iframe{ :src=> admin_mailer_preview_user_new_path, :width=>"100%", :height=>"350"}
  %h3
    %a New issue
  %div
    %iframe{ :src=> admin_mailer_preview_issue_new_path, :width=>"100%", :height=>"350"}
  %h3
    %a Commit note
  %div
    %iframe{ :src=> admin_mailer_preview_note_path(:type => "Commit"), :width=>"100%", :height=>"350"}
  %h3
    %a Issue note
  %div
    %iframe{ :src=> admin_mailer_preview_note_path(:type => "Issue"), :width=>"100%", :height=>"350"}
  %h3
    %a Wall note
  %div
    %iframe{ :src=> admin_mailer_preview_note_path(:type => "Wall"), :width=>"100%", :height=>"350"}

:javascript
  $(function() {
      $( "#accordion" ).accordion(); });