@using Orchard.DisplayManagement.Shapes
@using Orchard.Layouts.Helpers
@using Orchard.Layouts.Elements

@{
    var element = (Column) Model.Element;
    var columnSpan = element.Width;
    var columnOffset = element.Offset;
    var columnOffsetCss = columnOffset > 0 ? "col-md-offset-" + columnOffset : default(string);
    var tagBuilder = TagBuilderExtensions.AddCommonElementAttributes(new OrchardTagBuilder("div"), Model);
    
    tagBuilder.AddCssClass(String.Concat("col-md-", columnSpan));
    tagBuilder.AddCssClass(columnOffsetCss);
}

@tagBuilder.StartElement
    @DisplayChildren(Model)
@tagBuilder.EndElement