Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
d5e49b72
Commit
d5e49b72
authored
Sep 07, 2016
by
Andreas Valder
Browse files
added featured section
parent
686a9bae
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/index.html
View file @
d5e49b72
...
...
@@ -30,15 +30,39 @@
</p>
</div>
</div>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h1
class=
"panel-title"
>
Featured
</h1>
</div>
<div
class=
"panel-body"
>
<h1
class=
"panel-title"
>
Collegium Musicum
</h1
class="panel-title"
>
<img
style=
"width:100%"
src=
"http://www.cm.rwth-aachen.de/typo3/typo3temp/pics/c1d685f56a.jpg"
>
{% if featured|length > 0 %}
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h1
class=
"panel-title"
>
Featured
</h1>
</div>
<div
class=
"panel-body"
>
<div
id=
"myCarousel"
class=
"carousel slide"
data-ride=
"carousel"
style=
"background-color: #EEE; min-height: 400px;"
>
<!-- Indicators -->
<ol
class=
"carousel-indicators"
>
{% for i in featured %}
<li
data-target=
"#myCarousel"
data-slide-to=
"0"
{%
if
loop.first
%}
class=
"active"
{%
endif
%}
></li>
{% endfor %}
</ol>
<div
class=
"carousel-inner"
role=
"listbox"
>
{% for i in featured %}
<div
class=
"item {% if loop.first %}active{% endif %}"
>
{{ i.text|safe }}
<div
class=
"carousel-caption"
><h1>
{{ i.title }}
</h1></div>
</div>
{% endfor %}
</div>
<a
class=
"left carousel-control"
href=
"#myCarousel"
role=
"button"
data-slide=
"prev"
>
<span
class=
"glyphicon glyphicon-chevron-left"
aria-hidden=
"true"
></span>
<span
class=
"sr-only"
>
Previous
</span>
</a>
<a
class=
"right carousel-control"
href=
"#myCarousel"
role=
"button"
data-slide=
"next"
>
<span
class=
"glyphicon glyphicon-chevron-right"
aria-hidden=
"true"
></span>
<span
class=
"sr-only"
>
Next
</span>
</a>
</div>
</div>
</div>
</div>
{% endif %}
</div>
<div
class=
"col-md-6"
>
<div
class=
"panel panel-default"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment