Skip to content

Commit

Permalink
TheSettings: Move About to footer and add GitHub link (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jan 4, 2019
1 parent 4e87c33 commit e689ddc
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 33 deletions.
2 changes: 0 additions & 2 deletions config/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
"tabLayout": "Layout",
"tabSources": "Data Sources",
"tabLocalMappings": "Local Mappings",
"tabAbout": "About",
"showAllAncestors": "Always show all ancestors in concept details.",
"truncateNotes": "Do not truncate notes in concept details.",
"showAll": "Always show all mappings and suggestions in mapping browser.",
Expand Down Expand Up @@ -198,7 +197,6 @@
"tabLayout": "Layout",
"tabSources": "Datenquellen",
"tabLocalMappings": "Lokale Mappings",
"tabAbout": "Über",
"showAllAncestors": "Immer alle übergeordneten Konzepte anzeigen.",
"truncateNotes": "Notizen für Konzepte nicht abschneiden.",
"showAll": "Immer alle Mappings und Vorschläge anzeigen.",
Expand Down
73 changes: 42 additions & 31 deletions src/components/TheSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
centered
size="lg" >
<b-card
no-body>
no-body
footer-tag="footer">
<b-tabs
pills
card
Expand Down Expand Up @@ -139,37 +140,47 @@
</b-button>
</p>
</b-tab>
<b-tab
:title="$t('settings.tabAbout')" >
<p>
{{ $t("settings.suggestions1") }}
<a
href="https://github.com/gbv/cocoda/issues"
target="_blank" >{{ $t("settings.suggestions2") }}</a>{{ $t("settings.suggestions3") }}
</p>
<p v-if="config.buildInfo.gitTag && config.buildInfo.gitTag != ''">
{{ $t("settings.version") }}: {{ config.buildInfo.gitTag }}
</p>
<p v-if="config.buildInfo.gitCommit && config.buildInfo.gitCommitShort">
{{ $t("settings.currentCommit") }}:
<a
:href="'https://github.com/gbv/cocoda/commit/' + config.buildInfo.gitCommit"
target="_blank" >
{{ config.buildInfo.gitCommitShort }}
</a>
</p>
<p v-if="config.buildInfo.buildDate">
{{ $t("settings.buildDate") }}: {{ config.buildInfo.buildDate }}
</p>
<p v-if="config.impressumUrl">
<a
:href="config.impressumUrl"
target="_blank" >
{{ $t("settings.impressum") }}
</a>
</p>
</b-tab>
</b-tabs>
<span slot="footer">
<a
href="https://github.com/gbv/cocoda"
target="_blank" >
<font-awesome-icon :icon="['fab', 'github']" />
GitHub
</a>
<span v-if="config.buildInfo.gitTag && config.buildInfo.gitTag != ''">
{{ $t("settings.version") }} {{ config.buildInfo.gitTag }}
</span>
<span v-if="config.buildInfo.gitCommit && config.buildInfo.gitCommitShort">
{{ $t("settings.currentCommit") }}:
<a
:href="'https://github.com/gbv/cocoda/commit/' + config.buildInfo.gitCommit"
target="_blank" >
{{ config.buildInfo.gitCommitShort }}
</a>
</span>
<span v-if="config.buildInfo.buildDate">
{{ $t("settings.buildDate") }}: {{ config.buildInfo.buildDate }}
</span>
<span v-if="config.impressumUrl">
<a
:href="config.impressumUrl"
target="_blank" >
{{ $t("settings.impressum") }}
</a>
</span>
<br>
<span>
{{ $t("settings.suggestions1") }}
<a
href="https://github.com/gbv/cocoda/issues"
target="_blank" >{{ $t("settings.suggestions2") }}</a>{{ $t("settings.suggestions3") }}
</span>
</span>
</b-card>

</b-modal>
Expand Down

0 comments on commit e689ddc

Please sign in to comment.