Updated diff links

This commit is contained in:
Gregg8 2018-01-18 14:02:36 +11:00
parent 9568dbb6e3
commit b05ecb2250
3 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,7 @@
(ns day8.re-frame.trace.utils.utils)
(def diff-link "https://github.com/Day8/re-frame-trace/blob/master/docs/HyperlinkedInformation/Diffs.md")
(defn last-in-vec
"Get the last element in the vector"
[v]

View File

@ -1,6 +1,7 @@
(ns day8.re-frame.trace.view.app-db
(:require [devtools.prefs]
[devtools.formatters.core]
[day8.re-frame.trace.utils.utils :as utils]
[day8.re-frame.trace.view.components :as components]
[mranderson047.re-frame.v0v10v2.re-frame.core :as rf]
[mranderson047.reagent.v0v6v0.reagent.core :as r]
@ -249,7 +250,7 @@
:label "ONLY BEFORE"
:style {:margin-left common/gs-7s}
:target "_blank"
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]]
:href utils/diff-link]]]
^{:key "only-before-diff"}
[rc/v-box
@ -266,7 +267,7 @@
:label "ONLY AFTER"
:style {:margin-left common/gs-7s}
:target "_blank"
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]]
:href utils/diff-link]]]
^{:key "only-after-diff"}
[rc/v-box

View File

@ -1,5 +1,6 @@
(ns day8.re-frame.trace.view.subs
(:require [mranderson047.re-frame.v0v10v2.re-frame.core :as rf]
(:require [day8.re-frame.trace.utils.utils :as utils]
[mranderson047.re-frame.v0v10v2.re-frame.core :as rf]
[mranderson047.reagent.v0v6v0.reagent.core :as r]
[day8.re-frame.trace.utils.re-com :as rc :refer [css-join]]
[day8.re-frame.trace.common-styles :as common]
@ -200,7 +201,7 @@
:label "ONLY BEFORE"
:style {:margin-left common/gs-7s}
:target "_blank"
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]])
:href utils/diff-link]]])
(when (and open? diff?)
[rc/v-box
:height "60px"
@ -219,7 +220,7 @@
:label "ONLY AFTER"
:style {:margin-left common/gs-7s}
:target "_blank"
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]])
:href utils/diff-link]]])
(when (and open? diff?)
[rc/v-box
:height "60px"