Commit:    97eef0688fe51d2a89381c4f8b33d9bcefc1cd16
Author:    Sobak <[email protected]>         Sun, 11 May 2014 11:53:02 
+0200
Parents:   398203b5a1dbfdf7f2d66aadf8df9e81958be2bd
Branches:  master

Link:       
http://git.php.net/?p=web/wiki.git;a=commitdiff;h=97eef0688fe51d2a89381c4f8b33d9bcefc1cd16

Log:
Improved revisions listing

Changed paths:
  M  dokuwiki/inc/html.php


Diff:
diff --git a/dokuwiki/inc/html.php b/dokuwiki/inc/html.php
index 55e9b03..6b6e687 100644
--- a/dokuwiki/inc/html.php
+++ b/dokuwiki/inc/html.php
@@ -558,13 +558,7 @@ function html_revisions($first=0, $media_id = false){
 
         if ($media_id) $form->addElement(form_makeOpenTag('div'));
 
-        if ($info['sum']) {
-            $form->addElement(form_makeOpenTag('span', array('class' => 
'sum')));
-            if (!$media_id) $form->addElement(' – ');
-            $form->addElement('<bdi>'.htmlspecialchars($info['sum']).'</bdi>');
-            $form->addElement(form_makeCloseTag('span'));
-        }
-
+        $form->addElement(' - ');
         $form->addElement(form_makeOpenTag('span', array('class' => 'user')));
         if($info['user']){
             $form->addElement('<bdi>'.editorinfo($info['user']).'</bdi>');
@@ -575,6 +569,18 @@ function html_revisions($first=0, $media_id = false){
             $form->addElement('<bdo dir="ltr">'.$info['ip'].'</bdo>');
         }
         $form->addElement(form_makeCloseTag('span'));
+        $form->addElement(': ');
+
+        if ($info['sum']) {
+            $form->addElement(form_makeOpenTag('span', array('class' => 
'revision_desc')));
+            $form->addElement('<bdi>'.htmlspecialchars($info['sum']).'</bdi>');
+            $form->addElement(form_makeCloseTag('span'));
+        }
+        else {
+            $form->addElement(form_makeOpenTag('span', array('class' => 
'revision_desc')));
+            $form->addElement('no changes description');
+            $form->addElement(form_makeCloseTag('span'));
+        }
 
         if ($media_id) $form->addElement(form_makeCloseTag('div'));


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to