diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-13 23:28:46 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-13 23:28:46 +0300 |
| commit | cff3be9a89e0654137cbfb361a96158bb2bc8202 (patch) | |
| tree | d71177fe4d074d3841435d31c5b9fd142ff971ad /src/client | |
| parent | 1f7b46057c8f4f9eda085f25c60919edfd64a101 (diff) | |
client/activity: add topo-diff or attr-diff classes to div
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/view/activity.js | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
