Permalink
Browse files

RPM stuff

  • Loading branch information...
1 parent 4bc24ae commit 1b25121900f74a3696e1ecb4882bc422b5667e96 @sudara sudara committed Mar 7, 2009
View
13 app/controllers/pages_controller.rb
@@ -8,6 +8,19 @@ def twentyfour
render :layout => '24houralbum'
end
+ def rpm_challenge
+ ids = [ 906, 904, 899, 893, 892, 891, 887, 886, 882, 880,
+ 879, 877, 875, 872, 864, 863, 860, 858, 857, 856,
+ 855, 852, 851, 850, 849, 846, 845, 843, 842, 841,
+ 840, 839, 838, 836, 834, 832, 831, 829, 828, 827,
+ 826, 825, 824, 823, 822, 821, 818, 817, 816, 814,
+ 813, 812, 810, 806, 804, 802, 801, 800, 799, 798,
+ 797, 790, 787, 786, 773, 770, 767, 762 ,
+ 760, 753, 745, 742, 739, 724, 720]
+ @albums = Playlist.find(:all, :conditions => {:id => ids}, :order => 'created_at ASC')
+ render :layout => 'rpm_challenge'
+ end
+
def index
@page_title = "About alonetone, the kickass home for musicians"
end
View
2 app/controllers/users_controller.rb
@@ -6,7 +6,7 @@ class UsersController < ApplicationController
before_filter :login_required, :except => [:index, :show, :new, :create, :activate, :bio]
skip_before_filter :login_by_token, :only => :sudo
- #rescue_from NoMethodError, :with => :user_not_found
+ rescue_from NoMethodError, :with => :user_not_found
def index
@page_title = "#{params[:sort] ? params[:sort].titleize+' - ' : ''} Musicians and Listeners"
View
31 app/views/layouts/rpm_challenge.html.erb
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+ <title>alonetone does record production month (rpm challenge) 2009 </title>
+ <link type="text/css" rel="stylesheet" media="screen" href="/stylesheets/rpm_challenge.css">
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
+ <meta content="index,follow" name="robots"/>
+ <meta content="Listen to alonetone musicians doing the 2009 RPM challenge" name="Description"/>
+ <meta content="alonetone rpm challenge rpmchallenge album listen" name="Keywords" />
+ </head>
+ <body>
+
+ <div id="wrapper">
+ <div id="header">
+ <a id="back-to-alonetone" href="/">
+ </a>
+ </div>
+
+ <div id="content">
+
+ <div id="albums">
+ <%= yield %>
+ </div>
+ </div>
+
+ </div>
+
+ </body>
+</html>
View
12 app/views/pages/rpm_challenge.html.erb
@@ -0,0 +1,12 @@
+<% @albums.each do |album| %>
+ <div class="album clearfix">
+ <div class="cover">
+ <%= link_to(image_tag('rpm/overlay.png'), user_playlist_path(album.user.login, album), :class => 'overlay') %>
+ <%= image_tag(album.cover(:album), :class => 'cover') %>
+ <%= link_to awesome_truncate(album.title,50), user_playlist_path(album.user.login, album), :class => 'album_title' %><br/>
+ <%= link_to album.user.name, user_home_path(album.user.login), :class => 'alonetoner'%>
+ </div>
+
+ </div>
+<% end %>
+<div class="clearfix"> </div>
View
7 config/routes.rb
@@ -2,6 +2,11 @@
map.resources :posts
+ # manual, ghetto, overriding links
+ map.rpm_challenge 'rpm_challenge', :controller => 'pages', :action => 'rpm_challenge'
+ map.twentyfour '24houralbum', :controller => 'pages', :action => 'twentyfour'
+
+
map.blog 'blog', :controller => 'updates', :action => 'index'
map.feedback 'feedback', :controller => 'user_reports'
map.resources :features, :sessions, :user_reports, :updates
@@ -18,8 +23,6 @@
map.sitemap 'sitemap.xml', :controller => 'pages', :action => 'sitemap', :format => 'xml'
map.about 'about/:action', :controller => 'pages'
map.halp 'about/halp/:action', :controller => 'pages'
-
- map.twentyfour '24houralbum', :controller => 'pages', :action => 'twentyfour'
# You can have the root of your site routed by hooking up ''
# -- just remember to delete public/index.html.
View
BIN public/images/rpm/background-lines.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/rpm/background.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/rpm/background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/rpm/header.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/rpm/header_background.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/rpm/overlay.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
138 public/stylesheets/rpm_challenge.css
@@ -0,0 +1,138 @@
+/* @override http://localhost:3000/stylesheets/rpm_challenge.css */
+
+/* @override http://localhost:3000/stylesheets/rpm_challenge.css */
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-weight: inherit;
+ font-style: inherit;
+ font-size: 100%;
+ font-family: inherit;
+ vertical-align: baseline;
+}
+:focus {
+ outline: 0;
+}
+body {
+ line-height: 1;
+ font-family: Helvetica, Arial, Geneva, sans-serif;
+}
+
+a{
+ text-decoration:none;
+}
+ a:hover, a:visited{
+ text-decoration:underline;
+ }
+
+#wrapper{
+ position: relative;
+ width: 100%;
+ text-align: center;
+ background: #261f1e url(../images/rpm/header_background.jpg) repeat-x top center;
+ margin: auto;
+}
+
+#header{
+ width: 1200px;
+ background: #261f1e url(../images/rpm/header.jpg) no-repeat top center;
+ height: 402px;
+ text-align: center;
+ margin: auto;
+}
+
+#content{
+ text-align: center;
+ position: relative;
+ width: 100%;
+ min-height: 600px;
+ min-width: 1200px;
+ background: #1e1918 url(../images/rpm/background.png) repeat-x top center;
+ margin: auto;
+ clear:both;
+}
+
+a#back-to-alonetone{
+ height: 200px;
+ width:200px;
+ display:block;
+ margin:0 auto;
+}
+
+div#albums{
+ position:relative;
+ width: 1187px;
+ margin: auto;
+ padding-top:25px;
+ padding-left:13px;
+ min-height: 500px;
+ background: transparent url(../images/rpm/background-lines.jpg) repeat-y 393px 0;
+}
+div.album{
+ position: relative;
+ float: left;
+ margin-left: 39px;
+ width: 160px;
+ height:250px;
+ overflow: hidden;
+ clear: none;
+}
+div.album .cover{
+ position: relative;
+ margin-bottom: 10px;
+}
+a.overlay {
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 50;
+ opacity: 1.0;
+ background-color: transparent;
+ width: 160px;
+ height: 160px;
+ background-image: url(../images/rpm/overlay.png); }
+
+img.cover {
+ width: 150px;
+ height: 150px;
+ margin-left: 1px;
+ margin-top: 3px; }
+
+a.alonetoner{
+ font-size: 13px;
+ color: #fb8a03;
+}
+
+a.album_title{
+ width: 160px;
+ font-size: 13px;
+ color: #fff;
+ font-weight: bold;
+ line-height: 16px;
+}
+.clearfix:after {
+ clear: both;
+ content: ".";
+ display: block;
+ height: 0pt;
+ line-height: 0pt;
+ visibility: hidden; }
+
+.clearfix {
+ display: inline-block; }
+
+html[xmlns] .clearfix {
+ display: block; }
+
+* html .clearfix {
+ height: 1%; }

0 comments on commit 1b25121

Please sign in to comment.