Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfligtar@gmail.com <fligtar@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-06-04 04:57:43 (GMT)
committer fligtar@gmail.com <fligtar@gmail.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-06-04 04:57:43 (GMT)
commit357764c8f3e4f1fb7806977e5631a85ecf3f3d1a (patch)
tree1f5dea6a54b982cd08c53ab9605e5da1cf5cb618
parent4dd899cc3c3e65bc2c496f976f0c5ec98819416e (diff)
amo credits page, bug 348733, r=clouserw
git-svn-id: http://svn.mozilla.org/addons/trunk@4303 4eb1ac78-321c-0410-a911-ec516a8615a5
-rw-r--r--site/app/locale/en_US/LC_MESSAGES/messages.po32
-rw-r--r--site/app/views/elements/footer.thtml1
-rw-r--r--site/app/views/pages/credits.thtml136
3 files changed, 169 insertions, 0 deletions
diff --git a/site/app/locale/en_US/LC_MESSAGES/messages.po b/site/app/locale/en_US/LC_MESSAGES/messages.po
index 23210f7..face8c0 100644
--- a/site/app/locale/en_US/LC_MESSAGES/messages.po
+++ b/site/app/locale/en_US/LC_MESSAGES/messages.po
@@ -691,6 +691,34 @@ msgstr "Previews"
msgid "breadcrumb_addon_versions"
msgstr "Version History"
+#: views/pages/credits.thtml
+msgid "credits_contributing"
+msgstr "For information on contributing, please see our %s."
+
+#: views/pages/credits.thtml
+msgid "credits_intro"
+msgstr "Mozilla would like to thank the following people for their contributions to the addons.mozilla.org project over the years:"
+
+#: views/pages/credits.thtml
+msgid "credits_section_developers"
+msgstr "Developers"
+
+#: views/pages/credits.thtml
+msgid "credits_section_editors"
+msgstr "Editors"
+
+#: views/pages/credits.thtml
+msgid "credits_section_localizers"
+msgstr "Localizers"
+
+#: views/pages/credits.thtml
+msgid "credits_section_other_contributors"
+msgstr "Other Contributors"
+
+#: views/pages/credits.thtml
+msgid "credits_section_past_developers"
+msgstr "Past Developers"
+
# date format string as used in PHP's strftime():
# http://php.net/strftime
#: views/elements/addon_listitem.thtml:69
@@ -2427,6 +2455,10 @@ msgstr "All rights reserved."
msgid "footer_copyright"
msgstr "Copyright"
+#: views/elements/footer.thtml
+msgid "footer_credits"
+msgstr "Credits"
+
#: views/elements/footer.thtml:81
msgid "footer_disclaimer"
msgstr ""
diff --git a/site/app/views/elements/footer.thtml b/site/app/views/elements/footer.thtml
index bb490bb..c12a4a8 100644
--- a/site/app/views/elements/footer.thtml
+++ b/site/app/views/elements/footer.thtml
@@ -74,6 +74,7 @@ if (!isset($suppressLanguageSelector) || !$suppressLanguageSelector) {
<p>
<?=$html->link(_('footer_privacy_policy'), '/pages/privacy');?>
<a href="http://www.mozilla.com/<?=LANG?>/about/legal.html"><?=_('footer_legal_notices')?></a>
+ <?=$html->link(_('footer_credits'), '/pages/credits')?>
</p>
</div>
diff --git a/site/app/views/pages/credits.thtml b/site/app/views/pages/credits.thtml
new file mode 100644
index 0000000..c261194
--- /dev/null
+++ b/site/app/views/pages/credits.thtml
@@ -0,0 +1,136 @@
+<?php
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is addons.mozilla.org site.
+ *
+ * The Initial Developer of the Original Code is
+ * The Mozilla Foundation.
+ * Portions created by the Initial Developer are Copyright (C) 2007
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Justin Scott <fligtar@mozilla.com> (Original Author)
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+$this->layout = 'mozilla';
+
+loadModel('Group');
+$groupModel =& new Group();
+
+$groups = $groupModel->findAll();
+
+global $valid_languages, $native_languages;
+
+$developers = array();
+$localizers = array();
+$editors = array();
+$past_developers = array();
+$other_contributors = array();
+
+foreach ($groups as $group) {
+ if (strpos($group['Group']['rules'], 'Localizers') !== false) {
+ $rules = explode(':', $group['Group']['rules']);
+
+ if (array_key_exists($rules[1], $valid_languages)) {
+ foreach ($group['User'] as $user) {
+ $localizers["{$user['firstname']} {$user['lastname']}"] = $html->link("{$user['firstname']} {$user['lastname']}", "/user/{$user['id']}")." ({$native_languages[$rules[1]]})";
+ }
+ }
+ }
+ elseif ($group['Group']['name'] == 'Editors') {
+ foreach ($group['User'] as $user) {
+ $editors["{$user['firstname']} {$user['lastname']}"] = $html->link("{$user['firstname']} {$user['lastname']}", "/user/{$user['id']}");
+ }
+ }
+ elseif ($group['Group']['name'] == 'Past Developers') {
+ foreach ($group['User'] as $user) {
+ $past_developers["{$user['firstname']} {$user['lastname']}"] = $html->link("{$user['firstname']} {$user['lastname']}", "/user/{$user['id']}");
+ }
+ }
+ elseif ($group['Group']['name'] == 'Developers') {
+ foreach ($group['User'] as $user) {
+ $developers["{$user['firstname']} {$user['lastname']}"] = $html->link("{$user['firstname']} {$user['lastname']}", "/user/{$user['id']}");
+ }
+ }
+ elseif ($group['Group']['name'] == 'Other Contributors') {
+ foreach ($group['User'] as $user) {
+ $other_contributors["{$user['firstname']} {$user['lastname']}"] = $html->link("{$user['firstname']} {$user['lastname']}", "/user/{$user['id']}");
+ }
+ }
+}
+ksort($developers);
+ksort($localizers);
+ksort($editors);
+ksort($past_developers);
+ksort($other_contributors);
+?>
+
+<div id="sidebar">
+<?=$this->renderElement('sidebar')?>
+</div>
+
+<div id="content">
+
+<?=_('credits_intro')?>
+<br><br>
+<div class="corner-box">
+<?php
+ echo '<h2>'._('credits_section_developers').'</h2>';
+ echo implode(', ', $developers);
+?>
+</div>
+<div class="corner-box">
+<?php
+ echo '<h2>'._('credits_section_localizers').'</h2>';
+ echo implode(', ', $localizers);
+?>
+</div>
+<div class="corner-box">
+<?php
+ echo '<h2>'._('credits_section_editors').'</h2>';
+ echo implode(', ', $editors);
+?>
+</div>
+<div class="corner-box">
+<?php
+ echo '<h2>'._('credits_section_other_contributors').'</h2>';
+ echo implode(', ', $other_contributors);
+?>
+</div>
+<div class="corner-box">
+<?php
+ echo '<h2>'._('credits_section_past_developers').'</h2>';
+ echo implode(', ', $past_developers);
+?>
+</div>
+
+<br>
+<?=sprintf(_('credits_contributing'), $html->link('wiki page', 'http://wiki.mozilla.org/Update'))?>
+
+<!-- end #content -->
+</div>
+