starting a tagger component
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
@model Blog
|
||||
|
||||
@{
|
||||
ViewData["Title"]=Model.Title;
|
||||
}
|
||||
@ -21,6 +20,8 @@
|
||||
@Html.DisplayNameFor(model => model.DateCreated) :
|
||||
|
||||
@Html.DisplayFor(model => model.DateCreated)
|
||||
|
||||
@Component.Invoke("Tagger",Model)
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
30
Yavsc/Views/Shared/Components/Tagger/Default.cshtml
Normal file
30
Yavsc/Views/Shared/Components/Tagger/Default.cshtml
Normal file
@ -0,0 +1,30 @@
|
||||
@using Yavsc.Interfaces;
|
||||
@using System;
|
||||
@model ITaggable<long>
|
||||
|
||||
<div class="container">
|
||||
<environnement names="Development">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
<dl>
|
||||
<dt></dt>
|
||||
<dd> @ViewData["apictlr"]</dd>
|
||||
|
||||
<dt></dt>
|
||||
<dd>@ViewData["at"]</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="col-xs-11">
|
||||
<ul>
|
||||
@foreach (string tag in (string[]) ViewData["Tags"]) {
|
||||
<li>@tag</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</environnement>
|
||||
</div>
|
Reference in New Issue
Block a user