37 lines
762 B
Plaintext
37 lines
762 B
Plaintext
@using Newtonsoft.Json.Linq;
|
|
@{ViewBag.Title = "Home Page";}
|
|
|
|
<form action="" method="get">
|
|
<label for="username-input">username:</label>
|
|
<input type="text" id="username-input" name="username" />
|
|
<input type="submit" name="submit" value="Submit" />
|
|
</form>
|
|
|
|
<h2>@ViewBag.Message</h2>
|
|
@if (ViewBag.HasQsVars)
|
|
{
|
|
<h3>Request Variables:</h3>
|
|
<ul>
|
|
@foreach (string key in ViewBag.QueryString)
|
|
{
|
|
<li>@key = @ViewBag.QueryString[key]</li>
|
|
}
|
|
</ul>
|
|
}
|
|
|
|
@if (null != ViewBag.Username)
|
|
{
|
|
<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>
|
|
} |