<commit_before>{#
## This file is part of Invenio.
## Copyright (C) 2012 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#}
{% from "_formhelpers.html" import render_field with context %}
{% from "accounts/widget.html" import display_widget %}
{% extends "page.html" %}
{% set title = _('Your Account') %}

{% block title %}
<div class="page-header">
  <h1>{{ title }}
  <small class="clearfix pull-right">
    <input placeholder="{{ _('Filter widgets') }}"
           type="text"
           name="widget"
           class="form-control"
           autofocus />
  </small>
  </h1>
</div>
{% endblock %}

{% block body %}

{% css "img/jquery-ui/themes/redmond/jquery-ui.css" %}
{% js "js/jquery-ui.min.js" %}

<div class="container">
  <div class="row">
   <div class="col-md-12">
    <ul id="widgets" class="list-unstyled">
      <li id="leftColumn" class="widgetColumn col-md-4">
        <ul id="widgetsLeft" class="connectedWidgets list-unstyled">
          {%- for p in plugins[0] -%}
            {{display_widget(p)}}
          {%- endfor -%}
        </ul>
      </li>
      <li id="middleColumn" class="widgetColumn col-md-4">
        <ul id="widgetsMiddle" class="connectedWidgets list-unstyled">
          {%- for p in plugins[1] -%}
            {{display_widget(p)}}
          {%- endfor -%}
        </ul>
      </li>
      <li id="rightColumn" class="widgetColumn col-md-4">
        <ul id="widgetsRight" class="connectedWidgets list-unstyled">
          {%- for p in plugins[2] -%}
            {{display_widget(p)}}
          {%- endfor -%}
        </ul>
      </li>
    </ul>
    </div>
  </div>

  <hr/>

  <div class="row">
    <div class="col-md-12" id="closed-list-bar">
      <h5>{{ _('Closed Widgets') }} <small>{{ _('can be re-opened by clicking on folloing button(s)') }}</small></h5>
      <ul id="closed-list">
      {%- for p in closed_plugins -%}
        <li id="{{ p.name}}" class="btn display-widget">{{p.title}} <i class="glyphicon glyphicon-plus"></i></li>
      {%- endfor -%}
      </ul>
    </div>
  </div>
</div>

<style>
#widgets li .thumbnail {
  background: white;
}

.widget {
  margin-bottom: 10px;
  margin-left: -20px;
}

.thumbnail {
  cursor: move;
}

.thumbnails li {
  list-style-type: none;
}

.connectedWidgets {
  min-height: 100px;
}

.placeholder {
  border: 2px dashed #999;
  margin-left: -20px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: block;
  visibility: visible!important;
  float: left;
}

.widgetColumn {
  visibility: visible!important;
  display: block!important;
}

#closed-list {
  margin: 0px;
}

#closed-list li {
  margin-right: 10px;
}
</style>

{% endblock %}

{% block javascript %}
<script>
  function saveWidgets() {<commit_msg>assets: fix some missing url_for("static")<commit_after>{#
## This file is part of Invenio.
## Copyright (C) 2012, 2014 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#}
{% from "_formhelpers.html" import render_field with context %}
{% from "accounts/widget.html" import display_widget %}
{% extends "page.html" %}
{% set title = _('Your Account') %}

{% block title %}
<div class="page-header">
  <h1>{{ title }}
  <small class="clearfix pull-right">
    <input placeholder="{{ _('Filter widgets') }}"
           type="text"
           name="widget"
           class="form-control"
           autofocus />
  </small>
  </h1>
</div>
{% endblock %}

{% block header %}
  {{ super() }}
  {%- css url_for("static", filename="js/jqueryui/jquery-ui.css") -%}
  {%- js url_for("static", filename="js/jqueryui/jquery-ui.js") -%}

<style>
#widgets li .thumbnail {
  background: white;
}

.widget {
  margin-bottom: 10px;
  margin-left: -20px;
}

.thumbnail {
  cursor: move;
}

.thumbnails li {
  list-style-type: none;
}

.connectedWidgets {
  min-height: 100px;
}

.placeholder {
  border: 2px dashed #999;
  margin-left: -20px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: block;
  visibility: visible!important;
  float: left;
}

.widgetColumn {
  visibility: visible!important;
  display: block!important;
}

#closed-list {
  margin: 0px;
}

#closed-list li {
  margin-right: 10px;
}
</style>
{% endblock %}

{% block body %}
<div class="container">
  <div class="row">
   <div class="col-md-12">
    <ul id="widgets" class="list-unstyled">
      <li id="leftColumn" class="widgetColumn col-md-4">
        <ul id="widgetsLeft" class="connectedWidgets list-unstyled">
          {%- for p in plugins[0] -%}
            {{display_widget(p)}}
          {%- endfor -%}
        </ul>
      </li>
      <li id="middleColumn" class="widgetColumn col-md-4">
        <ul id="widgetsMiddle" class="connectedWidgets list-unstyled">
          {%- for p in plugins[1] -%}
            {{display_widget(p)}}
          {%- endfor -%}
        </ul>
      </li>
      <li id="rightColumn" class="widgetColumn col-md-4">
        <ul id="widgetsRight" class="connectedWidgets list-unstyled">
          {%- for p in plugins[2] -%}
            {{display_widget(p)}}
          {%- endfor -%}
        </ul>
      </li>
    </ul>
    </div>
  </div>

  <hr/>

  <div class="row">
    <div class="col-md-12" id="closed-list-bar">
      <h5>{{ _('Closed Widgets') }} <small>{{ _('can be re-opened by clicking on folloing button(s)') }}</small></h5>
      <ul id="closed-list">
      {%- for p in closed_plugins -%}
        <li id="{{ p.name}}" class="btn display-widget">{{p.title}} <i class="glyphicon glyphicon-plus"></i></li>
      {%- endfor -%}
      </ul>
    </div>
  </div>
</div>
{% endblock %}

{% block javascript %}
<script>
  function saveWidgets() {
{'fraction_non_alphanumeric': 0.16746689946166157, 'fraction_numerical': 0.01571366215626364, 'mean_word_length': 2.916809116809117, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4919630', 'n_tokens_mistral': 2433, 'n_tokens_neox': 2267, 'n_words': 649}