Skip to content

Instantly share code, notes, and snippets.

@RohanM
Created May 18, 2011 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RohanM/978078 to your computer and use it in GitHub Desktop.
Save RohanM/978078 to your computer and use it in GitHub Desktop.
ADAUsers emails
<!-- 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 %>,
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 assda@anu.edu.au.
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' %>
<!-- 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>
<!-- undertakings/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>
<!-- undertakings/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>
<!-- _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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment