incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [29/50] git commit: [#3154] tweak bulk export email text & formatting
Date Wed, 21 Aug 2013 20:12:45 GMT
[#3154] tweak bulk export email text & formatting


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/b79af1a8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/b79af1a8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/b79af1a8

Branch: refs/heads/db/3154b
Commit: b79af1a881bdf61b0371f8031eb66add7867006f
Parents: 5359716
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Thu Aug 1 15:37:24 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Aug 21 18:12:26 2013 +0000

----------------------------------------------------------------------
 Allura/allura/templates/mail/bulk_export.html | 14 ++++++++------
 Allura/allura/tests/test_tasks.py             |  4 ++--
 2 files changed, 10 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b79af1a8/Allura/allura/templates/mail/bulk_export.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/mail/bulk_export.html b/Allura/allura/templates/mail/bulk_export.html
index 95ade78..e8aded1 100644
--- a/Allura/allura/templates/mail/bulk_export.html
+++ b/Allura/allura/templates/mail/bulk_export.html
@@ -17,20 +17,22 @@
        under the License.
 #}
 
-Bulk export for project {{ project.shortname }} is completed.
+The bulk export for project {{ project.shortname }} is completed.
 
-Following tools was exported:
-{% for tool in tools %}
+{% if tools %}
+The following tools were exported:
+{% for tool in tools -%}
 - {{ tool }}
 {% endfor %}
+{% endif %}
 
 {% if not_exported_tools %}
-Following tools was not exported:
-{% for tool in not_exported_tools %}
+The following tools were not exported:
+{% for tool in not_exported_tools -%}
 - {{ tool }}
 {% endfor %}
 {% endif %}
 
-Follow instructions below to get exported data.
+Follow the instructions below to get your exported data.
 
 {{ instructions }}

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b79af1a8/Allura/allura/tests/test_tasks.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_tasks.py b/Allura/allura/tests/test_tasks.py
index cd10683..c772253 100644
--- a/Allura/allura/tests/test_tasks.py
+++ b/Allura/allura/tests/test_tasks.py
@@ -392,8 +392,8 @@ class TestExportTasks(unittest.TestCase):
         assert_equal(len(tasks), 1)
         assert_equal(tasks[0].kwargs['subject'], 'Bulk export for project test completed')
         text = tasks[0].kwargs['text']
-        assert_in('Bulk export for project test is completed.', text)
-        assert_in('Following tools was exported:\n\n- wiki', text)
+        assert_in('The bulk export for project test is completed.', text)
+        assert_in('The following tools were exported:\n- wiki', text)
         assert_in('Sample instructions for test', text)
 
     @mock.patch('forgewiki.wiki_main.ForgeWikiApp.bulk_export')


Mime
View raw message