Skip to content
Snippets Groups Projects
Commit 059cc7fb authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'issue_169' into 'master'

[ui] Embed YouTube overview on frontpage (closes #169)



See merge request !174
parents 3cc6376e 8741f70f
No related branches found
No related tags found
1 merge request!174[ui] Embed YouTube overview on frontpage (closes #169)
Pipeline #
...@@ -2,42 +2,36 @@ ...@@ -2,42 +2,36 @@
{% comment %} {% comment %}
* Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/ * Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
* Contact: beat.support@idiap.ch * Contact: beat.support@idiap.ch
* *
* This file is part of the beat.web module of the BEAT platform. * This file is part of the beat.web module of the BEAT platform.
* *
* Commercial License Usage * Commercial License Usage
* Licensees holding valid commercial BEAT licenses may use this file in * Licensees holding valid commercial BEAT licenses may use this file in
* accordance with the terms contained in a written agreement between you * accordance with the terms contained in a written agreement between you
* and Idiap. For further information contact tto@idiap.ch * and Idiap. For further information contact tto@idiap.ch
* *
* Alternatively, this file may be used under the terms of the GNU Affero * Alternatively, this file may be used under the terms of the GNU Affero
* Public License version 3 as published by the Free Software and appearing * Public License version 3 as published by the Free Software and appearing
* in the file LICENSE.AGPL included in the packaging of this file. * in the file LICENSE.AGPL included in the packaging of this file.
* The BEAT platform is distributed in the hope that it will be useful, but * The BEAT platform is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. * or FITNESS FOR A PARTICULAR PURPOSE.
* *
* You should have received a copy of the GNU Affero Public License along * You should have received a copy of the GNU Affero Public License along
* with the BEAT platform. If not, see http://www.gnu.org/licenses/. * with the BEAT platform. If not, see http://www.gnu.org/licenses/.
{% endcomment %} {% endcomment %}
{% load toolchain_tags %}
{% load statistics_tags %} {% load statistics_tags %}
{% load fingerprint %} {% load fingerprint %}
{% block stylesheets %} {% block stylesheets %}
{{ block.super }} {{ block.super }}
<link rel="stylesheet" href="{% fingerprint "toolchains/css/viewer.css" %}" type="text/css" media="screen" />
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
{{ block.super }} {{ block.super }}
<script src="{% fingerprint "toolchains/js/common.js" %}" type="text/javascript" charset="utf-8"></script>
<script src="{% fingerprint "toolchains/js/viewer.js" %}" type="text/javascript" charset="utf-8"></script>
<script src="{% fingerprint "toolchains/js/models.js" %}" type="text/javascript" charset="utf-8"></script>
<script src="{% fingerprint "toolchains/js/utils.js" %}" type="text/javascript" charset="utf-8"></script>
{% endblock %} {% endblock %}
...@@ -62,11 +56,14 @@ ...@@ -62,11 +56,14 @@
</p> </p>
</div> </div>
</div> </div>
<div class="row">
<hr/>
</div>
<div class="row"> <div class="row">
<div class="col-sm-9"> <div class="col-sm-9">
{% random_toolchain as toolchain %} <div class="embed-responsive embed-responsive-16by9">
<h3>Example toolchain: <a href="{{ toolchain.get_absolute_url }}">{{ toolchain.fullname }}</a></h3> <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/2nPItQ5keM0?rel=0" allowfullscreen></iframe>
{% toolchain_viewer toolchain None "viewer" %} </div>
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<h3>Usage summary</h3> <h3>Usage summary</h3>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment