From cff3be9a89e0654137cbfb361a96158bb2bc8202 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 13 May 2015 23:28:46 +0300 Subject: client/activity: add topo-diff or attr-diff classes to div --- src/client/view/activity.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/view/activity.js b/src/client/view/activity.js index f0488244..65e856c9 100644 --- a/src/client/view/activity.js +++ b/src/client/view/activity.js @@ -120,6 +120,12 @@ function Activity(diff) explanation = (sentence !== undefined && sentence.length > 0) ? sentence : explanation_from_diff(diff); this.div = new_div; + if (is_topo(diff)) { + new_div[0].classList.add('topo-diff'); + } + if (is_attr(diff)) { + new_div[0].classList.add('attr-diff'); + } this.creation_date = meta.ts_created !== undefined ? new Date(meta.ts_created) : new Date(); this.commit = meta.commit; // [!] unused, should link to permanent url this.author = author; -- cgit v1.3.1