Merge branch 'chapril' of ssh://forge.april.org:222/Chapril/mobilizon.chapril.org-mobilizon into chapril
This commit is contained in:
commit
fa89c90c28
BIN
js/public/img/long_logo_chapril_mobilizon.png
Normal file
BIN
js/public/img/long_logo_chapril_mobilizon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
54
js/src/components/NavBar.vue
Normal file → Executable file
54
js/src/components/NavBar.vue
Normal file → Executable file
@ -2,34 +2,37 @@
|
||||
<template>
|
||||
<b-navbar type="is-secondary" wrapper-class="container" :active.sync="mobileNavbarActive">
|
||||
<template slot="brand">
|
||||
<b-navbar-item href='https://www.chapril.org'>
|
||||
<logo />
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.HOME }">
|
||||
<img src="/img/long_logo_chapril_mobilizon.png" alt="logo mobilizon" style="width: 5em" />
|
||||
</b-navbar-item>
|
||||
</template>
|
||||
<template slot="start">
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.HOME }" :aria-label="$t('Home')">
|
||||
<img src="img/mobilizon_logo.svg" alt="logo mobilizon" style='width: 5em' />
|
||||
</b-navbar-item>
|
||||
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.SEARCH }">{{
|
||||
$t("Explore")
|
||||
}}</b-navbar-item>
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.MY_EVENTS }">{{
|
||||
$t("My events")
|
||||
}}</b-navbar-item>
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.SEARCH }"
|
||||
>{{ $t("Explore") }}
|
||||
</b-navbar-item>
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.MY_EVENTS }"
|
||||
>{{ $t("My events") }}
|
||||
</b-navbar-item>
|
||||
<b-navbar-item
|
||||
tag="router-link"
|
||||
:to="{ name: RouteName.MY_GROUPS }"
|
||||
v-if="config && config.features.groups"
|
||||
>{{ $t("My groups") }}</b-navbar-item
|
||||
>
|
||||
>{{ $t("My groups") }}
|
||||
</b-navbar-item>
|
||||
|
||||
<b-navbar-item tag="span" v-if="config && config.features.eventCreation">
|
||||
<b-button tag="router-link" :to="{ name: RouteName.CREATE_EVENT }" type="is-primary">{{
|
||||
$t("Create")
|
||||
}}</b-button>
|
||||
<b-button tag="router-link" :to="{ name: RouteName.CREATE_EVENT }" type="is-primary"
|
||||
>{{ $t("Create") }}
|
||||
</b-button>
|
||||
</b-navbar-item>
|
||||
</template>
|
||||
<template slot="end">
|
||||
<b-navbar-item
|
||||
href="https://www.chapril.org"
|
||||
:aria-label="'www.chapril.org'"
|
||||
>
|
||||
<img src="/img/pics/logo_chapril_mobilizon.png" alt="logo chapril mobilizon" />
|
||||
</b-navbar-item>
|
||||
<b-navbar-item tag="div">
|
||||
<search-field @navbar-search="mobileNavbarActive = false" />
|
||||
</b-navbar-item>
|
||||
@ -70,9 +73,9 @@
|
||||
<hr class="navbar-divider" />
|
||||
</b-navbar-item>
|
||||
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.UPDATE_IDENTITY }">{{
|
||||
$t("My account")
|
||||
}}</b-navbar-item>
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.UPDATE_IDENTITY }"
|
||||
>{{ $t("My account") }}
|
||||
</b-navbar-item>
|
||||
|
||||
<!-- <b-navbar-item tag="router-link" :to="{ name: RouteName.CREATE_GROUP }">-->
|
||||
<!-- {{ $t('Create group') }}-->
|
||||
@ -82,8 +85,8 @@
|
||||
v-if="currentUser.role === ICurrentUserRole.ADMINISTRATOR"
|
||||
tag="router-link"
|
||||
:to="{ name: RouteName.ADMIN_DASHBOARD }"
|
||||
>{{ $t("Administration") }}</b-navbar-item
|
||||
>
|
||||
>{{ $t("Administration") }}
|
||||
</b-navbar-item>
|
||||
|
||||
<b-navbar-item tag="span">
|
||||
<span @click="logout">{{ $t("Log out") }}</span>
|
||||
@ -100,9 +103,9 @@
|
||||
<strong>{{ $t("Sign up") }}</strong>
|
||||
</router-link>
|
||||
|
||||
<router-link class="button is-light" :to="{ name: RouteName.LOGIN }">{{
|
||||
$t("Log in")
|
||||
}}</router-link>
|
||||
<router-link class="button is-light" :to="{ name: RouteName.LOGIN }"
|
||||
>{{ $t("Log in") }}
|
||||
</router-link>
|
||||
</div>
|
||||
</b-navbar-item>
|
||||
</template>
|
||||
@ -112,7 +115,6 @@
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Watch } from "vue-property-decorator";
|
||||
import Logo from "@/components/Logo.vue";
|
||||
import MobilizonLogoText from "../assets/mobilizon_logo.svg";
|
||||
import { GraphQLError } from "graphql";
|
||||
import { loadLanguageAsync } from "@/utils/i18n";
|
||||
import { CURRENT_USER_CLIENT, USER_SETTINGS } from "../graphql/user";
|
||||
|
Loading…
Reference in New Issue
Block a user