Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using System.Globalization
- @using BLL.Constants
- @using BLL.Models.Home
- @using BLL.Models.Offer
- @using DAL
- @using DAL.Entities
- @using Knoema.Localization
- @{
- NewsEntity[] news = ((IEnumerable<NewsEntity>)ViewBag.News).ToArray();
- }
- <div class="bg-grey our-news">
- <div class="container">
- <div class="row text-center">
- <h2 class="h1">@R("Наши новости")</h2>
- </div>
- <div id="carousel-ourNews" class="carousel slide" data-ride="carousel">
- <div class="carousel-inner" role="listbox">
- <div class="row active item slider-last-offers">
- @{
- int i = 0;
- }
- @foreach(var n in news)
- {
- i++;
- <div class="col-md-3">
- <p class="plane-time-title">@n.CreatedOn</p>
- <div class="panel">
- @Html.ActionLink(" ", "ViewNews", "NewsManagement", new{urlPath=@n.Id}, new{@class="all"})
- <a href="" class="all news-link"></a>
- <div class="news-image">
- <img src="@n.ImageUrl" alt="" class="news-image">
- </div>
- <div class="news-description">
- <div class="title">@n.Title</div>
- <div class="text">@n.Preview</div>
- </div>
- </div>
- </div>
- @if(i==3) {
- i=0;
- </div>
- <div class="row active item slider-last-offers">
- }
- }
- </div>
- <!-- Controls -->
- <a class="left carousel-control" href="#carousel-ourNews" role="button" data-slide="prev">
- <span class="carousel-control-arrow left"></span>
- </a>
- <a class="right carousel-control" href="#carousel-ourNews" role="button" data-slide="next">
- <span class="carousel-control-arrow right"></span>
- </a>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement