5 |
Recent Tags
6 | @if (Model == null || Model.Count <= 0)
7 | {
8 |
No tags
9 | }
10 | else
11 | {
12 | var tags = new StringBuilder();
13 | foreach (string tag in Model.Keys)
14 | {
15 | tags.AppendFormat("{0}{1}{2}", tags.Length > 0 ? " " : string.Empty, "t-", tag);
16 | }
17 |
18 |
19 | @{
20 | bool isFirstTag = true;
21 | foreach (string tag in Model.Keys)
22 | {
23 | if (!isFirstTag)
24 | {
25 |
26 | }
27 | isFirstTag = false;
28 | string title = string.Format("show questions tagged '{0}'", tag);
29 | @Html.ActionLink(tag, "Index", "Home", new {tag}, new {@class = "post-tag", title, rel = "tag"})
30 | x @Model[tag]
31 | }
32 | }
33 |
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/Code/RavenOverflow.Web/Views/Shared/_TagSearch.cshtml:
--------------------------------------------------------------------------------
1 |
2 |