Permalink
Browse files

Added icons for easier sync result view

  • Loading branch information...
1 parent b6e559f commit 1e276d9229536f6ec37d36bf81fab27b0aec2f0d @splitbrain committed Mar 22, 2010
View
@@ -363,19 +363,19 @@ function _sync(&$synclist,$type){
foreach((array) $synclist as $id => $dir){
@set_time_limit(30);
if($dir == 0){
- $this->_listOut($this->getLang('skipped').' '.$id);
+ $this->_listOut($this->getLang('skipped').' '.$id,'skipped');
continue;
}
if($dir == -2){
//delete local
if($type == 'pages'){
saveWikiText($id,'',$sum,false);
- $this->_listOut($this->getLang('localdelok').' '.$id);
+ $this->_listOut($this->getLang('localdelok').' '.$id,'del_okay');
}else{
if(unlink(mediaFN($id))){
- $this->_listOut($this->getLang('localdelok').' '.$id);
+ $this->_listOut($this->getLang('localdelok').' '.$id,'del_okay');
}else{
- $this->_listOut($this->getLang('localdelfail').' '.$id);
+ $this->_listOut($this->getLang('localdelfail').' '.$id,'del_fail');
}
}
continue;
@@ -389,7 +389,7 @@ function _sync(&$synclist,$type){
}
if(!$ok){
$this->_listOut($this->getLang('pullfail').' '.$id.' '.
- $this->client->getErrorMessage(),'error');
+ $this->client->getErrorMessage(),'pull_fail');
continue;
}
$data = $this->client->getResponse();
@@ -398,7 +398,7 @@ function _sync(&$synclist,$type){
}else{
io_saveFile(mediaFN($id),base64_decode($data));
}
- $this->_listOut($this->getLang('pullok').' '.$id);
+ $this->_listOut($this->getLang('pullok').' '.$id,'pull_okay');
continue;
}
if($dir == 1){
@@ -412,10 +412,10 @@ function _sync(&$synclist,$type){
}
if(!$ok){
$this->_listOut($this->getLang('pushfail').' '.$id.' '.
- $this->client->getErrorMessage(),'error');
+ $this->client->getErrorMessage(),'push_fail');
continue;
}
- $this->_listOut($this->getLang('pushok').' '.$id);
+ $this->_listOut($this->getLang('pushok').' '.$id,'push_okay');
continue;
}
if($dir == 2){
@@ -427,10 +427,10 @@ function _sync(&$synclist,$type){
}
if(!$ok){
$this->_listOut($this->getLang('remotedelfail').' '.$id.' '.
- $this->client->getErrorMessage(),'error');
+ $this->client->getErrorMessage(),'del_fail');
continue;
}
- $this->_listOut($this->getLang('remotedelok').' '.$id);
+ $this->_listOut($this->getLang('remotedelok').' '.$id,'del_okay');
continue;
}
}
@@ -641,6 +641,7 @@ function _getSyncList($type='pages'){
array('depth' => (int) $this->profiles[$no]['depth'],
'hash' => true), $dir);
}
+
// put into synclist
foreach($local as $item){
// skip identical files
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -1,7 +1,7 @@
base sync
author Andreas Gohr
email andi@splitbrain.org
-date 2009-03-08
+date 2010-03-22
name DokuWiki Synchronization Plugin
desc Syncs a namespace with a remote wiki on request
url http://www.dokuwiki.org/plugin:sync
View
@@ -45,3 +45,32 @@ div.dokuwiki form.sync_profile fieldset div small {
display: block;
}
+div.dokuwiki ul.sync li.skipped {
+ list-style-image: url(pix/skipped.png);
+}
+
+div.dokuwiki ul.sync li.del_okay {
+ list-style-image: url(pix/del_okay.png);
+}
+
+div.dokuwiki ul.sync li.del_fail {
+ list-style-image: url(pix/del_fail.png);
+}
+
+div.dokuwiki ul.sync li.push_okay {
+ list-style-image: url(pix/right_okay.png);
+}
+
+div.dokuwiki ul.sync li.push_fail {
+ list-style-image: url(pix/right_fail.png);
+}
+
+div.dokuwiki ul.sync li.pull_okay {
+ list-style-image: url(pix/left_okay.png);
+}
+
+div.dokuwiki ul.sync li.pull_fail {
+ list-style-image: url(pix/right_fail.png);
+}
+
+

0 comments on commit 1e276d9

Please sign in to comment.