Skip to content

Commit

Permalink
tweak lean link display
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdabbs committed Dec 6, 2023
1 parent d763464 commit 03216d3
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions packages/viewer/src/components/Properties/Show.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<script lang="ts">
import type { Property } from 'src/models'
import { Aliases, References, Tabs, Title, Typeset } from '../Shared'
import {
Aliases,
Icons,
Link,
References,
Tabs,
Title,
Typeset,
} from '../Shared'
import Spaces from './Spaces.svelte'
import Theorems from './Theorems.svelte'
import Check from '../Shared/Icons/Check.svelte'
export let property: Property
export let tab: 'spaces' | 'theorems' | 'references'
Expand All @@ -26,19 +35,19 @@
</h1>

<section class="description">
{#if property?.lean}
<p>
<Icons.Robot />
<a href={leanUrl(property.lean)} target="_blank">
<code>{property.lean.id}</code>
in
<code>{property.lean.module}</code>
</a>
</p>
{/if}
<Typeset body={property.description} />
</section>

{#if property?.lean}
<section>
<a href={leanUrl(property.lean)} target="_blank">
Formalized in Lean as <code>{property.lean.id}</code>
in
<code>{property.lean.module}</code>
</a>
</section>
{/if}

<Tabs {tabs} {tab} {rel} />

{#if tab === 'spaces'}
Expand Down

0 comments on commit 03216d3

Please sign in to comment.