Skip to content

Commit 2d30869

Browse files
committed
Fix article table UI
1 parent 5da5a46 commit 2d30869

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

TODOLIST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- Lower priority
44
- Separate contest and non-contest submissions
55
- [ ] Virtual judge
6-
- [ ] Batch upload testdata
6+
- [x] Batch upload testdata
77
- [ ] Revisit all JSON endpoints
88
- [ ] Revisit all ActiveAdmin pages & Upgrade to ActiveAdmin 3
99
---

app/views/articles/_table.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<th class="col-md-5"><%= pin_glyph %> Title</th>
55
<th class="col-md-3">Time</th>
66
<th class="col-md-3">Author</th>
7-
<th class="col-md-1"></th>
7+
<% if current_user&.admin? %>
8+
<th class="col-md-1"></th>
9+
<% end %>
810
</tr>
911
</thead>
1012
<tbody>

0 commit comments

Comments
 (0)