diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2015-03-31 15:05:09 +0200 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2015-03-31 15:05:25 +0200 |
commit | ed32f1fe812a2f43dd3d1fafd7774b56e9d08785 (patch) | |
tree | f64c78678b0fe646611073174a8866f10ae9605f /app/utils/report/boot.py | |
parent | 004d9f8e02384bde7a2bd8c588080e79f482a3d2 (diff) |
Use URL translation function in boot email.
Diffstat (limited to 'app/utils/report/boot.py')
-rw-r--r-- | app/utils/report/boot.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/app/utils/report/boot.py b/app/utils/report/boot.py index 7ade822..23e6915 100644 --- a/app/utils/report/boot.py +++ b/app/utils/report/boot.py @@ -482,12 +482,23 @@ def _create_boot_email(**kwargs): kwargs["tree_string"] = G_(u"Tree: %(job)s") % kwargs kwargs["branch_string"] = G_(u"Branch: %(git_branch)s") % kwargs kwargs["git_describe_string"] = G_(u"Git Describe: %(kernel)s") % kwargs - kwargs["git_commit_string"] = G_(u"Git Commit: %(git_commit)s") % kwargs - kwargs["git_url_string"] = G_(u"Git URL: %(git_url)s") % kwargs kwargs["info_email"] = info_email kwargs["tested_string"] = tested_string kwargs["subject_str"] = subject_str + git_url = k_get("git_url") + git_commit = k_get("git_commit") + + translated_git_url = \ + rcommon.translate_git_url(git_url, git_commit) or git_url + + git_txt_string = G_(u"Git URL: %s") % git_url + git_html_string = G_(u"Git URL: <a href=\"%s\">%s</a>") % ( + translated_git_url, git_url) + + kwargs["git_commit_string"] = G_(u"Git Commit: %s") % git_commit + kwargs["git_url_string"] = (git_txt_string, git_html_string) + kwargs["platforms"] = _parse_and_structure_results(**kwargs) if models.EMAIL_TXT_FORMAT_KEY in email_format: |