Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add hellobar

  • Loading branch information...
commit 93ecdb6d4eae74d2312de3f886a1e4b9c3f7adf3 1 parent 521b5c3
Ricardo Panaggio authored
1  app/views/layouts/application.html.haml
View
@@ -11,6 +11,7 @@
<!--[if lt IE 8]><link type="text/css" rel="stylesheet" media="screen" href="/stylesheets/ie7.css"><![endif]-->
= include_javascripts :base
= javascript_include_tag AppConfig.mathjax_location
+ = yield :hellobar
= yield :js
%link{"rel" => "search", "type" => "application/opensearchdescription+xml", "href" => "/content-search.xml", "title" => "Content Search"}
4 app/views/questions/show.html.haml
View
@@ -21,6 +21,10 @@
%meta{:name => "description", :content => question_body.gsub(/<\/?[^>]*>/, "")[0, 255] }
%link{:rel => "canonical", :href => question_url(@question) }
+- if current_user.blank?
+ - content_for :hellobar do
+ ~ AppConfig.hellobar_code_snippet
+
= error_messages_for 'answer'
#question.commentable
4 app/views/topics/show.html.haml
View
@@ -1,3 +1,7 @@
+- if current_user.blank?
+ - content_for :hellobar do
+ ~ AppConfig.hellobar_code_snippet
+
#topic
= render :partial => "common", :locals => {:topic => @topic, :students => @students_course}
Please sign in to comment.
Something went wrong with that request. Please try again.