Welcome to mirror list, hosted at ThFree Co, Russian Federation.

app.vue « components « index « organizations « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 21a11c821960cbc15579511af51b5a7b2cb56c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<script>
import { GlButton } from '@gitlab/ui';
import { __, s__ } from '~/locale';
import OrganizationsView from './organizations_view.vue';

export default {
  name: 'OrganizationsIndexApp',
  i18n: {
    organizations: __('Organizations'),
    newOrganization: s__('Organization|New organization'),
  },
  components: {
    GlButton,
    OrganizationsView,
  },
  inject: ['newOrganizationUrl'],
};
</script>

<template>
  <section>
    <div class="gl-display-flex gl-align-items-center">
      <h1 class="gl-my-4 gl-font-size-h-display">{{ $options.i18n.organizations }}</h1>
      <div class="gl-ml-auto">
        <gl-button :href="newOrganizationUrl" variant="confirm">{{
          $options.i18n.newOrganization
        }}</gl-button>
      </div>
    </div>
    <organizations-view />
  </section>
</template>