Skip to content

Commit

Permalink
admin mission files links
Browse files Browse the repository at this point in the history
  • Loading branch information
kdudkov committed Jul 18, 2024
1 parent 3c4b2d0 commit 2f03ee5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/goatak_server/templates/missions.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h5>Points</h5>
<h5>Files</h5>
<table class="table table-hover table-sm units">
<tr v-for="c in current.contents">
<td>{{ c.data?.name }}</td>
<td><a :href="'/mp/' + c.data?.uid">{{ c.data?.name }}</a></td>
<td>{{ c.data?.mimeType }}</td>
<td>{{ c.data?.size }}</td>
</tr>
Expand Down
2 changes: 2 additions & 0 deletions cmd/goatak_server/templates/mp.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<th>Creator</th>
<th>Size</th>
<th>MIME type</th>
<th>Keywords</th>
</tr>
<tr v-for="p in all">
<td><a :href="'/mp/' + p.UID">{{ p.UID }}</a></td>
Expand All @@ -15,6 +16,7 @@
<td>{{ p.CreatorUid }}</td>
<td>{{ p.Size }}</td>
<td>{{ p.MIMEType }}</td>
<td>{{ p.Keywords }}</td>
</tr>
</table>
</div>
2 changes: 1 addition & 1 deletion staticfiles/static/js/missions.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let app = new Vue({

fetch('/mission')
.then(resp => resp.json())
.then(function (data) {
.then(data => {
vm.missions = data;
vm.ts += 1;
});
Expand Down

0 comments on commit 2f03ee5

Please sign in to comment.