Skip to content

Commit

Permalink
community block MDL-24830 better "wait for download" message
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed Oct 26, 2010
1 parent 6cd2c7f commit ba14d72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions blocks/community/communitycourse.php
Expand Up @@ -104,12 +104,8 @@
//OUTPUT: display restore choice page
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('downloadingcourse', 'block_community'), 3, 'main');
echo html_writer::tag('div', get_string('downloading', 'block_community'),
array('class' => 'textinfo'));
$sizeinfo = new stdClass();
$sizeinfo->total = $backupsize / 1000000;
$sizeinfo->modem = (int) ($backupsize / 5000);
$sizeinfo->dsl = (int) $sizeinfo->total;
$sizeinfo->total = number_format($backupsize / 1000000, 2);
echo html_writer::tag('div', get_string('downloadingsize', 'block_community', $sizeinfo),
array('class' => 'textinfo'));
flush();
Expand Down
3 changes: 1 addition & 2 deletions blocks/community/lang/en/block_community.php
Expand Up @@ -49,9 +49,8 @@
$string['downloadable'] = 'courses I can download';
$string['downloadconfirmed'] = 'The backup has been saved in your private files {$a}';
$string['downloaded'] = '...finished.';
$string['downloading'] = 'Do not refresh your browser ! The site is downloading the course backup...';
$string['downloadingcourse'] = 'Downloading course';
$string['downloadingsize'] = 'Downloading the backup ({$a->total}Mb) should take approximately between {$a->dsl}s and {$a->modem}s, depending on the site/hub connection...';
$string['downloadingsize'] = 'Please wait the course file is downloading ({$a->total}Mb)...';
$string['downloadtemplate'] = 'Create course from template';
$string['educationallevel'] = 'Educational level';
$string['educationallevel_help'] = 'What educational level are you searching for? In the case of communities of educators, this level describes the level they are teaching.';
Expand Down
2 changes: 1 addition & 1 deletion blocks/community/styles.css
Expand Up @@ -153,7 +153,7 @@
#page-blocks-community-communitycourse .hubrateandcomment { font-size: 80%;}
#page-blocks-community-communitycourse .hubcourseoutcomes {}
#page-blocks-community-communitycourse .nextlink {text-align: center;margin-top: 6px;}
#page-blocks-community-communitycourse .textinfo {}
#page-blocks-community-communitycourse .textinfo { text-align: center;}

#ss-mask {
z-index: 10;
Expand Down

0 comments on commit ba14d72

Please sign in to comment.