Fix invalid ERB in featured author link. (#6428) [deploy]

This commit is contained in:
Michel 2020-03-03 20:43:19 +01:00 committed by GitHub
parent 12803fb179
commit f875f9b4b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -67,14 +67,14 @@ export const FeaturedArticle = ({
/>
</a>
<div className="featured-user-name">
<a href="/<%= article.cached_user.username %>">
<a href={`/${article.user.username}`}>
{article.user.name} {' '}
<time dateTime={article.published_timestamp}>
{article.readable_publish_date}
</time>
<span
className="time-ago-indicator-initial-placeholder"
data-seconds="<%= article.published_at_int %>"
data-seconds={`${article.published_at_int}`}
/>
</a>
</div>

View file

@ -64,7 +64,7 @@ exports[`<FeaturedArticle /> component should render a bookmarked featured artic
class="featured-user-name"
>
<a
href="/<%= article.cached_user.username %>"
href="/Emil99"
>
Stella Macejkovic ・
<time
@ -74,7 +74,7 @@ exports[`<FeaturedArticle /> component should render a bookmarked featured artic
</time>
<span
class="time-ago-indicator-initial-placeholder"
data-seconds="<%= article.published_at_int %>"
data-seconds="1582037964819"
/>
</a>
</div>
@ -234,7 +234,7 @@ exports[`<FeaturedArticle /> component should render a standard article 1`] = `
class="featured-user-name"
>
<a
href="/<%= article.cached_user.username %>"
href="/Emil99"
>
Stella Macejkovic ・
<time
@ -244,7 +244,7 @@ exports[`<FeaturedArticle /> component should render a standard article 1`] = `
</time>
<span
class="time-ago-indicator-initial-placeholder"
data-seconds="<%= article.published_at_int %>"
data-seconds="1582037964819"
/>
</a>
</div>