Merge "Make it easier to find 'add task' button"

This commit is contained in:
Jenkins 2016-05-09 15:28:54 +00:00 committed by Gerrit Code Review
commit cdea7d397f

View File

@ -193,17 +193,7 @@
<table class="table table-striped table-supercondensed"> <table class="table table-striped table-supercondensed">
<thead> <thead>
<tr> <tr>
<td colspan="3"><strong>Tasks</strong></td> <td colspan="7"><strong>Tasks</strong></td>
<td colspan="3" class="text-right">
<small>
<a href=""
ng-click="showAddTaskForm = !showAddTaskForm"
ng-show="isLoggedIn">
<i class="fa fa-plus" ng-if="!showAddTaskForm"></i>
<i class="fa fa-minus" ng-if="showAddTaskForm"></i>
Add task
</a>
</small>
</td> </td>
</tr> </tr>
</thead> </thead>
@ -213,7 +203,7 @@
src="'/inline/task_list_item.html'"> src="'/inline/task_list_item.html'">
</tr> </tr>
<tr ng-if="tasks.length == 0 && !showAddTaskForm"> <tr ng-if="tasks.length == 0 && !showAddTaskForm">
<td colspan="6"> <td colspan="7">
<p class="text-muted text-center"> <p class="text-muted text-center">
<em>This story has no tasks.</em> <em>This story has no tasks.</em>
</p> </p>
@ -223,6 +213,18 @@
ng-include ng-include
src="'/inline/task_edit_form.html'"> src="'/inline/task_edit_form.html'">
</tr> </tr>
<hr />
<tr>
<td colspan="7" class="text-left">
<button class="btn btn-default" type="button"
ng-click="showAddTaskForm = !showAddTaskForm"
ng-show="isLoggedIn">
<i class="fa fa-plus" ng-if="!showAddTaskForm"></i>
<i class="fa fa-minus" ng-if="showAddTaskForm"></i>
<strong> Add task </strong>
</button>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</script> </script>