Files
archived-hc-harbor/app/views/docs/show.html.erb
2025-05-28 17:15:22 -04:00

31 lines
886 B
Plaintext

<% content_for :title, @title %>
<% content_for :meta_description, "#{@title} - Hackatime Documentation" %>
<div class="container">
<p class="super">
<% @breadcrumbs.each_with_index do |crumb, index| %>
<% if index == @breadcrumbs.length - 1 %>
<span><%= crumb[:name] %></span>
<% else %>
<% if crumb[:is_link] && crumb[:path] %>
<%= link_to crumb[:name], crumb[:path] %>
<% else %>
<span><%= crumb[:name] %></span>
<% end %>
<span> / </span>
<% end %>
<% end %>
</p>
<div class="docs-content">
<%= raw @rendered_content %>
</div>
<p class="flavor">
Found an issue with this page?
<a href="https://github.com/hackclub/hackatime/edit/main/docs/<%= @doc_path %>.md" target="_blank">
Edit it on GitHub
</a> - we'd love your help making the docs better!
</p>
</div>