Permalink
Browse files

added text to homepage (#9)

* added text to homepage

* houndci corrections

* houndci corrections

* houndci corrections

* houndci corrections

* corrected JS
gi
  • Loading branch information...
pedantix committed Jul 3, 2016
1 parent 9274a2b commit 49de34c6ca526ed2dd30da98e4ba7b993332abf3
Showing with 18 additions and 2 deletions.
  1. +1 −0 Gemfile
  2. +2 −0 Gemfile.lock
  3. +12 −0 app/helpers/application_helper.rb
  4. +1 −1 app/views/layouts/application.html.erb
  5. +2 −1 app/views/pages/home.html.erb
View
@@ -25,6 +25,7 @@ gem "uglifier"
gem "devise"
gem "foundation-rails"
gem "rqrcode", "~> 0.10.1"
gem "redcarpet"
group :development do
gem "quiet_assets"
View
@@ -192,6 +192,7 @@ GEM
rake (11.2.2)
recipient_interceptor (0.1.2)
mail
redcarpet (3.3.4)
responders (2.2.0)
railties (>= 4.2.0, < 5.1)
rqrcode (0.10.1)
@@ -313,6 +314,7 @@ DEPENDENCIES
rails (~> 4.2.0)
rails_stdout_logging
recipient_interceptor
redcarpet
rqrcode (~> 0.10.1)
rspec-rails (~> 3.4.0)
rspec-retry
@@ -8,4 +8,16 @@ def qr_helper
shape_rendering: 'crispEdges',
module_size: 9).html_safe
end
MARKDOWN_RENDERER = Redcarpet::Markdown.
new(Redcarpet::Render::HTML,
autolink: true, tables: true)
def markdown(text)
MARKDOWN_RENDERER.render(text).html_safe
end
def home_page_markdown
File.read("#{Rails.root}/README.md")
end
end
@@ -13,12 +13,12 @@
<title><%= title %></title>
<%= stylesheet_link_tag :application, media: "all" %>
<%= csrf_meta_tags %>
<%= render "javascript" %>
</head>
<body class="<%= body_class %>">
<%= render "top_bar" -%>
<%= render "flashes" -%>
<%= yield %>
<%= render "javascript" %>
<%= render "css_overrides" %>
</body>
</html>
@@ -25,7 +25,8 @@
<% end %>
<% else %>
<p>Place holder for mission statement</p>
<!-- <p>Place holder for mission statement</p> -->
<%= markdown home_page_markdown %>
<% end %>
</div>
</div>

0 comments on commit 49de34c

Please sign in to comment.