Permalink
Browse files

late night with the tablet

  • Loading branch information...
1 parent f2730aa commit 8114bc902e288908619d417a24945635f6c924ca @mnutt mnutt committed Jan 19, 2011
Showing with 57 additions and 5 deletions.
  1. +1 −1 app/controllers/accounts_controller.rb
  2. +25 −1 app/views/accounts/_account.html.erb
  3. +5 −3 app/views/accounts/index.html.erb
  4. +4 −0 app/views/layouts/application.html.erb
  5. BIN public/images/foo.jpg
  6. BIN public/images/header-bg.png
  7. BIN public/images/header.jpg
  8. BIN public/images/line-bg.jpg
  9. BIN public/images/people/lines/aamine.png
  10. BIN public/images/people/lines/akira.png
  11. BIN public/images/people/lines/akr.png
  12. BIN public/images/people/lines/arton.png
  13. BIN public/images/people/lines/azav.png
  14. BIN public/images/people/lines/dave.png
  15. BIN public/images/people/lines/davidflanagan.png
  16. BIN public/images/people/lines/dblack.png
  17. BIN public/images/people/lines/drbrain.png
  18. BIN public/images/people/lines/duerst.png
  19. BIN public/images/people/lines/fox.png
  20. BIN public/images/people/lines/gotoken.png
  21. BIN public/images/people/lines/gotoyuzo.png
  22. BIN public/images/people/lines/jeg2.png
  23. BIN public/images/people/lines/jim.png
  24. BIN public/images/people/lines/keiju.png
  25. BIN public/images/people/lines/knu.png
  26. BIN public/images/people/lines/ko1.png
  27. BIN public/images/people/lines/luislavena.png
  28. BIN public/images/people/lines/marcandre.png
  29. BIN public/images/people/lines/matz.png
  30. BIN public/images/people/lines/mrkn.png
  31. BIN public/images/people/lines/nobu.png
  32. BIN public/images/people/lines/seki.png
  33. BIN public/images/people/lines/shugo.png
  34. BIN public/images/people/lines/shyouhei.png
  35. BIN public/images/people/lines/takano32.png
  36. BIN public/images/people/lines/tenderlove.png
  37. BIN public/images/people/lines/wew.png
  38. BIN public/images/people/lines/why.png
  39. BIN public/images/people/lines/yugui.png
  40. BIN public/images/people/lines/zsombr.png
  41. BIN public/images/people/photos/aamine.jpg
  42. BIN public/images/people/photos/akira.jpg
  43. BIN public/images/people/photos/akr.jpg
  44. BIN public/images/people/photos/arton.jpg
  45. BIN public/images/people/photos/azav.jpg
  46. BIN public/images/people/photos/dave.jpg
  47. BIN public/images/people/photos/davidflanagan.jpg
  48. BIN public/images/people/photos/dblack.jpg
  49. BIN public/images/people/photos/drbrain.jpg
  50. BIN public/images/people/photos/duerst.jpg
  51. BIN public/images/people/photos/fox.png
  52. BIN public/images/people/photos/gotoken.jpg
  53. BIN public/images/people/photos/gotoyuzo.jpg
  54. BIN public/images/people/photos/jeg2.jpg
  55. BIN public/images/people/photos/jim.jpg
  56. BIN public/images/people/photos/keiju.jpg
  57. BIN public/images/people/photos/knu.jpg
  58. BIN public/images/people/photos/ko1.jpg
  59. BIN public/images/people/photos/luislavena.jpg
  60. BIN public/images/people/photos/marcandre.jpg
  61. BIN public/images/people/photos/matz.jpg
  62. BIN public/images/people/photos/mrkn.jpg
  63. BIN public/images/people/photos/nobu.jpg
  64. BIN public/images/people/photos/seki.jpg
  65. BIN public/images/people/photos/shugo.jpg
  66. BIN public/images/people/photos/shyouhei.jpg
  67. BIN public/images/people/photos/takano32.jpg
  68. BIN public/images/people/photos/tenderlove.jpg
  69. BIN public/images/people/photos/wew.jpg
  70. BIN public/images/people/photos/why.jpg
  71. BIN public/images/people/photos/yugui.jpg
  72. BIN public/images/people/photos/zsombr.jpg
  73. +13 −0 public/stylesheets/site.css
  74. +9 −0 script/switch.rb
@@ -1,5 +1,5 @@
class AccountsController < ApplicationController
def index
- @accounts = Account.find :all
+ @accounts = Account.includes([:names, :nicks, :sites, :services, :portraits]).all
end
end
@@ -1,4 +1,27 @@
-<li>
+<li class="account" style="width: 900px; background-color: #222; background: url(/images/foo.jpg); margin: 20px; padding: 10px; list-style: none; box-shadow: -5px 5px 0px #555;">
+ <div class="picture" style="float: right;">
+ <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.png", :onmouseover => "this.src = this.src.replace(/lines/, 'photos')", :onmouseout => "this.src = this.src.replace(/photos/, 'lines')" -%></div>
+ <% end -%>
+ </div>
+ </div>
+ <div style="float: right; clear: right;"></div>
+
+
+ <div class="name" style="font-family: Helvetica, sans-serif; line-height: 1.4em;">
+ <div style="text-transform: uppercase; font-size: 1.3em; padding-bottom: 10px;"><%= account.username -%></div>
+ <% [account.names, account.nicks].flatten.slice(0,3).each do |name| -%>
+ <div style="color: #AAA; font-size: 0.8em;"><small style="font-size: 0.6em;">AKA</small> &ldquo;<%= name.value -%>&rdquo;</div>
+ <% end -%>
+ </div>
+
+ <div style="clear: both;"></div>
+</li>
+
+<% if false -%>
<table>
<tr>
<td>Account:</td>
@@ -74,3 +97,4 @@
<% end %>
</table>
</li>
+<% end -%>
@@ -1,5 +1,7 @@
-<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' %> -->
+
+<ul style="list-style: none; margin: 0; padding: 0; z-index: 10; position: relative;">
<%= render :partial => 'account', :collection => @accounts %>
</ul>
@@ -9,6 +9,10 @@
</head>
<body>
+ <div id="header">
+ <img src="/images/header.jpg" alt="Ruby Committers" />
+ </div>
+
<%= yield %>
</body>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -1,7 +1,20 @@
+body {
+ margin: 0;
+ padding: 0;
+ background-color: #181818;
+ background: #FFF url(/images/header-bg.png);
+ color: #FFF;
+}
.image-wrapper {
height: 100px;
}
.image-wrapper img {
height: 100%;
}
+
+#header {
+ background: #FFF url(/images/header-bg.png);
+ height: 383px;
+ margin-bottom: -23px;
+}
View
@@ -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`

0 comments on commit 8114bc9

Please sign in to comment.