JumpstartLab/tracks

View on GitHub
app/views/data/index.en.html.erb

Summary

Maintainability
Test Coverage
<div id="display_box">
  <div id="feeds">
    <div id="feedlegend">
      <h3>Exporting data</h3>
      <p>You can choose between the following formats:</p>
      <ul>
        <li><strong>YAML: </strong>Best for exporting data. <br/><i>Please note that  importing YAML files is currently supported only in experimentally. Do not rely on it for backing up critical data.</i></li>
        <li><strong>CSV: </strong>Best for importing into spreadsheet or data analysis software</li>
        <li><strong>XML: </strong>Best for importing or repurposing the data</li>
      </ul>
    </div>
    <br/><br/>
    <table class="export_table">
      <tr>
        <th>Description</th>
        <th>Download link</th>
      </tr>
      <tr>
        <td>YAML file containing all your actions, contexts, projects, tags and notes</td>
        <td><%= link_to "YAML file", data_yaml_export_path %></td>
      </tr>
      <tr>
        <td>CSV file containing all of your actions, with named contexts and projects</td>
        <td><%= link_to "CSV file (actions, contexts and projects)", data_csv_actions_path %></td>
      </tr>
      <tr>
        <td>CSV file containing all your notes</td>
        <td><%= link_to "CSV file (notes only)", data_csv_notes_path %></td>
      </tr>
      <tr>
        <td>XML file containing all your actions, contexts, projects, tags and notes</td>
        <td><%= link_to "XML file (actions only)", data_xml_export_path %></td>
      </tr>
    </table>
  </div><!-- End of feeds -->
</div>