diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index 93258de9..6e04263f 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -1,6 +1,7 @@ class QuestionsController < ApplicationController def index + @title = "Questions" @questions = Question.find(:all) respond_to do |format| format.html # index.rhtml diff --git a/app/views/layouts/application.haml b/app/views/layouts/application.haml index 9b017ed4..58ee61af 100644 --- a/app/views/layouts/application.haml +++ b/app/views/layouts/application.haml @@ -2,11 +2,9 @@ %html %head %title Lords Q+A - - # %link{ :rel=>"stylesheet", :href=>"http://yui.yahooapis.com/2.5.1/build/reset-fonts-grids/reset-fonts-grids.css", :type=>"text/css" } - - # %link{ :rel=>"stylesheet", :type=>"text/css", :href=>"http://yui.yahooapis.com/2.5.1/build/assets/skins/sam/skin.css" } - %style{ :type=>"text/css"} - = "#custom-doc { width: 66%; min-width: 740px; font-size: 1.3em; margin-left: 5em}" - = ".asking_member, .answering { font-weight: bold }" + = stylesheet_link_tag "http://yui.yahooapis.com/2.5.1/build/reset-fonts-grids/reset-fonts-grids.css" + = stylesheet_link_tag "http://yui.yahooapis.com/2.5.1/build/assets/skins/sam/skin.css" + = stylesheet_link_tag "screen" %body #custom-doc.yui-t7 #hd diff --git a/public/stylesheets/screen.css b/public/stylesheets/screen.css new file mode 100644 index 00000000..938a1ebe --- /dev/null +++ b/public/stylesheets/screen.css @@ -0,0 +1,2 @@ +#custom-doc { width: 66%; min-width: 740px; font-size: 1.3em; margin-left: 5em} +.asking_member, .answering { font-weight: bold } \ No newline at end of file