<%= render(
  'html_head.html',
  {
    title:       'API',
    description: '',
  }
) %>

<div class="container api-container">

  <h1>API</h1>

  <div class="row">
    <div class="col-md-6">
      <p class="lead">The PopIt API allows you to easily access and edit all the data stored in this site, from your code or other websites.</p>
    </div>
    <div class="col-md-5 col-md-offset-1">
      <label for="api-url">API Base URL:</label>
      <div class="input-group click-to-copy">
        <input type="text" readonly="readonly" id="api-url" class="form-control click-to-select" value="<%= base_url('/api/v0.1') %>" />
        <span class="input-group-btn">
          <button class="btn btn-default" type="button">Copy</button>
        </span>
      </div>
    </div>
  </div>

  <hr/>

  <div class="api-help-section">
    <p><strong>Stuck?</strong> See the <a href="http://popit.poplus.org/docs/api/">PopIt API documentation</a> for help.</p>
  </div>

</div>

<%= render('html_footer.html' )%>

<%= render(
  'html_head.html',
  {
    title:       'API',
    description: '',
  }
) %>

<div class="container api-container">

  <h1>API</h1>

  <div class="row">
    <div class="col-md-6">
      <p class="lead">The PopIt API allows you to easily access and edit all the data stored in this site, from your code or other websites.</p>
    </div>
    <div class="col-md-5 col-md-offset-1">
      <label for="api-url">API Base URL:</label>
      <div class="input-group click-to-copy">
        <input type="text" readonly="readonly" id="api-url" class="form-control click-to-select" value="<%= base_url('/api/v0.1') %>" />
        <span class="input-group-btn">
          <button class="btn btn-default" type="button">Copy</button>
        </span>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="col-md-12">
      <h2>Popolo export</h2>
      <p>Want to download all the data for your instance?</p>
      <p><a class="btn btn-default" href="<%- base_url('/api/v0.1/export.json.gz') %>">Download Popolo JSON</a></p>
    </div>
  </div>

  <hr/>

  <div class="api-help-section">
    <p><strong>Stuck?</strong> See the <a href="http://popit.poplus.org/docs/api/">PopIt API documentation</a> for help.</p>
  </div>

</div>

<%= render('html_footer.html' )%>

Add export popolo json button to API page
Add export popolo json button to API page
