Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
3,546 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
<h1>Assign a follow up to a Tweet</h1> | ||
<h2>Tweet<h2> | ||
<ul> | ||
<li>author: ${tweet.author} | ||
<li>body: ${tweet.body} | ||
</ul> | ||
<html> | ||
<head> | ||
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet"/> | ||
</head> | ||
|
||
<form method="post" action="/tweets/${tweet.id}/followUp"> | ||
<select name="userId"> | ||
#{list users, as:'user'} | ||
<option value="${user.id}">${user.name}</option> | ||
#{/list} | ||
</select> | ||
<input type="submit"/> | ||
</form> | ||
<body> | ||
<div class="container"> | ||
<div class="page-header"> | ||
<h1>Assign a follow up</h1> | ||
</div> | ||
</div> | ||
|
||
<div class="container"> | ||
<dl> | ||
<dt>author</dt> | ||
<dd>${tweet.author}</dd> | ||
<dt>body</dt> | ||
<dd>${tweet.body}</dd> | ||
</dl> | ||
|
||
<form method="post" action="/tweets/${tweet.id}/followUp" class="well form-inline"> | ||
<select name="userId"> | ||
#{list users, as:'user'} | ||
<option value="${user.id}">${user.name}</option> | ||
#{/list} | ||
</select> | ||
<button type="submit" class="btn">Assign Tweet</button> | ||
</form> | ||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
<html> | ||
<h1>Tweets:</h1> | ||
<table> | ||
<tr><th>id</th><th>author</th><th>body</th><th>owner</th></tr> | ||
#{list tweets, as:'tweet'} | ||
<tr><td><a href="/tweets/${tweet.id}/followUp">${tweet.id}</a></td><td>${tweet.author}</td><td>${tweet.body}</td><td>#{if tweet.user != null}${tweet.user.name}#{/if}</td></tr> | ||
#{/list} | ||
</table> | ||
<head> | ||
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet"/> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="container"> | ||
<div class="page-header"> | ||
<h1>Tweets</h1> | ||
</div> | ||
|
||
<table class="table table-bordered table-striped"> | ||
<tr><th>id</th><th>author</th><th>body</th><th>owner</th></tr> | ||
#{list tweets, as:'tweet'} | ||
<tr><td><a href="/tweets/${tweet.id}/followUp">${tweet.id}</a></td><td>${tweet.author}</td><td>${tweet.body}</td><td>#{if tweet.user != null}${tweet.user.name}#{/if}</td></tr> | ||
#{/list} | ||
</table> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.