anchor.diff:      </c:if>
     </tr>
   </table>
  +<c:if test="${not template.sessionAuthorized}">
  +<script type="text/javascript">
  +    $(document).ready(function($) {
  +        $("#tagFavNoth").click(function(event) {
  +            event.preventDefault();
  +            event.stopPropagation();
  +            $("#tagFavNoth").popover('show');
  +        });
  +        $("#tagFavNoth").popover({
  +            content: "Для добавления в избранное надо залогиниться!"
  +        });
  +    })
  +</script>
  +</c:if>
   
  +<c:if test="${template.sessionAuthorized}">
   <script type="text/javascript">
     function tag_filter(event) {
       event.preventDefault();
  
positive.code: 
        <a id="tagFavAdd" href="${tagFavUrl}" title="В избранное"><i class="icon-eye"></i></a>
    </c:if>
    <c:if test="${isShowUnFavoriteTagButton}">
        <c:url var="tagFavUrl" value="/user-filter"/>
  
        <a id="tagFavAdd" href="${tagFavUrl}" title="Удалить из избранного" class="selected"><i class="icon-eye"></i></a>
    </c:if>
      <br><span id="favsCount">${favsCount}</span>
    </div>
  
    Всего сообщений: ${counter}
  
negative.code:     $("#tagFavAdd").bind("click", tag_filter);
    });
  </script>
  </c:if>
  <jsp:include page="/WEB-INF/jsp/footer.jsp"/>
  