index.rhtml 1.37 KB
<div id='fileHeader'>
  <h1>Rails Documentation Browser</h1>
  A central place for all your Rails documentation
</div>

<div id='bodyContent'>
  <div id="contextContent">
    <div id="description">

      <p>
      Welcome to the documentation browser. This page lists all the documentation you have generated in your application, including Rails API documentation, documentation for your application, and documentation for the installed plugins.
      </p>
      <p>
      Below you'll have a list of links to all the documentations supported. In the case any documentation is not available you'll be given a hint on how you should generate it.
      </p>

<% unless @errors.empty? %>
<div id='errors' style='color: red; border: 2px solid red; background: #fee; padding-left: 0.5em; padding-right: 0.5em;'>
<h2>Errors</h2>
<ul>
  <% @errors.each do |error| %>
  <li class='error'><%= error %></li>
  <% end %>
</ul>
</div>
<% end %>

<ul>
  <% @docs.each do |item| %>
  <li><%= item[:doc_exists] ? (link_to item[:title], item[:link]) : (content_tag('span', item[:name], :class => 'warning') + ': ' + item[:dont_exist_message]) %></li>
  <% end %>
</ul>

<p>
If you have any suggestions regarding Rails Documentation Browser, please check
the <tt>doc_browser plugin</tt> documentation above to see how you can send
your suggestions, bug reports, and better yet, patches.
</p>

</div>
</div>
</div>