Skip to content

Commit

Permalink
Merge pull request #256 from jonathanhefner/helpers-horo-in-index_rhtml
Browse files Browse the repository at this point in the history
Use `ENV["HORO_*"]` helpers in `index.rhtml`
  • Loading branch information
jonathanhefner authored Jul 31, 2023
2 parents ef39d46 + ed305b5 commit 5a3d35e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/rdoc/generator/template/rails/index.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@
<%= include_template '_panel.rhtml' %>

<div class="banner">
<% if ENV['HORO_PROJECT_NAME'] %>
<span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br />
<% if project_name %>
<div><%= project_name %> <%= project_version %></div>
<% end %>

<h2>
<%= h index.name %>
</h2>
<ul class="files">
<li><%= h index.relative_name %></li>
<li>Last modified: <%= index.last_modified %></li>
</ul>
<% if ENV['HORO_BADGE_VERSION'] %>
<div id="version-badge"><%= ENV['HORO_BADGE_VERSION'] %></div>
<% if badge_version %>
<div id="version-badge"><%= badge_version %></div>
<% end %>
</div>

Expand Down

0 comments on commit 5a3d35e

Please sign in to comment.