From 4ab656381ef5544006102497bbb50ee601a6a90b Mon Sep 17 00:00:00 2001 From: Eric Le Goff Date: Thu, 24 Jan 2019 15:36:05 +0100 Subject: [PATCH] Add introduction to documentation page --- src/cljs/sixsq/slipstream/webui/docs/views.cljs | 9 +++++++++ src/cljs/sixsq/slipstream/webui/i18n/dictionary.cljs | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/cljs/sixsq/slipstream/webui/docs/views.cljs b/src/cljs/sixsq/slipstream/webui/docs/views.cljs index 24532046..a3cb50f7 100644 --- a/src/cljs/sixsq/slipstream/webui/docs/views.cljs +++ b/src/cljs/sixsq/slipstream/webui/docs/views.cljs @@ -22,6 +22,14 @@ :overflow "hidden" :text-overflow "ellipsis"}} (:description entry)]]) +(defn documents-intro + [] + (let [tr (subscribe [::i18n-subs/tr])] + (fn [] + [:div [ui/Message {:info true} + [ui/Icon {:name "info"}] + (@tr [:documentation-intro])]]))) + (defn documents-table [] @@ -51,6 +59,7 @@ (defn documents-view [] [ui/Container {:fluid true} + [documents-intro] [documents-table]]) diff --git a/src/cljs/sixsq/slipstream/webui/i18n/dictionary.cljs b/src/cljs/sixsq/slipstream/webui/i18n/dictionary.cljs index 3e3c805a..57f95c0f 100644 --- a/src/cljs/sixsq/slipstream/webui/i18n/dictionary.cljs +++ b/src/cljs/sixsq/slipstream/webui/i18n/dictionary.cljs @@ -49,7 +49,8 @@ :describe "describe" :description "description" :details "details" - :documentation "documentation" + :documentation "api documentation" + :documentation-intro "Welcome to the API documentation. It has been designed to be comprehensive, covering all resources, and portable, allowing access from any programming language." :download "download" :drop-file "drop file" :edit "edit" @@ -218,7 +219,8 @@ :describe "décrire" :description "description" :details "détails" - :documentation "documentation" + :documentation "api documentation" + :documentation-intro "Bienvenue sur la documentation de l'API. Elle a été conçue pour etre lisible, exhaustive, et portable, accessible depuis n'importe quel langage de programmation." :download "télécharger" :drop-file "déposer un fichier" :edit "modifier"