diff options
| author | James Lopez <james@jameslopez.es> | 2016-06-14 16:31:03 +0200 |
|---|---|---|
| committer | James Lopez <james@jameslopez.es> | 2016-06-14 16:31:03 +0200 |
| commit | 9ecebaaea16d206ed20a2f4fc0021a2145c873f5 (patch) | |
| tree | 346f9df3661e5cd0e31116fa19270c8e0f3fc032 /app/views/notify | |
| parent | fe370b1c396cb3c290fcdb1d716a79ffe5c29169 (diff) | |
| download | gitlab-ce-9ecebaaea16d206ed20a2f4fc0021a2145c873f5.tar.gz | |
adding notifications stuff and more refactoring for exporting projects
Diffstat (limited to 'app/views/notify')
4 files changed, 26 insertions, 0 deletions
diff --git a/app/views/notify/project_was_exported_email.html.haml b/app/views/notify/project_was_exported_email.html.haml new file mode 100644 index 00000000000..fb6f4ac3efc --- /dev/null +++ b/app/views/notify/project_was_exported_email.html.haml @@ -0,0 +1,8 @@ +%p + Project #{@project.name} was exported succesfully +%p + The project export can be downloaded from: + = link_to download_export_namespace_project_url(@project.namespace, @project) do + = @project.name_with_namespace + " export" +%p + The download link will expire in 24 hours. diff --git a/app/views/notify/project_was_exported_email.text.erb b/app/views/notify/project_was_exported_email.text.erb new file mode 100644 index 00000000000..fcd801c237c --- /dev/null +++ b/app/views/notify/project_was_exported_email.text.erb @@ -0,0 +1,6 @@ +Project <%= @project.name %> was exported succesfully + +The project export can be downloaded from: +<%= download_export_namespace_project_url(@project.namespace, @project) %> + +The download link will expire in 24 hours. diff --git a/app/views/notify/project_was_not_exported_email.html.haml b/app/views/notify/project_was_not_exported_email.html.haml new file mode 100644 index 00000000000..78d4751b64a --- /dev/null +++ b/app/views/notify/project_was_not_exported_email.html.haml @@ -0,0 +1,7 @@ +%p + Project #{@project.name} couldn't be exported. +%p + The errors we encountered were: + + %h3{style: "background: black; color: red;"} + #{@errors} diff --git a/app/views/notify/project_was_not_exported_email.text.erb b/app/views/notify/project_was_not_exported_email.text.erb new file mode 100644 index 00000000000..ad730d2162b --- /dev/null +++ b/app/views/notify/project_was_not_exported_email.text.erb @@ -0,0 +1,5 @@ +Project <%= @project.name %> couldn't be exported. + +The errors we encountered were: + +<%= @errors %> |
