Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
fix(repository.pug): environments are optional (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Mercado authored and ruxandrafed committed Jul 16, 2019
1 parent 5152871 commit a4a50d9
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions views/repository/repository.pug
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,22 @@ block content
div= day(schedule).fromNow()
div.small.text-muted= key

div.col-sm-6.col-lg-4
div.card
div.card-header
h3.card-title Environments
if repository.colophon.environments
div.col-sm-6.col-lg-4
div.card
div.card-header
h3.card-title Environments

div.table-responsive(style='max-height: 15rem')
table.table.card-table.table-striped.table-vcenter
tbody
each env in repository.colophon.environments
tr
td.w-1
span.avatar.avatar-sm(class=`avatar-${random()}` style=`background-image: url(//logo.clearbit.com/${domain(env.uri)}`)
td
div= env.title
div.small.text-muted: a(href= env.uri target='_blank')= env.uri
div.table-responsive(style='max-height: 15rem')
table.table.card-table.table-striped.table-vcenter
tbody
each env in repository.colophon.environments
tr
td.w-1
span.avatar.avatar-sm(class=`avatar-${random()}` style=`background-image: url(//logo.clearbit.com/${domain(env.uri)}`)
td
div= env.title
div.small.text-muted: a(href= env.uri target='_blank')= env.uri

if repository.colophon.references
div.col-sm-6.col-lg-4
Expand Down

0 comments on commit a4a50d9

Please sign in to comment.