Skip to content

Instantly share code, notes, and snippets.

@RohanM
Created May 18, 2011 06:22

Revisions

  1. RohanM revised this gist May 18, 2011. 1 changed file with 14 additions and 0 deletions.
    14 changes: 14 additions & 0 deletions ADAUsers_emails.html.erb
    Original file line number Diff line number Diff line change
    @@ -125,3 +125,17 @@ If you do not wish to change your password, simply ignore this email.
    </body>
    </html>



    <!-- _email_signature.text.erb -->

    <p>
    --<br />
    Australian Social Science Data Archive<br />
    Building 66, 18 Balmain Crescent<br />
    The Australian National University<br />
    Acton, ACT 0200 Australia<br />
    Telephone 61 2 6125 4400<br />
    Fax 61 2 6125 0627<br />
    Website: <%= root_url %><br />
    </p>
  2. RohanM revised this gist May 18, 2011. 1 changed file with 40 additions and 42 deletions.
    82 changes: 40 additions & 42 deletions ADAUsers_emails.html.erb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,27 @@
    <!-- change_password_email.text.erb -->
    <!-- register_email.text.erb -->

    Dear <%= @user.name || @user.user %>,

    Thank you for registering with ASSDA's online Nesstar facility.
    Your username and password are:

    Username: <%= @user.user %>
    Password: <%= @password %>

    You can edit your details (including your email address), change your password,
    and see which type of studies you currently have permission to access at
    <%= edit_user_url(@user) %>.

    If you forget your password or username simply go to <%= reset_password_users_url %>,
    submit your email address and we will email your login details to you.

    Thank you for your time.

    <%= render '/email_signature' %>



    <!-- change_password_email.text.erb -->

    Dear <%= @user.name || @user.user %>,

    @@ -21,6 +43,21 @@ Thank you for your time.



    <!-- reset_password_email.text.erb -->

    Dear <%= @user.name || @user.user %>,

    Someone (possibly you) requested a password reset for this account. If you'd like to do that,
    please click on the link below and follow the instructions to change your password.

    <%= reset_password_users_url(:token => @user.token_reset_password) %>

    If you do not wish to change your password, simply ignore this email.

    <%= render '/email_signature' %>



    <!-- pending_datasets_access_approved_email.html.erb -->

    <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
    @@ -42,46 +79,7 @@ Thank you for your time.



    <!-- register_email.text.erb -->

    Dear <%= @user.name || @user.user %>,

    Thank you for registering with ASSDA's online Nesstar facility.
    Your username and password are:

    Username: <%= @user.user %>
    Password: <%= @password %>

    You can edit your details (including your email address), change your password,
    and see which type of studies you currently have permission to access at
    <%= edit_user_url(@user) %>.

    If you forget your password or username simply go to <%= reset_password_users_url %>,
    submit your email address and we will email your login details to you.

    Thank you for your time.

    <%= render '/email_signature' %>



    <!-- reset_password_email.text.erb -->


    Dear <%= @user.name || @user.user %>,

    Someone (possibly you) requested a password reset for this account. If you'd like to do that,
    please click on the link below and follow the instructions to change your password.

    <%= reset_password_users_url(:token => @user.token_reset_password) %>

    If you do not wish to change your password, simply ignore this email.

    <%= render '/email_signature' %>



    <!-- confirm_to_admin_email.html.erb -->
    <!-- undertakings/confirm_to_admin_email.html.erb -->

    <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
    <html>
    @@ -102,7 +100,7 @@ If you do not wish to change your password, simply ignore this email.
    </html>


    <!-- confirm_to_user_email.html.erb -->
    <!-- undertakings/confirm_to_user_email.html.erb -->

    <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
    <html>
  3. RohanM created this gist May 18, 2011.
    129 changes: 129 additions & 0 deletions ADAUsers_emails.html.erb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,129 @@
    <!-- change_password_email.text.erb -->


    Dear <%= @user.name || @user.user %>,

    Your ASSDA password has been updated.
    Your new details are below:

    Username: <%= @user.user %>
    Password: <%= @new_password %>

    If you forget your password or username go to the following webpage, supply your
    email address and we will email your login to you:

    <%= reset_password_users_url %>

    If your email address changes please contact ASSDA at [email protected].
    Thank you for your time.

    <%= render '/email_signature' %>



    <!-- pending_datasets_access_approved_email.html.erb -->

    <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
    <html>
    <head></head>
    <body>
    <p>Dear <%= @user.name || @user.user %>,</p>
    <p>You have now been granted access to the following dataset(s):</p>
    <p>
    <% @datasets.each do |dataset| %>
    <%= dataset.dataset_description %>
    <% end %>
    </p>
    <p>Please refer to the Catalogue guide, which provides information on how to browse, analyse, visualise and download data.</p>

    <%= render '/email_signature' %>
    </body>
    </html>



    <!-- register_email.text.erb -->

    Dear <%= @user.name || @user.user %>,

    Thank you for registering with ASSDA's online Nesstar facility.
    Your username and password are:

    Username: <%= @user.user %>
    Password: <%= @password %>

    You can edit your details (including your email address), change your password,
    and see which type of studies you currently have permission to access at
    <%= edit_user_url(@user) %>.

    If you forget your password or username simply go to <%= reset_password_users_url %>,
    submit your email address and we will email your login details to you.

    Thank you for your time.

    <%= render '/email_signature' %>



    <!-- reset_password_email.text.erb -->


    Dear <%= @user.name || @user.user %>,

    Someone (possibly you) requested a password reset for this account. If you'd like to do that,
    please click on the link below and follow the instructions to change your password.

    <%= reset_password_users_url(:token => @user.token_reset_password) %>

    If you do not wish to change your password, simply ignore this email.

    <%= render '/email_signature' %>



    <!-- confirm_to_admin_email.html.erb -->

    <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
    <html>
    <head></head>
    <body>
    <%= @undertaking.is_restricted ? "Restricted" : "General" %> Undertaking form (<%= @undertaking.user.institution_is_acspri_member ? "ACSPRI" : "Non-ACSPRI" %>) signed by <%= @undertaking.user.user %><br />
    <br />
    The following datasets have been requested:<br />
    <br />
    <% @undertaking.datasets.each do |dataset| %>
    <%= dataset.dataset_description %><br />
    <% end %>
    <br />
    To approve access see: <%= link_to nil, edit_admin_user_url(@undertaking.user) %>
    <br />
    <br />
    </body>
    </html>


    <!-- confirm_to_user_email.html.erb -->

    <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
    <html>
    <head></head>
    <body>

    <p>
    Thank you for signing the ASSDA <%= @undertaking.is_restricted ? "Restricted" : "General" %> Undertaking Agreement and requesting access to the data listed in the copy of the agreement below.

    <% if @undertaking.user.institution_is_acspri_member %>
    Once your request has been processed, you will receive an acknowledgement email and will be given access to the data requested.
    <% else %>
    Once your request has been processed you will be invoiced, and notified by email when you have been given access to the data requested.
    <% end %>
    </p>

    <p>Please keep this email as a copy of the agreement:</p>
    <hr />
    <%= render 'undertakings/agreement_general', :undertaking => @undertaking %>
    <br/>
    <%= render '/email_signature' %>
    </body>
    </html>