Skip to content

Commit

Permalink
fixed title and added button
Browse files Browse the repository at this point in the history
  • Loading branch information
ingridh authored and zhangaaron committed Apr 4, 2015
1 parent 1a083f4 commit 3ecc5ab
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
margin: 0px;
padding: 0px;
}


a:link, a:visited, a:hover, a:active {
color: #2163E3;
Expand Down Expand Up @@ -56,6 +57,7 @@
display: inline-block;
float: right;
font-size: 18px;
margin-right: 10px,
}

#sidebar-filter {
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/instructor.css.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Place all the styles related to the instructor controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

2 changes: 1 addition & 1 deletion app/views/collections/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%h1 new.html.haml standin
%h1 Create New Collection

/ = form_for @collection do |f|
/ = f.label :name
Expand Down
3 changes: 3 additions & 0 deletions app/views/instructor/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
=link_to 'start a new collection', new_collection_path

-else

=link_to 'start a new collection', new_collection_path, :class => 'btn btn-info'

%div.col-md-10
%div.table-responsive
%table.table.table-striped#collections
Expand Down
21 changes: 11 additions & 10 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5

%link{:href => 'http://fonts.googleapis.com/css?family=Patrick+Hand|Delius|Handlee', :rel => 'stylesheet', :type => 'text/css'}

%html
Expand All @@ -10,15 +10,16 @@

%body
#header
%h1.title Course Question Bank
#user
- if @current_user
- if !@current_user.name.empty?
%p.welcome Welcome, #{@current_user.name}!
- else
%p.welcome Welcome, #{@current_user.provider} user!
= link_to 'Go to my dashboard', profile_path, method: :get
= link_to 'Log Out', logout_path, method: :post
.title
%h1= link_to 'Course Question Bank', problems_path
#user
- if @current_user
- if !@current_user.name.empty?
%p.welcome Welcome, #{@current_user.name}!
- else
%p.welcome Welcome, #{@current_user.provider} user!
= link_to 'Go to my dashboard', profile_path, method: :get
= link_to 'Log Out', logout_path, method: :post
#main
- if flash[:notice]
#notice.message= flash[:notice]
Expand Down
1 change: 1 addition & 0 deletions text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
answer "Rails itself isn't the problem, but the development processes typically used around Rails don't scale well to large teams."
distractor "If you're building a startup and expect high volume, Raffi Krikorian would advise you to stay away from Ruby and Rails from the start."
answer "If Twitter had been architected as a service-oriented architecture from the start, they might have stayed on Ruby/Rails somewhat longer than they did."

end
end

0 comments on commit 3ecc5ab

Please sign in to comment.