Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
more layout and style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Brook committed Apr 25, 2008
1 parent dd518c7 commit bb8ef54
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/controllers/questions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ def index
@title = "Questions"
@questions = Question.find(:all)
respond_to do |format|
format.html # index.rhtml
format.html
format.js { render :js => @questions.to_json }
format.xml { render :xml => @questions.to_xml }
format.yaml { render :yaml => @questions.to_yaml }
end
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/application.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
%div.yui-g
= yield
#ft
Lords Q+A Prototype
13 changes: 12 additions & 1 deletion app/views/questions/index.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@


#questions
- for question in @questions
= question.text
.question
%span.member
= question.member
%span.text
= question.text
%span.uin
= question.uin
%span.uin
= question.answer.to_yaml
2 changes: 1 addition & 1 deletion config/initializers/mime_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone
# Mime::Type.register_alias "text/html", :iphone
13 changes: 11 additions & 2 deletions public/stylesheets/screen.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
#custom-doc { width: 66%; min-width: 740px; font-size: 1.3em; margin-left: 5em}
.asking_member, .answering { font-weight: bold }
#custom-doc { width: 66%; min-width: 740px; font-size:153.9%;}
.asking_member, .answering { font-weight: bold }

#hd, #ft {margin: 1em 0;padding: 1em 0;}
#hd {border-bottom: 1pt solid gray;}
h1 {font-weight:bold;color:gray;}
.question {margin: 1em 0;}

.member {font-weight:bold;}
.text {}
.uin {font-size:85%;color:gray;}

0 comments on commit bb8ef54

Please sign in to comment.