Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
It works!
- Loading branch information
1 parent
5ace961
commit 4caa1e4
Showing
5 changed files
with
215 additions
and
23 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
body { | ||
font-family: Monaco, monospace; | ||
margin: 20px auto; | ||
max-width: 900px; | ||
min-width: 600px; | ||
width: 100%; } | ||
|
||
.submit-repo { | ||
margin-bottom: 1em; } | ||
.submit-repo label { | ||
font-size: 16px; } | ||
.submit-repo input[type=text] { | ||
border: 2px solid #4183C4; | ||
color: #444; | ||
font-size: 18px; | ||
padding: 0.4em; | ||
width: 480px; } |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
body { | ||
font-family: Monaco, monospace; | ||
margin: 20px auto; | ||
max-width: 900px; | ||
min-width: 600px; | ||
width: 100%; | ||
} | ||
|
||
header { | ||
|
||
} | ||
|
||
.submit-repo { | ||
margin-bottom: 1em; | ||
label { | ||
font-size: 16px; | ||
} | ||
input[type=text] { | ||
border: 2px solid #4183C4; | ||
color: #444; | ||
font-size: 18px; | ||
padding: 0.4em; | ||
width: 480px; | ||
} | ||
} |
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,20 +1,25 @@ | ||
<h1>TODO</h1> | ||
<form action="repo" method="get" accept-charset="utf-8" class="submit-repo"> | ||
|
||
<form action="repo" method="get" accept-charset="utf-8"> | ||
<label for="repo">github.com/</label><input type="text" name="repo" value="" id="repo" placeholder="rails/rails"/> | ||
<input type="submit" value="Find TODOs →"> | ||
|
||
<label for="repo_url">Repo</label><input type="text" name="repo_url" value="" id="repo_url" /> | ||
|
||
|
||
<p><input type="submit" value="Continue →"></p> | ||
</form> | ||
|
||
<section id="repo"> | ||
<%= params[:repo_url] %> | ||
<%# @process.inspect.to_s if @process %> | ||
</section> | ||
<% if @repo %> | ||
<section id="repo"> | ||
TODOs for: <a href="http://github.com/<%= @repo %>">http://github.com/<%= @repo %></a> | ||
</section> | ||
<% end %> | ||
|
||
<hr /> | ||
|
||
<section id="todos"> | ||
<%= @todos if @todos %> | ||
</section> | ||
<% if @todos %> | ||
<section id="todos"> | ||
<% @todos.each do |todo| %> | ||
<% todo.each_pair do |k, v| %> | ||
<% line_url = "http://github.com/#{@repo}/blob/master" + k.gsub("/Users/gareth/Code/hackdo/tmp/#{@tmp_folder}", "") + "#L#{v.first.line}" %> | ||
<p><a href="<%= line_url %>"><%= k.gsub("/Users/gareth/Code/hackdo/tmp/#{@tmp_folder}", "") %> [<%= v.first.line %>]</a> <%= v.first.tag.upcase %>: <%= v.first.text %></p> | ||
<% end %> | ||
<% end %> | ||
</section> | ||
<% end %> |
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