|
|
|
@ -2,12 +2,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
@{
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Home Page";
|
|
|
|
ViewData["Title"] = "Home Page";
|
|
|
|
|
|
|
|
int i=0;
|
|
|
|
|
|
|
|
bool multipleact = Model.Count()>1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@section subbanner {
|
|
|
|
@section subbanner {
|
|
|
|
|
|
|
|
|
|
|
|
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
|
|
|
|
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
|
|
|
|
|
|
|
|
@if (multipleact) {
|
|
|
|
|
|
|
|
|
|
|
|
<ol class="carousel-indicators">
|
|
|
|
<ol class="carousel-indicators">
|
|
|
|
@{
|
|
|
|
@{
|
|
|
|
int i=0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var act in Model) {
|
|
|
|
foreach (var act in Model) {
|
|
|
|
if (i==0) {
|
|
|
|
if (i==0) {
|
|
|
|
@ -18,14 +22,14 @@
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</ol>
|
|
|
|
</ol> }
|
|
|
|
<div class="carousel-inner" role="listbox">
|
|
|
|
<div class="carousel-inner" role="listbox">
|
|
|
|
@{
|
|
|
|
@{
|
|
|
|
|
|
|
|
string cls = "item active";
|
|
|
|
i=0;
|
|
|
|
i=0;
|
|
|
|
foreach (var act in Model) {
|
|
|
|
foreach (var act in Model) {
|
|
|
|
string cls = (i==0) ? "item active":"item";
|
|
|
|
|
|
|
|
<div class="@cls" style="background-image: url('@act.Photo'); background-repeat: no-repeat; ">
|
|
|
|
<div class="@cls" style="background-image: url('@act.Photo'); background-repeat: no-repeat; ">
|
|
|
|
<!-- <img src="@act.Photo" alt="@act.Name" class="img-responsive" /> -->
|
|
|
|
|
|
|
|
<div class="carousel-caption-s" >
|
|
|
|
<div class="carousel-caption-s" >
|
|
|
|
|
|
|
|
|
|
|
|
@if (act.Children.Count>0) {
|
|
|
|
@if (act.Children.Count>0) {
|
|
|
|
@ -50,9 +54,12 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
i++; }
|
|
|
|
i++;
|
|
|
|
|
|
|
|
cls = "item";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if (multipleact) {
|
|
|
|
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
|
|
|
|
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
|
|
|
|
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
|
|
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Précédent</span>
|
|
|
|
<span class="sr-only">Précédent</span>
|
|
|
|
@ -61,5 +68,6 @@
|
|
|
|
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
|
|
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Suivant</span>
|
|
|
|
<span class="sr-only">Suivant</span>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|