diff --git a/app/views/content_viewer/versioned_article.rhtml b/app/views/content_viewer/versioned_article.rhtml index 130d09b..6bb666d 100644 --- a/app/views/content_viewer/versioned_article.rhtml +++ b/app/views/content_viewer/versioned_article.rhtml @@ -15,11 +15,16 @@ <%= _("Version %{version} - %{author} on %{date}") % {:version => @version, :author => @page.author_name(@version), :date => show_time(@versioned_article.updated_at) } %> - <% if @page.version_license(@version).present? %> + <% version_license = @page.version_license(@version) %> + <%# This seemingly doubled verification exists because the article-sub-header + div must appear only if at least one content inside it will appeart. + Although we have only one content now, we might have others in the future. + So we're keeping it like that to avoid mistakes. %> + <% if version_license.present? %>