Merge pull request #2627 from Human-Connection/2239-show-language-on-post-page

🍰 Added Language Tag For Posts
This commit is contained in:
Robert Schäfer 2019-12-30 15:38:58 +01:00 committed by GitHub
commit 180f2746d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,9 @@ export default {
.category-tag {
display: inline-flex;
align-items: center;
&.language {
float: right;
}
> .base-icon {
margin-right: $space-xx-small;

View File

@ -45,6 +45,11 @@
:icon="category.icon"
:name="$t(`contribution.category.name.${category.slug}`)"
/>
<!-- Post language -->
<ds-tag v-if="post.language" class="category-tag language">
<base-icon name="globe" />
{{ post.language.toUpperCase() }}
</ds-tag>
</div>
<ds-space margin-bottom="small" />
<!-- Tags -->