forked from tenderlove/rubycommitters.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* mnutt-master: fallback font footer more css css fixes link styling add meta info; foxes newer header late night with the tablet
- Loading branch information
Showing
116 changed files
with
181 additions
and
78 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,5 +1,5 @@ | ||
class AccountsController < ApplicationController | ||
def index | ||
@accounts = Account.find :all | ||
@accounts = Account.includes([:names, :nicks, :sites, :services, :portraits]).all | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,44 @@ | ||
<li> | ||
<table> | ||
<tr> | ||
<td>Account:</td> | ||
<td><%= account.username %></td> | ||
</tr> | ||
<li class="account"> | ||
<div class="picture"> | ||
<div class="image-wrapper"> | ||
<% if File.exist?(Rails.root.join('public', 'images', 'people', 'lines', "#{account.username}.png").to_s) -%> | ||
<%= image_tag "people/lines/#{account.username}.png", :onmouseover => "this.src = this.src.replace(/lines/, 'photos').replace(/png/, 'jpg');", :onmouseout => "this.src = this.src.replace(/photos/, 'lines').replace(/jpg/, 'png');" -%> | ||
<% else -%> | ||
<%= image_tag "people/lines/fox#{@fox_count}.png", :onmouseover => "this.src = this.src.replace(/lines/, 'photos')", :onmouseout => "this.src = this.src.replace(/photos/, 'lines')" -%> | ||
<% @fox_count = @fox_count % 3 + 1 -%> | ||
<% end -%> | ||
</div> | ||
</div> | ||
|
||
<% unless account.names.empty? %> | ||
<tr> | ||
<td>Names:</td> | ||
<td> | ||
<ul> | ||
<%= render :partial => 'name', :collection => account.names %> | ||
</ul> | ||
</td> | ||
</tr> | ||
<% end %> | ||
<div class="name"> | ||
<span class="username"><%= account.username -%></span> | ||
|
||
<% unless account.nicks.empty? %> | ||
<tr> | ||
<td>Nicknames:</td> | ||
<td> | ||
<ul> | ||
<%= render :partial => 'name', :collection => account.nicks %> | ||
</ul> | ||
</td> | ||
</tr> | ||
<% end %> | ||
<span class="nicknames"> | ||
<% [account.names, account.nicks].flatten.slice(0,5).each do |name| -%> | ||
<span class="nick"> | ||
<small>AKA</small> | ||
“<%= name.value -%>” | ||
</span> | ||
<% end -%> | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<% unless account.sites.empty? %> | ||
<tr> | ||
<td>Sites:</td> | ||
<td> | ||
<ul> | ||
<%= render :partial => 'site', :collection => account.sites %> | ||
</ul> | ||
</td> | ||
</tr> | ||
<% end %> | ||
<div class="sites"> | ||
<%= render :partial => 'site', :collection => account.sites -%> | ||
<span class="books"> | ||
<% if account.books.present? -%> | ||
Books: | ||
<% account.books.each_with_index do |book, i| %> | ||
<a href="http://www.amazon.<%= book.key.match(/^4/) ? "co.jp":"com" %>/dp/<%= book.key %>"><%= i + 1 -%></a> | ||
<% end %> | ||
<% end -%> | ||
</span> | ||
</div> | ||
|
||
<% unless account.services.empty? %> | ||
<tr> | ||
<td>Services:</td> | ||
<td> | ||
<ul> | ||
<%= render :partial => 'service', :collection => account.services %> | ||
</ul> | ||
</td> | ||
</tr> | ||
<% end %> | ||
<div class="services"> | ||
<%= render :partial => 'service', :collection => account.services -%> | ||
</div> | ||
|
||
<% unless account.portraits.empty? %> | ||
<tr> | ||
<td>Portraits:</td> | ||
<td> | ||
<ul> | ||
<%= render :partial => 'portrait', :collection => account.portraits %> | ||
</ul> | ||
</td> | ||
</tr> | ||
<% end %> | ||
<% unless account.books.empty? %> | ||
<tr> | ||
<td>Books:</td> | ||
<td> | ||
<ul> | ||
<% account.books.each do |book| %> | ||
<li><a href="http://www.amazon.<%= book.isbn.match(/^4/) ? "co.jp":"com" %>/dp/<%= book.isbn %>"><%= book.key %></a></li> | ||
<% end %> | ||
</ul> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
<div style="clear: both;"></div> | ||
</li> |
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,3 +1,2 @@ | ||
<li> | ||
<%= link_to_service service.name, service %> | ||
</li> | ||
<%= link_to_service image_tag("social/#{service.name}.png"), service %> | ||
|
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 +1 @@ | ||
<li><%= link_to site.title, site.url %></li> | ||
<%= link_to site.title, site.url %> |
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,5 +1,9 @@ | ||
<h1>Ruby Committers</h1> | ||
<%= link_to 'fork me on github', 'http://github.com/tenderlove/rubycommitters.org' %> | ||
<ul> | ||
<!-- <h1>Ruby Committers</h1> | ||
<%= link_to 'fork me on github', | ||
'http://github.com/tenderlove/rubycommitters.org' %> --> | ||
|
||
<% @fox_count = 1 -%> | ||
|
||
<ul style="list-style: none; margin: 0; padding: 0; z-index: 10; position: relative;"> | ||
<%= render :partial => 'account', :collection => @accounts %> | ||
</ul> |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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,7 +1,121 @@ | ||
@font-face { | ||
font-family: "MunroSmall"; | ||
src: url(/fonts/munro_small.ttf); | ||
font-weight:400; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
background-color: #181818; | ||
background: #FFF url(/images/header-bg.png); | ||
color: #FFF; | ||
font-family: Helvetica, Arial, sans-serif; | ||
} | ||
|
||
.image-wrapper { | ||
height: 100px; | ||
} | ||
|
||
.image-wrapper img { | ||
height: 100%; | ||
} | ||
|
||
#header { | ||
background: #FFF url(/images/header-bg.png); | ||
height: 383px; | ||
margin-bottom: -13px; | ||
} | ||
|
||
#title { | ||
background: url(/images/header2.jpg) top left no-repeat; | ||
width: 957px; | ||
height: 413px; | ||
text-indent: -10000px; | ||
} | ||
|
||
.services { | ||
padding-top: 5px; | ||
line-height: 2em; | ||
} | ||
|
||
.services img { | ||
border: 0; | ||
} | ||
|
||
.sites a { | ||
font-size: 0.6em; | ||
line-height: 3.3em; | ||
background-color: #EEE; | ||
color: #000; | ||
padding: 3px 6px; | ||
border-radius: 9px; | ||
-moz-border-radius: 9px; | ||
-o-border-radius: 9px; | ||
-webkit-border-radius: 9px; | ||
text-decoration: none; | ||
font-weight: bold; | ||
} | ||
|
||
.sites a:hover { | ||
color: #FFF; | ||
background-color: #562e8b; | ||
} | ||
|
||
.sites .books { | ||
text-transform: uppercase; | ||
font-size: 0.8em; | ||
color: #888; | ||
} | ||
|
||
.sites .books a { | ||
text-decoration: none; | ||
} | ||
|
||
.username { | ||
font-family: "MunroSmall", Arial, Helvetica, sans-serif; | ||
font-size: 2em; | ||
} | ||
|
||
.nick { | ||
color: #AAA; | ||
font-size: 0.6em; | ||
} | ||
|
||
.nick small { | ||
font-size: 0.6em; | ||
} | ||
|
||
li.account { | ||
max-width: 900px; | ||
background-color: #222; | ||
background: url(/images/foo.jpg); | ||
margin: 20px; | ||
padding: 10px; | ||
list-style: none; | ||
box-shadow: -5px 5px 0px #555; | ||
-webkit-box-shadow: -5px 5px 0px #555; | ||
-moz-box-shadow: -5px 5px 0px #555; | ||
} | ||
|
||
li.account div.picture { | ||
float: right; | ||
} | ||
|
||
li.account div.name { | ||
font-family: Helvetica, sans-serif; | ||
line-height: 1.4em; | ||
text-transform: uppercase; | ||
font-size: 1.3em; | ||
} | ||
|
||
#footer { | ||
margin-left: 20px; | ||
height: 72px; | ||
background: url(/images/foxes.png) bottom left no-repeat;); | ||
padding: 65px 0 0 165px; | ||
color: #666; | ||
font-size: 0.55em; | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
} |
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,9 @@ | ||
#!/usr/bin/env ruby | ||
|
||
username = ARGV[0] | ||
`git checkout Gemfile.lock` | ||
puts `git remote add #{username} git://github.com/#{username}/rubycommitters.org` | ||
puts `git fetch #{username}` | ||
puts `git checkout #{username}/master` | ||
puts `bundle install` | ||
exec `script/rails server -p 3099` |