Skip to content

Commit

Permalink
add twitter bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimone committed Feb 24, 2012
1 parent 2515e49 commit 488a1b7
Show file tree
Hide file tree
Showing 3 changed files with 3,546 additions and 21 deletions.
45 changes: 31 additions & 14 deletions app/views/TweetController/followUpForm.html
@@ -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>
26 changes: 19 additions & 7 deletions app/views/TweetController/index.html
@@ -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>

0 comments on commit 488a1b7

Please sign in to comment.