Changeset View
Changeset View
Standalone View
Standalone View
swh/web/ui/templates/origin.html
{% extends "layout.html" %} | {% extends "layout.html" %} | ||||
{% block title %}Origin{% endblock %} | {% block title %}Origin{% endblock %} | ||||
{% block content %} | {% block content %} | ||||
{% if message is not none %} | {% if message is not none %} | ||||
{{ message }} | {{ message }} | ||||
{% endif %} | {% endif %} | ||||
{% if origin is not none %} | {% if origin is not none %} | ||||
<script language="javascript" type="text/javascript" src="{{ url_for('static', filename='lib/jquery.js') }}"></script> | |||||
<script language="javascript" type="text/javascript" src="{{ url_for('static', filename='js/calendar.js') }}"></script> | |||||
<script language="javascript" type="text/javascript" src="{{ url_for('static', filename='lib/jquery.flot.js') }}"></script> | |||||
<script language="javascript" type="text/javascript" src="{{ url_for('static', filename='lib/jquery.flot.time.js') }}"></script> | |||||
<script language="javascript" type="text/javascript" src="{{ url_for('static', filename='lib/jquery.flot.selection.js') }}"></script> | |||||
ardumont: If i understood right your first comment, this is the one not packaged, am i right? | |||||
Not Done Inline ActionsYup. jbertran: Yup. | |||||
<script language="javascript" type="text/javascript" src="{{ url_for('static', filename='lib/jquery.flot.tooltip.min.js') }}"></script> | |||||
<div> Details on origin {{ origin_id }}: | <div> Details on origin {{ origin_id }}: | ||||
<div id="swh-calendar" style="height: 200px"> | |||||
<div id="cal-zoom-window" style="height: 60%"> | |||||
</div> | |||||
<div id="cal-static-window" style="height: 40%"> | |||||
</div> | |||||
</div> | |||||
<button id="cal-clear">Reset</button> | |||||
{% for key in ['type', 'lister', 'projet', 'url'] %} | {% for key in ['type', 'lister', 'projet', 'url'] %} | ||||
{% if origin[key] is not none %} | {% if origin[key] is not none %} | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-2">{{ key }}</div> | <div class="col-md-2">{{ key }}</div> | ||||
<div class="col-md-6">{{ origin[key] }}</div> | <div class="col-md-6">{{ origin[key] }}</div> | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
{% endfor %} | {% endfor %} | ||||
{% if 'decoding_failures' in content %} | {% if 'decoding_failures' in content %} | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-10">(some decoding errors)</div> | <div class="col-md-10">(some decoding errors)</div> | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
<script>$(function(){var cal = new Calendar('{{ browse_url }}', '{{ visit_url }}', {{ origin_id }}, $('#cal-zoom-window'), $('#cal-static-window'), $('#cal-clear'));});</script> | |||||
{% endif %} | {% endif %} | ||||
{% endblock %} | {% endblock %} |
If i understood right your first comment, this is the one not packaged, am i right?