<!--
  ~ Copyright (c) 2015 Codethink Limited
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License"); you may
  ~ not use this file except in compliance with the License. You may obtain
  ~ a copy of the License at
  ~
  ~         http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  ~ License for the specific language governing permissions and limitations
  ~ under the License.
  -->
<div class="kanban-lane-contents-readonly">
    <div class="kanban-card-readonly"
         ng-repeat="item in lane.worklist.items"
         ng-switch="item.item_type">
        <div ng-switch-when="story">
            <i class="fa fa-sb-story text-muted"></i>
            <a href="#!/story/{{item.story.id}}">
                {{item.story.title}}
            </a>
        </div>
        <div ng-switch-when="task">
            <i class="fa fa-tasks text-muted"></i>
            <a href="#!/story/{{item.task.id}}">
                {{item.task.title}}
            </a>
                <user-typeahead ng-show="item.task.assignee_id"
                ng-model="item.task.assignee_id"/>
        </div>
    </div>
</div>

<!--
  ~ Copyright (c) 2015 Codethink Limited
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License"); you may
  ~ not use this file except in compliance with the License. You may obtain
  ~ a copy of the License at
  ~
  ~         http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  ~ License for the specific language governing permissions and limitations
  ~ under the License.
  -->
<div class="kanban-lane-contents-readonly">
    <div class="kanban-card-readonly"
         ng-repeat="item in lane.worklist.items"
         ng-switch="item.item_type">
        <div ng-switch-when="story">
            <i class="fa fa-sb-story text-muted"></i>
            <a href="#!/story/{{item.story.id}}">
                {{item.story.title}}
            </a>
        </div>
        <div ng-switch-when="task">
            <i class="fa fa-tasks text-muted"></i>
            <a href="#!/story/{{item.task.story_id}}">
                {{item.task.title}}
            </a>
                <user-typeahead ng-show="item.task.assignee_id"
                ng-model="item.task.assignee_id"/>
        </div>
    </div>
</div>

Fix broken link on task cards in boards
Fix broken link on task cards in boards

Change-Id: I57a473b0b4e33b8c9a713a80c3efc3438a3b8868
