fix: fix view report

This commit is contained in:
Barf-Vader
2025-06-12 17:52:16 +01:00
parent 8e49454b6f
commit 4c91968582

View File

@@ -158,9 +158,11 @@
</div> </div>
{/if} {/if}
</div> </div>
<a href="/space/new/edit"> {#if session}
<img src={crossUrl} alt="new" class="new-space" /> <a href="/space/new/edit">
</a> <img src={crossUrl} alt="new" class="new-space" />
</a>
{/if}
</div> </div>
</Navbar> </Navbar>
@@ -175,7 +177,11 @@
<input type="time" bind:value={closingFilter} /> <input type="time" bind:value={closingFilter} />
</label> </label>
</div> </div>
<a href="/space/reports" class="checkReports">Check Reports</a> {#if adminMode}
<div class="checkReports">
<Button href="/space/reports" type="link" style="red">Check Reports</Button>
</div>
{/if}
{#each filteredStudySpaces as studySpace (studySpace.id)} {#each filteredStudySpaces as studySpace (studySpace.id)}
{@const imgUrl = {@const imgUrl =
studySpace.study_space_images.length > 0 studySpace.study_space_images.length > 0