Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/static/riot/datasets/management.tag
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@
</button>

<!-- Data Table -->
<table class="ui {selectable: datasets.length > 0} celled compact table">
<table id="datasetsTable" class="ui {selectable: datasets.length > 0} celled compact sortable table">
<thead>
<tr>
<th>File Name</th>
<th width="175px">Type</th>
<th width="175px">Size</th>
<th width="125px">Uploaded</th>
<th width="60px">In Use</th>
<th width="60px">Public</th>
<th width="50px">Delete?</th>
<th width="25px"></th>
<th width="60px" class="no-sort">In Use</th>
<th width="60px" class="no-sort">Public</th>
<th width="50px" class="no-sort">Delete?</th>
<th width="25px" class="no-sort"></th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -226,6 +226,7 @@
self.one("mount", function () {
$(".ui.dropdown", self.root).dropdown()
$(".ui.checkbox", self.root).checkbox()
$('#datasetsTable').tablesort()
self.update_datasets()
})

Expand Down
9 changes: 5 additions & 4 deletions src/static/riot/submissions/resource_submissions.tag
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
</button>

<!-- Data Table -->
<table class="ui {selectable: submissions.length > 0} celled compact table">
<table id="submissionsTable" class="ui {selectable: submissions.length > 0} celled compact sortable table">
<thead>
<tr>
<th>File Name</th>
<th>Competition in</th>
<th width="175px">Size</th>
<th width="125px">Uploaded</th>
<th width="60px">Public</th>
<th width="50px">Delete?</th>
<th width="25px"></th>
<th width="60px" class="no-sort">Public</th>
<th width="50px" class="no-sort">Delete?</th>
<th width="25px" class="no-sort"></th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -200,6 +200,7 @@
self.one("mount", function () {
$(".ui.dropdown", self.root).dropdown()
$(".ui.checkbox", self.root).checkbox()
$('#submissionsTable').tablesort()
self.update_submissions()
})

Expand Down
9 changes: 5 additions & 4 deletions src/static/riot/tasks/management.tag
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
Delete Selected Tasks
</button>

<table class="ui {selectable: tasks.length > 0} celled compact table">
<table id="tasksTable" class="ui {selectable: tasks.length > 0} celled compact sortable table">
<thead>
<tr>
<th>Name</th>
<th class="benchmark-row">Benchmarks</th>
<th width="125px">Shared With</th>
<th width="125px">Uploaded...</th>
<th width="50px">Public</th>
<th width="50px">Delete?</th>
<th width="25px"></th>
<th width="50px" class="no-sort">Public</th>
<th width="50px" class="no-sort">Delete?</th>
<th width="25px" class="no-sort"></th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -257,6 +257,7 @@
self.one("mount", function () {
self.update_tasks()
$(".ui.checkbox", self.root).checkbox()
$('#tasksTable').tablesort()
$('.ui.search.dataset', self.root).each(function (i, item) {
$(item)
.search({
Expand Down