Skip to content

Commit

Permalink
Updating landing page, fixing version info showing in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
timparsons committed Oct 4, 2023
1 parent 6d73356 commit 72f8a4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
14 changes: 9 additions & 5 deletions src/components/layouts/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@
<div class="level-left">
<nav class="level-item">
<div class="level">
<!-- <div class="level-item">-->
<!-- <a href="/">Terms of Use</a>-->
<!-- </div>-->
<!-- <div class="level-item">-->
<!-- <a href="/">Privacy Policy</a>-->
<!-- </div>-->
<div class="level-item">
<a href="/">Terms of Use</a>
</div>
<div class="level-item">
<a href="/">Privacy Policy</a>
<a href="https://breedinginsight.atlassian.net/wiki/spaces/LH/pages/1680179235/DeltaBreed+User+Manual">User Manual</a>
</div>
<div class="level-item">
<a href="https://breedinginsight.org/contact-us/">Contact Us</a>
Expand Down Expand Up @@ -97,6 +100,7 @@
import { Component, Vue } from 'vue-property-decorator';
import VersionInfo from '@/components/layouts/VersionInfo.vue';
import {mapGetters} from "vuex";
import { SandboxMode } from '@/util/config';

@Component({
components: { VersionInfo },
Expand All @@ -111,7 +115,7 @@ export default class Footer extends Vue {
copyrightYear = new Date().getFullYear();

get showVersionInfo () {
return !this.$route.meta.layout || this.$route.meta.layout == 'simple' || this.$route.meta.layout == 'noSideBar';
return !this.$route.meta.layout || this.$route.meta.layout == 'simple' || this.$route.meta.layout == 'noSideBar' || (this.$route.meta.layout == 'infoSideBar' && process.env.VUE_APP_SANDBOX !== SandboxMode.Public && process.env.VUE_APP_SANDBOX !== SandboxMode.Coordinator);
}

get showSidebar() {
Expand Down
15 changes: 5 additions & 10 deletions src/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<template>
<div class="columns is-multiline is-align-items-stretch mt-4">
<article class="column">
<article class="column" v-if="sandboxConfig === SandboxMode.Public">
<div
class="card"
style="height:100%"
Expand Down Expand Up @@ -107,15 +107,6 @@
Our breeding collaborators
</h1>
<p>The USDA Agricultural Research Service (ARS) supports breeding programs for approximately 90 specialty species.</p>
<p>Breeding Insight is currently working with six species:</p>
<ul>
<li>Alfalfa</li>
<li>Blueberry</li>
<li>Table Grape</li>
<li>Atlantic Salmon</li>
<li>Rainbow Trout</li>
<li>Sweetpotato</li>
</ul>
<p>Learn more about our projects for each species at <a href="https://www.breedinginsight.org">www.breedinginsight.org</a>.</p>
</div>
</div>
Expand Down Expand Up @@ -177,5 +168,9 @@
window.location.href = process.env.VUE_APP_BI_API_ROOT+'/sso/start';
}

get sandboxConfig() {
return process.env.VUE_APP_SANDBOX;
}

}
</script>

0 comments on commit 72f8a4e

Please sign in to comment.