. * Portions created by the Initial Developer are Copyright (C) 2006 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Frederic Wenzel * * 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 ***** */ ?>
renderElement('developers/sidebar', array('addons' => $all_addons));?>

Developer Dashboard

controller->Image->getAddonIconURL($addon_id); ?>
'; echo ''.$addon['Translation']['name']['string'].''; echo $addon['Translation']['name']['string'].''; if ($addon['Addon']['status'] != STATUS_DISABLED) { $latestVersion = !empty($addon['Version'][0]) ? $addon['Version'][0] : 0; echo '
    '; // Edit Add-on echo '
  • '._('devcp_actionbar_link_edit').''; echo ''.sprintf('Last edited on %s', strftime(_('date'), strtotime($addon['Addon']['modified']))).'
  • '; // Change Status echo '
  • Change Status'; echo ''.sprintf('%s currently %s and %s', $addontypes[$addon['Addon']['addontype_id']], ''.($addon['Addon']['inactive'] == 1 ? 'Inactive' : 'Active').'', ''.$statuses[$addon['Addon']['status']].'').'
  • '; // Statistics Dashboard echo '
  • '._('devcp_actionbar_link_stats').''; echo ''; echo sprintf(_('devcp_statsbar_total_downloads'), $html->number_format($addon['Addon']['totaldownloads'], 0)); echo ' · '; echo sprintf(_('devcp_statsbar_weekly_downloads'), $html->number_format($addon['Addon']['weeklydownloads'], 0)); echo ' · '; echo sprintf(_('devcp_statsbar_adu'), $html->number_format($addon['Addon']['updatepings'], 0)); echo '
  • '; // Versions and Files echo '
  • Versions and Files'; echo ''; if (!empty($latestVersion)) { echo _('devcp_summary_lastversion').' '.$html->link($latestVersion['version'], '/developers/versions/edit/'.$latestVersion['id']).' ('.$this->controller->Amo->describeVersionStatus($latestVersion['File']).')'; if ($addon['Addon']['inactive'] != 1) { echo ' · '; } } if ($addon['Addon']['inactive'] != 1) { echo 'Upload a new version'; } echo '
  • '; // Previews echo '
  • '._('devcp_actionbar_link_previews').'
  • '; echo '
'; } else { // Admin Disabled Add-on echo '

Add-on Status: '.$statuses[STATUS_DISABLED].'

'; echo '

Your add-on was disabled by an administrator and cannot be used. If you have any questions, please e-mail amo-admins@mozilla.org.

'; } ?>
'; echo '

Welcome to the Developer Dashboard

'; echo '

You don\'t currently have any add-ons hosted on '.SITE_NAME.'. To learn how the process works and submit your first add-on, click Get Started below.

'; echo '
Get Started
'; echo '
'; } ?>