Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/pages/[...package].vue
Original file line number Diff line number Diff line change
Expand Up @@ -735,12 +735,13 @@ function handleClick(event: MouseEvent) {
<dl
class="grid grid-cols-2 sm:grid-cols-11 gap-3 sm:gap-4 py-4 sm:py-6 mt-4 sm:mt-6 border-t border-b border-border"
>
<div v-if="pkg.license" class="space-y-1 sm:col-span-2">
<div class="space-y-1 sm:col-span-2">
<dt class="text-xs text-fg-subtle uppercase tracking-wider">
{{ $t('package.stats.license') }}
</dt>
<dd class="font-mono text-sm text-fg">
<LicenseDisplay :license="pkg.license" />
<LicenseDisplay v-if="pkg.license" :license="pkg.license" />
<span v-else>{{ $t('package.license.none') }}</span>
</dd>
</div>

Expand Down
3 changes: 2 additions & 1 deletion i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@
"no_types": "No TypeScript types"
},
"license": {
"view_spdx": "View license text on SPDX"
"view_spdx": "View license text on SPDX",
"none": "None"
},
"vulnerabilities": {
"no_description": "No description available",
Expand Down
3 changes: 2 additions & 1 deletion lunaria/files/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@
"no_types": "No TypeScript types"
},
"license": {
"view_spdx": "View license text on SPDX"
"view_spdx": "View license text on SPDX",
"none": "None"
},
"vulnerabilities": {
"no_description": "No description available",
Expand Down