Skip to content

Commit

Permalink
added readme and none text if no company or email is sepcified
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-benoit committed Nov 15, 2016
1 parent c62ae59 commit eab805a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 103 deletions.
98 changes: 0 additions & 98 deletions app/assets/stylesheets/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/pages/home.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</form>
</div>
<p id='main-text-under-form'>Discover your favorite programming languages. <a id='show-about-this-site' href='#'>About this site</a>.</p>
<p id='about-this-site' class='transparent'>This website is built by <a href='#'>Alex</a>. It finds your favorite programming languages using your <a href='#'>GitHub</a> username. To find out more, read our <a href='#'>FAQ</a>.</p>
<p id='about-this-site' class='transparent'>This website is built by <a href='https://github.com/alex-felix'>Alex</a>. It finds your favorite programming languages using your <a href='https://github.com/'>GitHub</a> username. To find out more, send me an <a href='mailto:[email protected]'>email</a>.</p>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<%= image_tag "#{@user["avatar_url"]}" %>
<ul class="list-unstyled">
<li>Name: <%= @user["name"] %></li>
<li>Company: <%= @user["company"] %></li>
<li>Email: <a href="mailto:<%= @user["email"] %>"> <%= @user["email"] %> </a></li>
<li>Company: <%= @user["company"] || "none specified" %></li>
<li>Email: <a href="mailto:<%= @user["email"] %>"> <%= @user["email"] || "none specified" %> </a></li>
<li>Website: <a href="<%= @user["blog"] %>"> <%= @user["blog"].chomp('/').reverse.chomp('//:ptth').chomp('//:sptth').chomp('.www').reverse if @user["blog"] %> </a></li>
<li>Joined: <%= Date.parse(@user["created_at"]).strftime('%B %Y') %></li>
<li>Public Repos: <%= @user["public_repos"] %></li>
<li>Followers: <%= @user["followers"] %></li>
<li>Following: <%= @user["following"] %></li>
<li>Collected Stars: <%= @total_stars %></li>
<li><strong>Collected Stars:</strong> <%= @total_stars %></li>
</ul>
</div>
<div class="col-xs-12 col-md-4">
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
TODO
Tiny little ruby on rails website that crawls though your public repos to find out what your favorite languages are. GitHub crawler logic can be found under app/services/github_client.rb.

0 comments on commit eab805a

Please sign in to comment.