Skip to content

Commit

Permalink
CS fixkes
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Apr 19, 2020
1 parent c422383 commit d86ce49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion assets/js/app/listing/Components/Table/Row/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
>
{{ record.extras.title | trim(62) | raw }}
</a>
<span v-if="record.extras.feature" class="badge" :class="`badge-${record.extras.feature}`">{{ record.extras.feature }}</span>
<span
v-if="record.extras.feature"
class="badge"
:class="`badge-${record.extras.feature}`"
>{{ record.extras.feature }}</span
>
<span class="listing__row--item-title-excerpt">{{
record.extras.excerpt | raw
}}</span>
Expand Down
6 changes: 4 additions & 2 deletions assets/scss/modules/base/_status.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
}
}

.badge-homepage, .badge-404, .badge-maintenance {
.badge-homepage,
.badge-404,
.badge-maintenance {
font-weight: normal;
vertical-align: middle;
margin-top: -0.4em;
Expand All @@ -61,4 +63,4 @@

.badge-maintenance {
background: $tertiary;
}
}
2 changes: 0 additions & 2 deletions src/Twig/ContentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ public function getLink(Content $content, bool $canonical = false): ?string
return $this->generateLink('record', $params, $canonical);
}


public function getEditLink(Content $content): ?string
{
if ($content->getId() === null || ! $this->security->getUser()) {
Expand Down Expand Up @@ -723,5 +722,4 @@ private function isSpecialpage(Content $content, string $type): bool

return false;
}

}

0 comments on commit d86ce49

Please sign in to comment.