Sha256: 0eb742f6bbacf25468de0005bb1d64a8896b69f621f100c5e99b7b769ce815e2

Contents?: true

Size: 943 Bytes

Versions: 9

Compression:

Stored size: 943 Bytes

Contents

<h1>Sprint</h1>
<div id="sprint_view"></div>

<% content_for :javascripts do %>
<script type="text/javascript">
  $(function() {
    var view = new ShowSprintView({
      el: $('#sprint_view')[0],
      sprintId: <%= @sprint.try(:id).to_json %>,
      sprintStart: new Date(<%= @sprint.start_date.year %>, <%= @sprint.start_date.month - 1 %>, <%= @sprint.start_date.day %>),
      sprintTasks: <%= raw SprintTaskPresenter.new(@sprint).to_json %>
    });

    view.render();

    $('body').toggleClass('green', view.totalEffort > 0 && (view.toCommit == 0 || view.toComplete == 0));

    new Refresher()
      .container('#container')
      .interval(10 * 60 * 1000) // 10 minutes
      .callback(function() {
        $.getJSON(window.location.path, function(json) {
          view
            .setStart(App.parseDate(json.start))
            .setTasks(json.tasks)
            .render();
        });
      }).render();
  });
</script>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre app/views/sprints/dashboard.html.erb
houston-core-0.7.0 app/views/sprints/dashboard.html.erb
houston-core-0.7.0.beta4 app/views/sprints/dashboard.html.erb
houston-core-0.7.0.beta3 app/views/sprints/dashboard.html.erb
houston-core-0.7.0.beta2 app/views/sprints/dashboard.html.erb
houston-core-0.7.0.beta app/views/sprints/dashboard.html.erb
houston-core-0.6.3 app/views/sprints/dashboard.html.erb
houston-core-0.6.2 app/views/sprints/dashboard.html.erb
houston-core-0.6.1 app/views/sprints/dashboard.html.erb