Buttons will not show up for tasks_group_object_tasks in a cycle where i...

...s_current is false.
Correct! Good catch!


On Tue, Jul 22, 2014 at 4:15 PM, Dan Ring <notifications@github.com> wrote:

> In
> src/ggrc_workflows/assets/mustache/cycle_task_group_object_tasks/tree.mustache:
>
> > -                {{#if_equals instance.status 'Verified'}}
> > -                  <span class="task-done">
> > -                    <em>Verified</em>
> > -                  </span>
> > -                {{/if_equals}}
> > -                {{#instance._undo.0}}
> > -                  <a href="javascript://" data-name="status" data-value="{{instance._undo.0}}" data-undo="true" class="undo {{instance._disabled}}">Undo</a>
> > -                {{/instance._undo.0}}
> > -              </div>
> > -            </li>
> > +            {{#using cycle=instance.cycle}}
> > +              {{#if_equals cycle.is_current true}}
> > +              <li>
> > +                <div class="request-control" {{ (el) -> $(el).bind('inserted', function() { el.ggrc_controllers_quick_form({ instance : el.closest('.item-list').data('model')}); }); }}>
> > +                  {{#if_equals instance.status 'Assigned'}}
> > +                    <button class="btn btn-primary change-task-status {{instance._disabled}}" data-openclose="open" data-name="status" data-value="InProgress">StartX</button>
>
> Guessing you didn't intent this StartX?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/reciprocity/ggrc-core/pull/1571/files#r15262439>.
>