Skip to content

Commit

Permalink
Fixed rendering of markdown and site styles in help articles
Browse files Browse the repository at this point in the history
  • Loading branch information
danpalmer committed Feb 17, 2014
1 parent a3d0f0b commit abbcdff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/controllers/help_articles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ def set_help_article
def help_article_params
params.require(:help_article).permit(:title, :body, :slug)
end

def set_site_area
params[:site_area] = :help
end
end
4 changes: 2 additions & 2 deletions app/views/help/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
<h1>Help Articles</h1>
<div class="row">
<% @articles.each do |article| %>
<div class="large-6 medium-6 small-12 columns">
<div class="large-6 medium-6 small-12 left columns">
<h3><%= link_to article.title, article %></h3>
<p><%= article.body %></p>
<p><%= render_markdown_preview article.body %></p>
</div>
<% end %>
</div>
Expand Down
6 changes: 5 additions & 1 deletion app/views/help_articles/show.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<%= render @help_article %>
<div class="row banner-offset">
<div class="large-12 columns">
<%= render @help_article %>
</div>
</div>

0 comments on commit abbcdff

Please sign in to comment.