Skip to content

Commit c02f232

Browse files
committed
if we don't have a rfc-file link to the PR
1 parent 330b330 commit c02f232

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

app/components/rfc-card.gjs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@ export default class RfcCard extends Component {
55
<template>
66
<div class="rfc-card">
77
<span class="card-number"><h2>#{{@rfc.number}}</h2></span>
8-
<LinkTo class="card-title" @route="rfc" @model={{@rfc.rfcFile}}>
9-
<h2>{{@rfc.title}}</h2>
10-
</LinkTo>
8+
9+
{{#if @rfc.rfcFile}}
10+
<LinkTo class="card-title" @route="rfc" @model={{@rfc.rfcFile}}>
11+
<h2>{{@rfc.title}}</h2>
12+
</LinkTo>
13+
{{else}}
14+
<a
15+
href="https://github.com/emberjs/rfcs/pull/{{@rfc.number}}"
16+
class="card-title"
17+
target="_blank"
18+
rel="noopener noreferrer"
19+
>
20+
<h2>{{@rfc.title}}</h2>
21+
</a>
22+
{{/if}}
1123
<p class="card-summary">{{@rfc.summary}}</p>
1224
{{#unless @compact}}
1325
<ul title="RFC Champions" class="card-champion rfc-champions">

0 commit comments

Comments
 (0)