location = document.referrer;
                }
            }
            else {
            }

        });


    }


</script>
<div class="btn-group">

    {% if kwd['edit'] or userinfo.user_name=='admin' %}

    <a href="/{{kwd['router']}}/_edit/{{ kwd['uid']  }}" class="btn btn-xs btn-warning">
        <span class="glyphicon glyphicon-pencil"></span>
        {{ _('Edit') }}
    </a>


    {% else %}

    <a href="/{{ 'wiki' if kwd['router'] == 'wiki' else 'meta' }}_man/edit/{{kwd['uid'] }}"
       class=