You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by me...@apache.org on 2016/12/17 12:34:45 UTC

[1/3] jspwiki git commit: JSPWIKI-1037

Repository: jspwiki
Updated Branches:
  refs/heads/JSPWIKI-1035 d5b597e81 -> c40443601


JSPWIKI-1037

IE display fixed (flexbox hack)


Project: http://git-wip-us.apache.org/repos/asf/jspwiki/repo
Commit: http://git-wip-us.apache.org/repos/asf/jspwiki/commit/4e7810ca
Tree: http://git-wip-us.apache.org/repos/asf/jspwiki/tree/4e7810ca
Diff: http://git-wip-us.apache.org/repos/asf/jspwiki/diff/4e7810ca

Branch: refs/heads/JSPWIKI-1035
Commit: 4e7810ca81e2c9ee2b420895c902a9a9e21c6b40
Parents: 1ebca68
Author: brushed <di...@gmail.com>
Authored: Tue Dec 13 21:53:24 2016 +0100
Committer: brushed <di...@gmail.com>
Committed: Tue Dec 13 21:53:24 2016 +0100

----------------------------------------------------------------------
 ChangeLog                                                |  9 +++++++++
 jspwiki-war/src/main/java/org/apache/wiki/Release.java   |  2 +-
 .../src/main/styles/haddock/default/Category.less        |  4 ++--
 .../src/main/styles/haddock/default/Template.View.less   | 11 ++++++++---
 4 files changed, 20 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jspwiki/blob/4e7810ca/ChangeLog
----------------------------------------------------------------------
diff --git a/ChangeLog b/ChangeLog
index 94ef8f7..1c16582 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2016-12-13  Dirk Frederickx (brushed AT apache DOT org)
+
+       * 2.10.3-svn-18
+
+       * [JSPWIKI-1037] UI will not display with IE 9 or IE10.
+          Issue with Flexbox implementation in IE.  (also applies to IE11)
+
+       * Small style update on %%categories dropdown
+
 2016-12-11  Dirk Frederickx (brushed AT apache DOT org)
 
        * 2.10.3-svn-17

http://git-wip-us.apache.org/repos/asf/jspwiki/blob/4e7810ca/jspwiki-war/src/main/java/org/apache/wiki/Release.java
----------------------------------------------------------------------
diff --git a/jspwiki-war/src/main/java/org/apache/wiki/Release.java b/jspwiki-war/src/main/java/org/apache/wiki/Release.java
index 0b026e5..25f3842 100644
--- a/jspwiki-war/src/main/java/org/apache/wiki/Release.java
+++ b/jspwiki-war/src/main/java/org/apache/wiki/Release.java
@@ -72,7 +72,7 @@ public final class Release {
      *  <p>
      *  If the build identifier is empty, it is not added.
      */
-    public static final String     BUILD         = "17";
+    public static final String     BUILD         = "18";
 
     /**
      *  This is the generic version string you should use when printing out the version.  It is of

http://git-wip-us.apache.org/repos/asf/jspwiki/blob/4e7810ca/jspwiki-war/src/main/styles/haddock/default/Category.less
----------------------------------------------------------------------
diff --git a/jspwiki-war/src/main/styles/haddock/default/Category.less b/jspwiki-war/src/main/styles/haddock/default/Category.less
index ffaadbf..2496bfe 100644
--- a/jspwiki-war/src/main/styles/haddock/default/Category.less
+++ b/jspwiki-war/src/main/styles/haddock/default/Category.less
@@ -47,7 +47,7 @@ DOM structure after:
     (end)
 */
 .category-link {
-    border-bottom:2px solid @wiki-category-link-color;
+    border-bottom:3px solid @wiki-category-link-color;
     &:hover, &:focus { text-decoration:none; }
 }
 
@@ -119,7 +119,7 @@ Style: Popup
     margin-top:3px;  //slightly move popup down with 3px under the category-link
 
     //FIXME: remove this from AJAXCategory.jsp
-    .categoryTitle { .hide; }
+    .categoryTitle, br { .hide; }
 
 }
 

http://git-wip-us.apache.org/repos/asf/jspwiki/blob/4e7810ca/jspwiki-war/src/main/styles/haddock/default/Template.View.less
----------------------------------------------------------------------
diff --git a/jspwiki-war/src/main/styles/haddock/default/Template.View.less b/jspwiki-war/src/main/styles/haddock/default/Template.View.less
index 89c7f8f..4709eb7 100644
--- a/jspwiki-war/src/main/styles/haddock/default/Template.View.less
+++ b/jspwiki-war/src/main/styles/haddock/default/Template.View.less
@@ -38,8 +38,6 @@ DOM Structure:
 (end)
 */
 
-
-
 /*
 Section: Title box
     The title box is an optional alert box at the top of the page, to put
@@ -79,7 +77,7 @@ DOM structure:
 
 		    ul.dropdown-menu.pull-right[data-hover-parent="searchbox"]
 		        li.dropdown-header
-              		button#searchSubmit.btn[type="submit"] For full search, hit enter...
+                    button#searchSubmit.btn[type="submit"] For full search, hit enter...
 		        li.findpages ...create & clone buttons
 		        li.findpages ...other search results
 		        li.divider
@@ -222,6 +220,13 @@ even when there\u2019s not enough content to fill the page.
 Credits: https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
 */
 
+body.can-flex {
+  //hack for IE-bug :  see https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
+  display: flex;
+  min-height: 100vh;
+  flex-flow: column;
+}
+
 body.can-flex > .container-fluid,
 body.can-flex > .container {
   display: -webkit-box;


[3/3] jspwiki git commit: Merge branch 'master' into JSPWIKI-1035

Posted by me...@apache.org.
Merge branch 'master' into JSPWIKI-1035


Project: http://git-wip-us.apache.org/repos/asf/jspwiki/repo
Commit: http://git-wip-us.apache.org/repos/asf/jspwiki/commit/c4044360
Tree: http://git-wip-us.apache.org/repos/asf/jspwiki/tree/c4044360
Diff: http://git-wip-us.apache.org/repos/asf/jspwiki/diff/c4044360

Branch: refs/heads/JSPWIKI-1035
Commit: c40443601ba67e8bf5d203b9fea2c7b88c682c04
Parents: d5b597e 014dc67
Author: Harry Metske <ha...@gmail.com>
Authored: Sat Dec 17 13:34:13 2016 +0100
Committer: Harry Metske <ha...@gmail.com>
Committed: Sat Dec 17 13:34:13 2016 +0100

----------------------------------------------------------------------
 ChangeLog                                       | 15 +++++
 .../src/main/java/org/apache/wiki/Release.java  |  2 +-
 .../main/java/org/apache/wiki/plugin/Image.java | 36 +++++++-----
 .../java/org/apache/wiki/util/XhtmlUtil.java    | 60 ++++++++++----------
 .../main/styles/haddock/default/Category.less   |  4 +-
 .../styles/haddock/default/Template.View.less   | 11 +++-
 .../main/styles/haddock/default/variables.less  |  2 +-
 7 files changed, 78 insertions(+), 52 deletions(-)
----------------------------------------------------------------------



[2/3] jspwiki git commit: JSPWIKI-1032: IMAGE html rendering improvs

Posted by me...@apache.org.
JSPWIKI-1032: IMAGE html rendering improvs


Project: http://git-wip-us.apache.org/repos/asf/jspwiki/repo
Commit: http://git-wip-us.apache.org/repos/asf/jspwiki/commit/014dc670
Tree: http://git-wip-us.apache.org/repos/asf/jspwiki/tree/014dc670
Diff: http://git-wip-us.apache.org/repos/asf/jspwiki/diff/014dc670

Branch: refs/heads/JSPWIKI-1035
Commit: 014dc670790bc3c1e4b5d306efa2b75be2426161
Parents: 4e7810c
Author: brushed <di...@gmail.com>
Authored: Tue Dec 13 22:21:13 2016 +0100
Committer: brushed <di...@gmail.com>
Committed: Tue Dec 13 22:21:13 2016 +0100

----------------------------------------------------------------------
 ChangeLog                                       |  6 ++
 .../src/main/java/org/apache/wiki/Release.java  |  2 +-
 .../main/java/org/apache/wiki/plugin/Image.java | 36 +++++++-----
 .../java/org/apache/wiki/util/XhtmlUtil.java    | 60 ++++++++++----------
 .../main/styles/haddock/default/variables.less  |  2 +-
 5 files changed, 59 insertions(+), 47 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jspwiki/blob/014dc670/ChangeLog
----------------------------------------------------------------------
diff --git a/ChangeLog b/ChangeLog
index 1c16582..6b998e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2016-12-13  Dirk Frederickx (brushed AT apache DOT org)
 
+       * 2.10.3-svn-19
+
+       * JSPWIKI-1032 : Use image "src" attribute instead of "href"
+
+2016-12-13  Dirk Frederickx (brushed AT apache DOT org)
+
        * 2.10.3-svn-18
 
        * [JSPWIKI-1037] UI will not display with IE 9 or IE10.

http://git-wip-us.apache.org/repos/asf/jspwiki/blob/014dc670/jspwiki-war/src/main/java/org/apache/wiki/Release.java
----------------------------------------------------------------------
diff --git a/jspwiki-war/src/main/java/org/apache/wiki/Release.java b/jspwiki-war/src/main/java/org/apache/wiki/Release.java
index 25f3842..5b3584d 100644
--- a/jspwiki-war/src/main/java/org/apache/wiki/Release.java
+++ b/jspwiki-war/src/main/java/org/apache/wiki/Release.java
@@ -72,7 +72,7 @@ public final class Release {
      *  <p>
      *  If the build identifier is empty, it is not added.
      */
-    public static final String     BUILD         = "18";
+    public static final String     BUILD         = "19";
 
     /**
      *  This is the generic version string you should use when printing out the version.  It is of

http://git-wip-us.apache.org/repos/asf/jspwiki/blob/014dc670/jspwiki-war/src/main/java/org/apache/wiki/plugin/Image.java
----------------------------------------------------------------------
diff --git a/jspwiki-war/src/main/java/org/apache/wiki/plugin/Image.java b/jspwiki-war/src/main/java/org/apache/wiki/plugin/Image.java
index b6dc0be..5ee799a 100644
--- a/jspwiki-war/src/main/java/org/apache/wiki/plugin/Image.java
+++ b/jspwiki-war/src/main/java/org/apache/wiki/plugin/Image.java
@@ -1,4 +1,4 @@
-/* 
+/*
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
@@ -14,7 +14,7 @@
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
-    under the License.  
+    under the License.
  */
 package org.apache.wiki.plugin;
 
@@ -46,8 +46,9 @@ import org.apache.wiki.util.TextUtil;
  *  <li><b>style</b> - the style attribute of the image</li>
  *  <li><b>class</b> - the associated class for the image</li>
  *  <li><b>border</b> - the border for the image</li>
+ *  <li><b>title</b> - the title for the image, can be presented as a tooltip to the user</li>
  *  </ul>
- *  
+ *
  *  @since 2.1.4.
  */
 // FIXME: It is not yet possible to do wiki internal links.  In order to
@@ -79,6 +80,8 @@ public class Image
     //    public static final String PARAM_MAP      = "map";
     /** The parameter name for setting the border.  Value is <tt>{@value}</tt>. */
     public static final String PARAM_BORDER   = "border";
+    /** The parameter name for setting the title.  Value is <tt>{@value}</tt>. */
+    public static final String PARAM_TITLE   = "title";
 
     /**
      *  This method is used to clean away things like quotation marks which
@@ -108,6 +111,7 @@ public class Image
         String cssclass= getCleanParameter( params, PARAM_CLASS );
         // String map     = getCleanParameter( params, PARAM_MAP );
         String border  = getCleanParameter( params, PARAM_BORDER );
+        String title   = getCleanParameter( params, PARAM_TITLE );
 
         if( src == null )
         {
@@ -141,42 +145,44 @@ public class Image
         result.append( "<table border=\"0\" class=\""+cssclass+"\"" );
         //if( align != null ) result.append(" align=\""+align+"\"");
         //if( style != null ) result.append(" style=\""+style+"\"");
-        
+
         //
         //  Do some magic to make sure centering also work on FireFox
         //
-        if( style != null ) 
+        if( style != null )
         {
             result.append(" style=\""+style);
 
             // Make sure that we add a ";" to the end of the style string
             if( result.charAt( result.length()-1 ) != ';' ) result.append(";");
-                
-            if( align != null && align.equals("center") ) 
+
+            if( align != null && align.equals("center") )
             {
                 result.append(" margin-left: auto; margin-right: auto;");
             }
-                
+
             result.append("\"");
         }
         else
         {
             if( align != null && align.equals("center") ) result.append(" style=\"margin-left: auto; margin-right: auto;\"");
         }
-        
+
+        if( title != null ) result.append(" title=\""+title+"\"");
+
         if( align != null && !(align.equals("center")) ) result.append(" align=\""+align+"\"");
-        
+
         result.append( ">\n" );
 
-        if( caption != null ) 
+        if( caption != null )
         {
             result.append("<caption align=bottom>"+TextUtil.replaceEntities(caption)+"</caption>\n");
         }
 
 
         result.append( "<tr><td>" );
-       
-        if( link != null ) 
+
+        if( link != null )
         {
             result.append("<a href=\""+link+"\"");
             if( target != null )
@@ -187,7 +193,7 @@ public class Image
         }
 
         result.append( "<img src=\""+src+"\"" );
-       
+
         if( ht != null )     result.append(" height=\""+ht+"\"");
         if( wt != null )     result.append(" width=\""+wt+"\"");
         if( alt != null )    result.append(" alt=\""+alt+"\"");
@@ -211,7 +217,7 @@ public class Image
                 || s.equals("_top") )
         {
             return true;
-        } 
+        }
         else if( s.length() > 0 ) // check [a-zA-z]
         {
             char c = s.charAt(0);

http://git-wip-us.apache.org/repos/asf/jspwiki/blob/014dc670/jspwiki-war/src/main/java/org/apache/wiki/util/XhtmlUtil.java
----------------------------------------------------------------------
diff --git a/jspwiki-war/src/main/java/org/apache/wiki/util/XhtmlUtil.java b/jspwiki-war/src/main/java/org/apache/wiki/util/XhtmlUtil.java
index a44acba..d8e96cf 100644
--- a/jspwiki-war/src/main/java/org/apache/wiki/util/XhtmlUtil.java
+++ b/jspwiki-war/src/main/java/org/apache/wiki/util/XhtmlUtil.java
@@ -1,4 +1,4 @@
-/* 
+/*
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
@@ -14,7 +14,7 @@
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
-    under the License.  
+    under the License.
  */
 
 package org.apache.wiki.util;
@@ -30,7 +30,7 @@ import org.jdom2.output.XMLOutputter;
  *  <p>
  *  This uses JDOM2 as its backing implementation.
  *  </p>
- *  
+ *
  *  <h3>Example</h3>
  *  <p>
  *  To generate a single element, an Element with PCDATA content, and then
@@ -52,26 +52,26 @@ import org.jdom2.output.XMLOutputter;
  * @since 2.10
  */
 public final class XhtmlUtil {
-	
+
     private XhtmlUtil() {}
-    
+
     /** to print <td></td> instead of <td /> */
     public static final Format EXPAND_EMPTY_NODES = Format.getCompactFormat().setExpandEmptyElements( true );
-    
+
     /**
      *  Serializes the Element to a String using a compact serialization format.
-     *  
+     *
      * @param element  the element to serialize.
      * @return the serialized Element.
      */
-    public static String serialize( Element element ) { 
+    public static String serialize( Element element ) {
         return serialize( element, false );
     }
 
     /**
      *  Serializes the Element to a String. If <tt>pretty</tt> is true,
      *  uses a pretty whitespace format, otherwise a compact format.
-     *  
+     *
      * @param element  the element to serialize.
      * @param pretty   if true, use a pretty whitespace format.
      * @return the serialized Element.
@@ -82,7 +82,7 @@ public final class XhtmlUtil {
 
     /**
      *  Serializes the Element to a String. Allows to use a custom <tt>format</tt>.
-     *  
+     *
      * @param element  the element to serialize.
      * @param format   custom <tt>format</tt> used to serialize the Element.
      * @return the serialized Element.
@@ -91,10 +91,10 @@ public final class XhtmlUtil {
         XMLOutputter out = new XMLOutputter( format );
         return out.outputString( element );
     }
-    
+
     /**
      *  Return an Element with an element type name matching the parameter.
-     *  
+     *
      * @param element  the XHTML element type.
      * @return a JDOM2 Element.
      */
@@ -105,7 +105,7 @@ public final class XhtmlUtil {
     /**
      *  Return an Element with an element type name matching the parameter,
      *  and optional PCDATA (parsed character data, a String) content.
-     *  
+     *
      * @param element  the XHTML element type.
      * @param content  the optional PCDATA content.
      * @return a JDOM2 Element.
@@ -120,7 +120,7 @@ public final class XhtmlUtil {
 
     /**
      *  Return an XHTML link with a required 'href' attribute value and optional link (PCDATA) content.
-     *  
+     *
      * @param href     the required 'href' value.
      * @param content  the optional link (PCDATA) content.
      * @return a JDOM2 Element.
@@ -131,10 +131,10 @@ public final class XhtmlUtil {
         }
         return fLink(href,content,null);
     }
-    
+
     /**
      *  Return an XHTML link target with a required 'id' attribute value.
-     *  
+     *
      * @param id    the required 'id' link target value.
      * @return a JDOM2 Element.
      */
@@ -144,11 +144,11 @@ public final class XhtmlUtil {
         }
         return fLink( null, content, id );
     }
-    
+
     /**
      *  Return an XHTML link with an optional 'href' attribute, optional
      *  link content, and optional 'id' link target value.
-     *  
+     *
      * @param href     the optional 'href' value.
      * @param content  the optional link (PCDATA) content.
      * @param id       the optional 'id' link target value.
@@ -158,20 +158,20 @@ public final class XhtmlUtil {
         Element a = element( XHTML.a );
         if( href != null ) {
             a.setAttribute( XHTML.ATTR_href, href );
-        }        
+        }
         if( content != null ) {
             a.addContent( content );
         }
         if( id != null ) {
-            a.setAttribute( XHTML.ATTR_id, id );   
+            a.setAttribute( XHTML.ATTR_id, id );
         }
         return a;
     }
-    
+
     /**
      *  Return an XHTML <tt>img</tt> element with an required 'src' attribute
      *  and optional 'alt' alternative text value.
-     *  
+     *
      * @param src      the required 'src' value.
      * @param alt      the optional 'alt' alternative text value.
      * @return a JDOM2 Element.
@@ -181,16 +181,16 @@ public final class XhtmlUtil {
         if( src == null ) {
             throw new IllegalArgumentException( "missing 'src' attribute value." );
         }
-        img.setAttribute( XHTML.ATTR_href, src );
+        img.setAttribute( XHTML.ATTR_src, src );
         if( alt != null ) {
-            img.setAttribute( XHTML.ATTR_alt, alt );   
+            img.setAttribute( XHTML.ATTR_alt, alt );
         }
         return img;
     }
-    
+
     /**
      *  Return an XHTML form <tt>input</tt> element with optional 'type', 'name' and 'value' attributes.
-     *  
+     *
      * @param type   the optional 'type' value.
      * @param name   the optional 'name' value.
      * @param value  the optional 'value' value.
@@ -202,19 +202,19 @@ public final class XhtmlUtil {
             input.setAttribute( XHTML.ATTR_type, type );
         }
         if( name != null ) {
-            input.setAttribute( XHTML.ATTR_name, name );   
+            input.setAttribute( XHTML.ATTR_name, name );
         }
         if( value != null ) {
-            input.setAttribute( XHTML.ATTR_value, value );   
+            input.setAttribute( XHTML.ATTR_value, value );
         }
         return input;
     }
-    
+
     public static void setClass( Element element, String classValue ) {
         if( classValue == null ) {
             throw new IllegalArgumentException( "missing 'class' attribute value." );
         }
         element.setAttribute( XHTML.ATTR_class, classValue );
     }
-    
+
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jspwiki/blob/014dc670/jspwiki-war/src/main/styles/haddock/default/variables.less
----------------------------------------------------------------------
diff --git a/jspwiki-war/src/main/styles/haddock/default/variables.less b/jspwiki-war/src/main/styles/haddock/default/variables.less
index cd6c123..a76bdea 100644
--- a/jspwiki-war/src/main/styles/haddock/default/variables.less
+++ b/jspwiki-war/src/main/styles/haddock/default/variables.less
@@ -161,7 +161,7 @@ images/feather-small.png   wxh  162x286
 @carousel-progress-size:  2px;
 
 // Category
-@wiki-category-link-color: #545454;
+@wiki-category-link-color: @state-info-bg; //#545454;
 
 //Editor
 @wiki-editor-bg : @white;