diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-13 03:10:32 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-13 03:10:32 (GMT) |
commit | e319fc4a74d28a7e7c0a587253830bdfce805de7 (patch) | |
tree | 5f625feec235d2af6247398ec268e12ceefb06e5 | |
parent | dee085199c8a8cf380aedc8e6baa976cb8ae806d (diff) |
Revert release notes email template
-rw-r--r-- | site/app/controllers/components/editors.php | 11 | ||||
-rw-r--r-- | site/app/views/editors/email/aslo/release_en_plain.thtml | 13 | ||||
-rw-r--r-- | site/app/views/editors/email/aslo/release_es_plain.thtml | 13 |
3 files changed, 28 insertions, 9 deletions
diff --git a/site/app/controllers/components/editors.php b/site/app/controllers/components/editors.php index b98e86a..e0cba1f 100644 --- a/site/app/controllers/components/editors.php +++ b/site/app/controllers/components/editors.php @@ -913,7 +913,16 @@ class EditorsComponent extends Object { $releasenotes = $this->controller->Version->getReleaseNotesLocales($version_id); $en = isset($releasenotes['en-US']) ? $releasenotes['en-US'] : ''; - + $version = $this->controller->Version->findById($version_id, null, null, null, null, -1); + $compat = $this->controller->Version->getCompatibleApps($version_id); + $compat = $compat[0]; + + $emailInfo['min'] = $compat['Min_Version']['version']; + $emailInfo['max'] = $compat['Max_Version']['version']; + $emailInfo['version_id'] = $version_id; + $emailInfo['file_id'] = $version['File'][0]['id']; + $emailInfo['filename'] = $version['File'][0]['filename']; + foreach ($SITE_RELEASE_EMAIL as $locale => $props) { $emailInfo['releasenotes'] = isset($releasenotes[$locale]) ? $releasenotes[$locale] : $en; $this->controller->set('info', $emailInfo); diff --git a/site/app/views/editors/email/aslo/release_en_plain.thtml b/site/app/views/editors/email/aslo/release_en_plain.thtml index 89e7c12..ef1b559 100644 --- a/site/app/views/editors/email/aslo/release_en_plain.thtml +++ b/site/app/views/editors/email/aslo/release_en_plain.thtml @@ -1,14 +1,19 @@ -Url: +Activity Homepage: <?=SITE_URL?>/addon/<?=$info['id']?> +Sugar Platform: +<?=$info['min']?> - <?=$info['max']?> + + +Download Now: +<?=SITE_URL?>/downloads/file/<?=$info['file_id']?>/<?=$info['filename']?> + + Release notes: <?=$info['releasenotes']?> -Reviewer comments: -<?=$info['comments']?> - <?=SITE_NAME?> diff --git a/site/app/views/editors/email/aslo/release_es_plain.thtml b/site/app/views/editors/email/aslo/release_es_plain.thtml index 04481f7..93f4fac 100644 --- a/site/app/views/editors/email/aslo/release_es_plain.thtml +++ b/site/app/views/editors/email/aslo/release_es_plain.thtml @@ -1,14 +1,19 @@ -Url: +Página web de la actividad: <?=SITE_URL?>/addon/<?=$info['id']?> +Sugar Platform: +<?=$info['min']?> - <?=$info['max']?> + + +Descargar ahora: +<?=SITE_URL?>/downloads/file/<?=$info['file_id']?>/<?=$info['filename']?> + + Notas de la versión: <?=$info['releasenotes']?> -Comentarios del Revisor: -<?=$info['comments']?> - <?=SITE_NAME?> |