anchor.diff:          text.innerHTML = "<p>Please shorten ["+md.substring(longLink+1,longLink+40)+"...]</p>"
           text.style.backgroundColor ="#FDC6CD";
           errorOccured = true
  +      }
  +      // check wether links used are in collection
  +
  +      if (!errorOccured) {
  +        //preview.style.backgroundColor="";
  +        text.style.backgroundColor ="";
  +        text.innerHTML = noTranslationText;
  +      }
  +
  +
  +    }
  +
  +    function generateGoogleTranslateLink(link,lang) {
  +      var googlelang = lang;
  +      if (lang === "JP") googlelang = "JA";
  +      var gtl = "https://translate.google.com/translate?sl=auto&tl="+googlelang+"&u="+link;
  +
  +
  +      var gtlMarkdown = "(automatic [translation](##link##))";
  +      if (googleTranslateText[lang]) gtlMarkdown = googleTranslateText[lang];
  +
  +
  +      gtlMarkdown = gtlMarkdown.replace("##link##",gtl);
  +
  +      var dragstartFunction = "dragstart(event,'"+gtlMarkdown+"');";
  +
  +      return '<a href="'+gtl+'" target="_blank" ondragstart="'+dragstartFunction+'" >'+lang+'</a>';
  +    }
  +
  +    function dragstart(event,text) {
  +      event.dataTransfer.setData("TEXT", text);
  +    }
  +    function onchangeCollection() {
  +      var clfield = document.getElementById("collection");
  +      var cl;
  +      if (clfield) cl = clfield.value;
  +      var linkArea = document.getElementById("linkArea");
  +
  +      // regexToken = /(((ftp|https?):\/\/)[\-\w@:%​​_\+.~#?!,&\/\/=]+)|((mailto:)?[_​​.\w-]+@([\w][\w\-]+\.)+[a-zA-Z]{2,3})/g;
  +      regexToken = /(https?:\/\/[^\[\] \n\r()]*)/g
  +      var linkList;
  +
  +      var result = "";
  +
  +
  +      while( (linkList = regexToken.exec(cl)) != null ) {
  +
  +        result += '<a href="'+linkList[0]+'" target="_blank" >'+linkList[0]+'</a>\n';
  +        leftLang=document.getElementById("left_lang").innerHTML;
  +        rightLang=document.getElementById("right_lang").innerHTML;
  +        result += " "+generateGoogleTranslateLink(linkList[0],leftLang);
  +
  +        if (rightLang !== "--" && rightLang !== "") {
  +          result += " "+generateGoogleTranslateLink(linkList[0],rightLang);
           }
  -      // check wether links used are in collection
  -
  -      if (!errorOccured) {
  -         //preview.style.backgroundColor="";
  -         text.style.backgroundColor ="";
  -         text.innerHTML = noTranslationText;
  +        result +="<br>\n";
  +
  +
  +      }
  +      result = '<p>'+result+'</p>';
  +      FitToContent("collection");
  +
  +
  +      if (linkArea) linkArea.innerHTML = result;
  +    }
  +
  +
  +    var myclick = function (id) {
  +      image = document.getElementById(id);
  +      src = image.src;
  +      src = "![("+id+")]("+src+")";
  +      clip(src);
  +      alert(id+ " flag is copied to clipboard");
  +    }
  +
  +    function ondragstartflag (event,id) {
  +      image = document.getElementById(id);
  +      src = image.src;
  +      src = "![(" + id + ")](" + src + ")";
  +      event.dataTransfer.setData("TEXT", src);
  +    }
  +    function onchangeComment() {
  +      FitToContent("comment");
  +    }
  +    function onChangeField(field) {
  +      return function () {
  +        FitToContent(field);
  +      }
  +    }
  +
  +    function FitToContent(id, maxHeight)
  +    {
  +      textfield = document.getElementById(id);
  +      if ( !textfield )
  +        return;
  +
  +
  +      textfield.style.height = textfield.style.minHeight;
  +      var adjustedHeight = textfield.clientHeight;
  +
  +
  +      if ( !maxHeight || maxHeight > adjustedHeight )
  +      {
  +        adjustedHeight = Math.max(textfield.scrollHeight, adjustedHeight);
  +        if ( maxHeight )
  +          adjustedHeight = Math.min(maxHeight, adjustedHeight);
  +
  +        if ( adjustedHeight > textfield.clientHeight ) {
  +
  +          textfield.style.height = adjustedHeight + "px";
  +
  +
           }
  -
  -
  -    }
  -
  -      function generateGoogleTranslateLink(link,lang) {
  -        var googlelang = lang;
  -        if (lang === "JP") googlelang = "JA";
  -        var gtl = "https://translate.google.com/translate?sl=auto&tl="+googlelang+"&u="+link;
  -
  -
  -        var gtlMarkdown = "(automatic [translation](##link##))";
  -        if (googleTranslateText[lang]) gtlMarkdown = googleTranslateText[lang];
  -
  -
  -        gtlMarkdown = gtlMarkdown.replace("##link##",gtl);
  -
  -        var dragstartFunction = "dragstart(event,'"+gtlMarkdown+"');";
  -
  -        return '<a href="'+gtl+'" target="_blank" ondragstart="'+dragstartFunction+'" >'+lang+'</a>';
  -      }
  -
  -      function dragstart(event,text) {
  -        event.dataTransfer.setData("TEXT", text);
  -      }
  -      function onchangeCollection() {
  -        var clfield = document.getElementById("collection");
  -        var cl;
  -        if (clfield) cl = clfield.value;
  -        var linkArea = document.getElementById("linkArea");
  -
  -       // regexToken = /(((ftp|https?):\/\/)[\-\w@:%​​_\+.~#?!,&\/\/=]+)|((mailto:)?[_​​.\w-]+@([\w][\w\-]+\.)+[a-zA-Z]{2,3})/g;
  -        regexToken = /(https?:\/\/[^\[\] \n\r()]*)/g
  -        var linkList;
  -
  -        var result = "";
  -
  -
  -        while( (linkList = regexToken.exec(cl)) != null ) {
  -
  -            result += '<a href="'+linkList[0]+'" target="_blank" >'+linkList[0]+'</a>\n';
  -            leftLang="!{params.left_lang}";
  -            rightLang="!{params.right_lang}";
  -            result += " "+generateGoogleTranslateLink(linkList[0],leftLang);
  -
  -            if (rightLang !== "--" && rightLang !== "") {
  -              result += " "+generateGoogleTranslateLink(linkList[0],rightLang);
  -            }
  -            result +="<br>\n";
  -
  -
  -        }
  -        result = '<p>'+result+'</p>';
  -        FitToContent("collection");
  -
  -
  -        if (linkArea) linkArea.innerHTML = result;
  -      }
  -
  -
  -      var myclick = function (id) {
  -        image = document.getElementById(id);
  -        src = image.src;
  -        src = "![("+id+")]("+src+")";
  -        clip(src);
  -        alert(id+ " flag is copied to clipboard");
  -      }
  -
  -      function ondragstartflag (event,id) {
  -        image = document.getElementById(id);
  -        src = image.src;
  -        src = "![(" + id + ")](" + src + ")";
  -        event.dataTransfer.setData("TEXT", src);
  -      }
  -      function onchangeComment() {
  -        FitToContent("comment");
  -      }
  -      function onChangeField(field) {
  -        return function () {
  -          FitToContent(field);
  -        }
  -      }
  -
  -      function FitToContent(id, maxHeight)
  -      {
  -         textfield = document.getElementById(id);
  -         if ( !textfield )
  -            return;
  -
  -
  -         textfield.style.height = textfield.style.minHeight;
  -         var adjustedHeight = textfield.clientHeight;
  -
  -
  -         if ( !maxHeight || maxHeight > adjustedHeight )
  -         {
  -            adjustedHeight = Math.max(textfield.scrollHeight, adjustedHeight);
  -            if ( maxHeight )
  -               adjustedHeight = Math.min(maxHeight, adjustedHeight);
  -
  -            if ( adjustedHeight > textfield.clientHeight ) {
  -
  -               textfield.style.height = adjustedHeight + "px";
  -
  -
  -              }
  -         }
  -      }
  -
  -
  -      function showRL(what) {
  -        $(".RL").addClass("hidden");
  -        $(".RL-"+what).removeClass("hidden");
  -      }
  -
  -      var placeholder = !{JSON.stringify(placeholder.categories)}
  -
  -
  -
  -
  -      function onchangeCategory() {
  -        var categoryEN = document.getElementById("categoryEN");
  -        if (!categoryEN) return;
  -        var c = categoryEN.value;
  -        if (placeholder[c]) {
  -           categoryDisplay.innerHTML = placeholder[c];
  -          }
  -        showHideUnpublishReason();
  -      }
  -      function showHideUnpublishReason() {
  -        var categoryEN = document.getElementById("categoryEN");
  -        if (!categoryEN) return;
  -        var c = document.getElementById("categoryEN").value;
  -        var b = document.getElementById("blog").value;
  -        var hidden = true;
  -        if (c==="--unpublished--") hidden = false;
  -        if (b==="Trash") hidden = false;
  -        var unpublishReasonRow = document.getElementById("unpublishReasonRow");
  -        if (hidden) unpublishReasonRow.classList.add("hidden");
  -          else unpublishReasonRow.classList.remove("hidden");
  -
  -      }
  +      }
  +    }
  +
  +
  +    function showRL(what) {
  +      $(".RL").addClass("hidden");
  +      $(".RL-"+what).removeClass("hidden");
  +    }
  +
  +    var placeholder = !{JSON.stringify(placeholder.categories)}
  +
  +
  +
  +
  +    function onchangeCategory() {
  +      var categoryEN = document.getElementById("categoryEN");
  +      if (!categoryEN) return;
  +      var c = categoryEN.value;
  +      if (placeholder[c]) {
  +        categoryDisplay.innerHTML = placeholder[c];
  +      }
  +      showHideUnpublishReason();
  +    }
  +    function showHideUnpublishReason() {
  +      var categoryEN = document.getElementById("categoryEN");
  +      if (!categoryEN) return;
  +      var c = document.getElementById("categoryEN").value;
  +      var b = document.getElementById("blog").value;
  +      var hidden = true;
  +      if (c==="--unpublished--") hidden = false;
  +      if (b==="Trash") hidden = false;
  +      var unpublishReasonRow = document.getElementById("unpublishReasonRow");
  +      if (hidden) unpublishReasonRow.classList.add("hidden");
  +      else unpublishReasonRow.classList.remove("hidden");
  +
  +    }
   
   
   
  
positive.code:             else
                p
                  :verbatim
                   !{layout.md_render(comment.text)}
  
      .row
        .col-md-12
  
negative.code:     table.table.table-condensed
        tbody
          - for vote ,i in votes
          tr
            td.col-md-1
              if params.edit
                span(class=vote.iconClass)
              else
                +voteButton(vote,article)
            td.col-md-1=vote.name
            td.col-md-5
              if article.votes && article.votes[vote.name]
                - labelclass = "osmbclabel-collect"
                each user in article.votes[vote.name]
                  - if (layout.user.OSMUser === user) labelclass = "osmbclabel-user"
                  span.label.small-margin(class=labelclass)=user
            td.col-md-5=vote.description
  
    .row
      if (article.commentList)
  