@using GBLab.Common.Expand;
@using System.Text;
@{
    var top10data = ViewData["top10data"] as List<GBLab.Entities.T_CmsImg>;
    StringBuilder sb = new StringBuilder();
    int count = 0;
}

<div class="container-right-head bs-info">最新内容</div>
<div class="container-right-info col-xs-12 col-md-12">
    @{
        sb.Clear();
        count = 0;
        if (top10data != null)
        {
            foreach (var item in top10data)
            {
                count++;
                sb.AppendFormat(@"
<div class='col-xs-12 col-sm-6 col-md-12 {2}'>
<a href='{0}'>{1}</a>
</div>"
        , "/CmsImg/" + item.F_TypeId.ToString() + "/" + item.F_Id.ToString() + ".html"
        , item.F_Name
        , count == top10data.Count ? "endline" : ""
        );
            }
        }
    }
    @Html.Raw(sb.ToString())
</div>