$(document).ready(function () {

    var prev_html = $('.user-menu .dropdown-toggle').html();
    var small_icon = false;

    $(window).resize(function () {
        if ($(window).width() < 400 && !small_icon) {
            small_icon = true;
            $('.user-menu .dropdown-toggle').html("<label>&#9776</label>");
            return;
        }
        if ($(window).width() > 400 && small_icon) {
            small_icon = false;
            $('.user-menu .dropdown-toggle').html(prev_html);
            return;
        }
    });

    $('.edit-pic').click(function () {
        $('.update-pic').show();
        $('.edit-pic').hide();
    });

    $("#startTour").click(function () {
        introJs().start();
    });

    $.notify.addStyle('custom', {
        html: "<div><span data-notify-text/></div>",
        classes: {
            base: {
              "border-radius": "5px",
              "background-color": "grey",
              "color": "white",
              "padding": "10px 40px",
              "font-size": "20px"
            },
            success: {
                "color": "#4efe00"
            },
            danger: {
                "color": "#f00"
            }
        }
    });

    $('[data-toggle="popover"]').popover({
        trigger:"hover",
        html: true,
        content: function() {
            var user = $(this).text();
            var tag = $(this).data('tag');
            var img = $(this).parent().parent().parent().find('img:first').attr('src');
            return '<div class="row">'
                  +'<div class="col-md-3"><img src="'+img+'" height="50"></div>'
                  +'<div class="col-md-9">'
                  +'<strong>'+user+'</strong>'
                  +'<span class="label label-default">'+tag+'</span>'
                  +'</div>'
                  +'</div>';
        }
    });
});

@@ -1648,17 +1648,33 @@
 %22col-md-
-9
+7 col-md-offset-2
 %22%3E'%0A    
@@ -1737,20 +1737,22 @@
      +'%3C
-span
+p%3E%3Cdiv
  class=%22
@@ -1781,20 +1781,23 @@
 +tag+'%3C/
-span
+div%3E%3C/p
 %3E'%0A     

Fix design of popover