+
+
Units
+
+ Browse notes and questions by unit. Pin the units you are studying to keep them handy.
+
+
+
+ {#if loading}
+
Loading
+ {:else}
+
+
+
+
+ {#if selectedUnit}
+
+
+
+ {selectedUnit.code}{selectedUnit.code2 ? ` / ${selectedUnit.code2}` : ""}
+
+
{selectedUnit.name}
+
+ {#if selectedUnit.description}
+
{selectedUnit.description}
+ {/if}
+
+ {#if contentLoading}
+
Loading
+ {:else}
+ {#if notes.length > 0}
+
Notes
+ {#each notes as note}
+
+ {/each}
+ {/if}
+
+ {#if questions.length > 0}
+
Questions
+ {#each questions as question}
+
+ {/each}
+ {/if}
+
+ {#if notes.length === 0 && questions.length === 0}
+
No content for this unit yet.
+
+ {/if}
+ {/if}
+
+ {:else}
+
Select a unit to see its notes and questions.
+ {/if}
+ {/if}
+