Skip to content

Commit

Permalink
Merge pull request #332 from alphagov/specialist-docs-desc
Browse files Browse the repository at this point in the history
Don't render description when there isn't one
  • Loading branch information
fofr committed Apr 24, 2017
2 parents db8de50 + f56ea25 commit db124ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/shared/_description.html.erb
@@ -1,3 +1,5 @@
<p class="description">
<%= nbsp_between_last_two_words(description) %>
</p>
<% if description.present? %>
<p class="description">
<%= nbsp_between_last_two_words(description) %>
</p>
<% end %>

0 comments on commit db124ff

Please sign in to comment.