ui: Prepare publication
This commit is contained in:
parent
5ece912ec9
commit
b5065df4c3
@ -31,6 +31,9 @@ func declareExportRoutes(router *gin.RouterGroup) {
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()})
|
||||
return
|
||||
}
|
||||
s.End = nil
|
||||
s.NextChangeTime = nil
|
||||
s.DelegatedQA = []string{}
|
||||
|
||||
teams, err := fic.ExportTeams(false)
|
||||
if err != nil {
|
||||
|
@ -65,7 +65,7 @@
|
||||
{#each $themesStore["0"].exercices as exercice, index}
|
||||
<DropdownItem href="{$themesStore["0"].urlid}/{exercice.urlid}" active={$current_theme && $current_theme.id == 0 && $current_exercice && $current_exercice.id == exercice.id}>
|
||||
{exercice.title}
|
||||
{#if exercice.solved}
|
||||
{#if $my && $my.id_team && exercice.solved}
|
||||
<Badge color="success" pill>
|
||||
<Icon name="check" />
|
||||
</Badge>
|
||||
|
@ -26,7 +26,7 @@
|
||||
document.body.style.backgroundColor = "";
|
||||
|
||||
let items = [];
|
||||
$: {
|
||||
function refresh_items() {
|
||||
const tmpitems = [];
|
||||
for (const th of $themes) {
|
||||
if (th.id == 0) continue;
|
||||
@ -43,6 +43,8 @@
|
||||
// Only apply after start
|
||||
if (!($time.startIn && j < nb_ex_max && j < $settings.unlockedStandaloneExercices))
|
||||
continue;
|
||||
} else if ($my && !$my.team_id && j >= nb_ex_max) {
|
||||
continue;
|
||||
}
|
||||
|
||||
tmpitems.splice(i, 0, {id: tmpitems.length, theme: $themesStore["0"], exercice: $themesStore["0"].exercices[j]});
|
||||
@ -65,6 +67,7 @@
|
||||
|
||||
items = tmpitems;
|
||||
}
|
||||
$: refresh_items($themes);
|
||||
</script>
|
||||
|
||||
<Container class="mt-3 mb-5">
|
||||
|
Loading…
Reference in New Issue
Block a user