parent
32e17c6754
commit
7ac24fb0e9
@ -1,37 +1,22 @@
|
|||||||
@using Newtonsoft.Json.Linq;
|
@using Newtonsoft.Json.Linq;
|
||||||
@{ViewBag.Title = "Home Page";}
|
@{ViewBag.Title = "Home Page";}
|
||||||
|
|
||||||
<form action="" method="get">
|
<form id="user-timeline-form" action="" method="get">
|
||||||
<label for="username-input">username:</label>
|
<label for="username-input">username:</label>
|
||||||
<input type="text" id="username-input" name="username" />
|
<input type="text" id="username-input" name="username" />
|
||||||
<input type="submit" name="submit" value="Submit" />
|
<input type="submit" name="submit" value="Show User Timeline" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h2>@ViewBag.Message</h2>
|
<h2>@ViewBag.Message</h2>
|
||||||
@if (ViewBag.HasQsVars)
|
@if (ViewBag.HasQsVars)
|
||||||
{
|
{
|
||||||
<h3>Request Variables:</h3>
|
<div id="qsvars">
|
||||||
<ul>
|
<h3>Request Variables:</h3>
|
||||||
@foreach (string key in ViewBag.QueryString)
|
@foreach (string key in ViewBag.QueryString)
|
||||||
{
|
{
|
||||||
<li>@key = @ViewBag.QueryString[key]</li>
|
<p class="qsvar">@key = @ViewBag.QueryString[key]</p>
|
||||||
}
|
}
|
||||||
</ul>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (null != ViewBag.Username)
|
<div id="user-timeline"></div>
|
||||||
{
|
|
||||||
<div id="user-timeline">
|
|
||||||
<h4>user timeline for @ViewBag.Username</h4>
|
|
||||||
|
|
||||||
|
|
||||||
<ul id="timeline-entries">
|
|
||||||
@foreach (JObject entry in ViewBag.UserTimeline)
|
|
||||||
{
|
|
||||||
<li class="timeline-entry">
|
|
||||||
@entry["text"]
|
|
||||||
</li>
|
|
||||||
}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
}
|
|
@ -0,0 +1,19 @@
|
|||||||
|
@using Newtonsoft.Json.Linq;
|
||||||
|
@{
|
||||||
|
Layout = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@if (null != ViewBag.Username)
|
||||||
|
{
|
||||||
|
<div id="user-timeline-inner">
|
||||||
|
<h4>user timeline for @ViewBag.Username</h4>
|
||||||
|
<ul id="timeline-entries">
|
||||||
|
@foreach (JObject entry in ViewBag.UserTimeline)
|
||||||
|
{
|
||||||
|
<li class="timeline-entry">
|
||||||
|
@entry["text"]
|
||||||
|
</li>
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
}
|
Loading…
Reference in new issue