Nicer task list
This commit is contained in:
@@ -12,13 +12,13 @@
|
|||||||
.col-md-4
|
.col-md-4
|
||||||
p hey, here's a column too!
|
p hey, here's a column too!
|
||||||
.col-md-4
|
.col-md-4
|
||||||
ul
|
.list-group#task-list
|
||||||
| {% for task in tasks %}
|
| {% for task in tasks %}
|
||||||
li
|
a.list-group-item(id="task-{{task._id}}",href="javascript:open_task('{{ task._id }}');") {{ task.name }}
|
||||||
a(href="javascript:open_task('{{ task._id }}');") {{ task.name }}
|
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
.col-md-4
|
.col-md-4
|
||||||
#task-details
|
.well
|
||||||
|
#task-details
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
| {% block footer_scripts %}
|
| {% block footer_scripts %}
|
||||||
script.
|
script.
|
||||||
@@ -30,7 +30,10 @@ script.
|
|||||||
if (console) console.log("open_task(undefined) called.");
|
if (console) console.log("open_task(undefined) called.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#task-list').find('a').removeClass('active');
|
||||||
|
$('#task-' + task_id).addClass('active');
|
||||||
|
|
||||||
var base_url = "{{ url_for('attract.tasks.view_embed_task', project_url=project.url, task_id='TASKID') }}";
|
var base_url = "{{ url_for('attract.tasks.view_embed_task', project_url=project.url, task_id='TASKID') }}";
|
||||||
var task_url = base_url.replace("TASKID", task_id);
|
var task_url = base_url.replace("TASKID", task_id);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user