%h2.title Player Counts

%p Maximum number of players seen by day and server
%p
  %a{:href => "/player_counts-latest.json"} Latest player counts (JSON)

%p
  Switch:
  %a{:href => "/player_counts?servers=private"} Private
  |
  %a{:href => "/player_counts?servers=retail"} Retail

:css
  svg {
    background-color: black;
    border: 2px solid #AF7A30;
  }

  path {
    fill: none;
  }

  text {
    fill: white;
    font-weight: normal;
    font-size: 10px;
  }

  .x.axis line {
    stroke: white;
  }

  .axis label {
    fill: #CCC;
  }

  .x.axis .minor {
    stroke-opacity: 1;
  }

  .x.axis path {
    fill: none;
    stroke: white;
  }

  .y.axis line, .y.axis path {
    fill: none;
    stroke: white;
  }

  .label text {
    font-weight: normal;
    font-size: 10px;
  }

  .label rect {
    stroke: white;
  }

%script{:src => javascript_path('d3.min')}
%script{:src => javascript_path('popchart')}

- if params[:servers]
  :javascript
    popchart("#content", "/player_counts.json?servers=#{params[:servers]}");
- else
  :javascript
    popchart("#content", "/player_counts.json");

%h2.title Player Counts

%p Maximum number of players seen by day and server
%p
  %a{:href => "/player_counts-latest.json"} Latest player counts (JSON)

:css
  svg {
    background-color: black;
    border: 2px solid #AF7A30;
  }

  path {
    fill: none;
  }

  text {
    fill: white;
    font-weight: normal;
    font-size: 10px;
  }

  .x.axis line {
    stroke: white;
  }

  .axis label {
    fill: #CCC;
  }

  .x.axis .minor {
    stroke-opacity: 1;
  }

  .x.axis path {
    fill: none;
    stroke: white;
  }

  .y.axis line, .y.axis path {
    fill: none;
    stroke: white;
  }

  .label text {
    font-weight: normal;
    font-size: 10px;
  }

  .label rect {
    stroke: white;
  }

%script{:src => javascript_path('d3.min')}
%script{:src => javascript_path('popchart')}

- if params[:servers]
  :javascript
    popchart("#content", "/player_counts.json?servers=#{params[:servers]}");
- else
  :javascript
    popchart("#content", "/player_counts.json");

Remove priv/retail player counts switch
Remove priv/retail player counts switch
