|
@@ -59,18 +59,22 @@
|
|
|
{:title (t :graph)
|
|
{:title (t :graph)
|
|
|
:options {:href (rfe/href :graph)}
|
|
:options {:href (rfe/href :graph)}
|
|
|
:icon svg/graph-sm})
|
|
:icon svg/graph-sm})
|
|
|
|
|
+
|
|
|
(when (or logged? (and (nfs/supported?) current-repo))
|
|
(when (or logged? (and (nfs/supported?) current-repo))
|
|
|
{:title (t :all-graphs)
|
|
{:title (t :all-graphs)
|
|
|
:options {:href (rfe/href :repos)}
|
|
:options {:href (rfe/href :repos)}
|
|
|
:icon svg/repos-sm})
|
|
:icon svg/repos-sm})
|
|
|
|
|
+
|
|
|
(when current-repo
|
|
(when current-repo
|
|
|
{:title (t :all-pages)
|
|
{:title (t :all-pages)
|
|
|
:options {:href (rfe/href :all-pages)}
|
|
:options {:href (rfe/href :all-pages)}
|
|
|
:icon svg/pages-sm})
|
|
:icon svg/pages-sm})
|
|
|
|
|
+
|
|
|
(when current-repo
|
|
(when current-repo
|
|
|
{:title (t :all-files)
|
|
{:title (t :all-files)
|
|
|
:options {:href (rfe/href :all-files)}
|
|
:options {:href (rfe/href :all-files)}
|
|
|
:icon svg/folder-sm})
|
|
:icon svg/folder-sm})
|
|
|
|
|
+
|
|
|
(when (and default-home current-repo)
|
|
(when (and default-home current-repo)
|
|
|
{:title (t :all-journals)
|
|
{:title (t :all-journals)
|
|
|
:options {:href (rfe/href :all-journals)}
|
|
:options {:href (rfe/href :all-journals)}
|
|
@@ -80,21 +84,10 @@
|
|
|
{:title (t :my-publishing)
|
|
{:title (t :my-publishing)
|
|
|
:options {:href (rfe/href :my-publishing)}})
|
|
:options {:href (rfe/href :my-publishing)}})
|
|
|
|
|
|
|
|
- (when current-repo
|
|
|
|
|
- {:title (t :my-publishing)
|
|
|
|
|
- :options {:href (rfe/href :my-publishing)}})
|
|
|
|
|
- {:title (t :excalidraw-title)
|
|
|
|
|
- :options {:href (rfe/href :draw)}
|
|
|
|
|
- :icon (svg/excalidraw-logo)}
|
|
|
|
|
{:title (t :settings)
|
|
{:title (t :settings)
|
|
|
:options {:href (rfe/href :settings)}
|
|
:options {:href (rfe/href :settings)}
|
|
|
:icon svg/settings-sm}
|
|
:icon svg/settings-sm}
|
|
|
- (when-let [project (and current-repo (state/get-current-project))]
|
|
|
|
|
- (let [link (str config/website "/" project)]
|
|
|
|
|
- {:title (str (t :go-to) "/" project)
|
|
|
|
|
- :options {:href link
|
|
|
|
|
- :target "_blank"}
|
|
|
|
|
- :icon svg/external-link}))
|
|
|
|
|
|
|
+
|
|
|
(when (and logged? current-repo)
|
|
(when (and logged? current-repo)
|
|
|
{:title (t :export)
|
|
{:title (t :export)
|
|
|
:options {:on-click (fn []
|
|
:options {:on-click (fn []
|