parent
32e17c6754
commit
7ac24fb0e9
@ -1,37 +1,22 @@
|
||||
@using Newtonsoft.Json.Linq;
|
||||
@{ViewBag.Title = "Home Page";}
|
||||
|
||||
<form action="" method="get">
|
||||
<form id="user-timeline-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" />
|
||||
<input type="submit" name="submit" value="Show User Timeline" />
|
||||
</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>
|
||||
<div id="qsvars">
|
||||
<h3>Request Variables:</h3>
|
||||
@foreach (string key in ViewBag.QueryString)
|
||||
{
|
||||
<p class="qsvar">@key = @ViewBag.QueryString[key]</p>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
@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>
|
||||
}
|
||||
<div id="user-timeline"></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