{% load seahub_tags i18n %}

watermark.load({
    {% if request.user.username %}
    watermark_txt: "{{site_name}} {{request.user.username|email2nickname|escapejs}}",
    {# used when view shared file #}
    {% elif shared_by %}
    watermark_txt: "{{site_name}} {{shared_by|email2nickname|escapejs}}",
    {% else %}
    watermark_txt: "{% trans "Anonymous User" %}",
    {% endif %}
    watermark_id: 'watermark-container',

    watermark_x:20,
    watermark_y:20,
    watermark_rows:0,
    watermark_cols:0,
    watermark_x_space:100,
    watermark_y_space:50,

    watermark_font:'Arial',

    watermark_color:'black',
    watermark_fontsize:'18px',

    watermark_alpha:0.04,
    watermark_width:150,
    watermark_height:100,
    watermark_angle:20
});
