From 648937d712ccad4a399337a5d9d5d33327302c86 Mon Sep 17 00:00:00 2001 From: Douglas Paz Date: Thu, 5 Jul 2018 10:06:54 -0300 Subject: [PATCH] Add request authorization in Repository route --- src/components/Repository.vue | 70 +++++++++++++++++++++++++++++++---- 1 file changed, 62 insertions(+), 8 deletions(-) diff --git a/src/components/Repository.vue b/src/components/Repository.vue index 6a64c150a..e66bf0608 100644 --- a/src/components/Repository.vue +++ b/src/components/Repository.vue @@ -40,24 +40,27 @@ class="hide-tabs-nav tabs-remove-padding">
-
-
-

- {{ repository.examples__count }} examples, - created {{ repository.created_at | moment('from') }}. -

+
+
+ +
+

You {{ repository.authorization.can_contribute | can_t }} contribute and you {{ repository.authorization.can_write | can_t }} write.

+

+ {{ repository.examples__count }} examples, + created {{ repository.created_at | moment('from') }}. +

+ class="column has-text-centered">
+
+ +
+
+ +

Wait for admin review.

+

{{ repository.description }}

@@ -341,6 +359,18 @@ text: [text to analyze]
+ +
+
+

Request Authorization

+ +
+
+
@@ -616,6 +660,16 @@ export default { .examples-title { margin: 2rem 8px 0; } + +.status-mascot { + display: inline-block; + vertical-align: bottom; + height: 36px; +} + +.status-center-36px { + margin: 3px; +}