Skip to content

Commit f6b321e

Browse files
committed
Fix bug when not github or website url on library page
1 parent d04b48d commit f6b321e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎stubbornjava-webapp/ui/src/pages/library.hbs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<div class="col-md-12 col-lg-9">
77
<h1>{{library.name}} Java Library</h1>
88
<div class="post-meta">
9-
<span><a href="{{library.github}}"><i class="fa fa-github" aria-hidden="true"></i> GitHub</a></span>
10-
<span><a href="{{library.url}}"><i class="fa fa-link" aria-hidden="true"></i> Website</a></span>
9+
{{#if library.github}}<span><a href="{{library.github}}"><i class="fa fa-github" aria-hidden="true"></i> GitHub</a></span>{{/if}}
10+
{{#if library.url}}<span><a href="{{library.url}}"><i class="fa fa-link" aria-hidden="true"></i> Website</a></span>{{/if}}
1111
</div>
1212
<p>{{library.description}}</p>
1313
{{> templates/src/widgets/posts/recent-posts recentPosts=posts}}

0 commit comments

Comments
 (0)