From: dongsheng Date: Tue, 9 Sep 2008 09:04:32 +0000 (+0000) Subject: MDL-13766 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7dfb3c1cb4a97a1e960ef73c46070340d886661b;p=moodle.git MDL-13766 1. redesign file picker UI 2. fix a bug of popup window 3. reduce number of pics per page (flickr plugin) --- diff --git a/lang/en_utf8/repository.php b/lang/en_utf8/repository.php index d95fa366e6..2620b48d0b 100644 --- a/lang/en_utf8/repository.php +++ b/lang/en_utf8/repository.php @@ -58,6 +58,7 @@ $string['openpicker'] = 'Choose a file...'; $string['personalrepositories'] = 'Personal repositories'; $string['plugin'] = 'Repository plug-ins'; $string['preview'] = 'Preview'; +$string['refresh'] = 'Refresh'; $string['removed'] = 'Repository removed'; $string['repository'] = 'Repository'; $string['repositorycourse'] = 'Course repositories'; diff --git a/pix/a/logout.png b/pix/a/logout.png new file mode 100644 index 0000000000..0010931e2c Binary files /dev/null and b/pix/a/logout.png differ diff --git a/pix/a/refresh.png b/pix/a/refresh.png new file mode 100644 index 0000000000..3fd71d6e59 Binary files /dev/null and b/pix/a/refresh.png differ diff --git a/pix/a/search.png b/pix/a/search.png new file mode 100644 index 0000000000..d072d3cbe2 Binary files /dev/null and b/pix/a/search.png differ diff --git a/pix/a/setting.png b/pix/a/setting.png new file mode 100644 index 0000000000..9460dfc746 Binary files /dev/null and b/pix/a/setting.png differ diff --git a/repository/flickr/repository.class.php b/repository/flickr/repository.class.php index 1ec4461656..bb410e06ca 100755 --- a/repository/flickr/repository.class.php +++ b/repository/flickr/repository.class.php @@ -142,7 +142,7 @@ EOD; // do searching, if $path is not empty, ignore it. $photos = $this->flickr->photos_search(array('user_id'=>$people['nsid'], 'text'=>$search)); } elseif(!empty($path) && empty($search)) { - $photos = $this->flickr->people_getPublicPhotos($people['nsid'], 'original_format', 36, $path); + $photos = $this->flickr->people_getPublicPhotos($people['nsid'], 'original_format', 25, $path); } $ret = array(); diff --git a/repository/lib.php b/repository/lib.php index 6c0b98a6e9..37774f455a 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -1171,6 +1171,7 @@ function repository_get_client($context){ $strdate = get_string('date', 'repository').': '; $strerror = get_string('error', 'repository'); $strfilenotnull = get_string('filenotnull', 'repository'); + $strrefresh = get_string('refresh', 'repository'); $strinvalidjson = get_string('invalidjson', 'repository'); $strlistview = get_string('listview', 'repository'); $strlogout = get_string('logout', 'repository'); @@ -1212,7 +1213,6 @@ p.upload a:hover {background: grey;color:white} .grid p{margin:0;padding:0;background: #FFFFCC} .grid .label{height:48px} .grid span{background: #EEF9EB;color:gray} -.repo-opt a{font-size: 12px;background: #FFFFCC;padding: 0 3px} #panel-$suffix{padding:0;margin:0; text-align:left;} #file-picker-$suffix{font-size:12px;} #file-picker-$suffix strong{background:#FFFFCC} @@ -1220,6 +1220,7 @@ p.upload a:hover {background: grey;color:white} #file-picker-$suffix a:hover{background:#003366;color:white} #repo-viewbar-$suffix{width:300px;float:left} #search-div-$suffix{float:right} +#repo-tb-$suffix{padding: .8em;background: #FFFFCC;color:white;text-align:center}