diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2017-08-27 20:35:08 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2017-08-27 20:43:36 +0200 |
commit | e1349d418ce4bd5957f8fe657c2ce80d2b502b81 (patch) | |
tree | a49482a66ce5d6d93b403c6d0770c0762b32cefd /static | |
parent | 5def4c9e01c87073d743a71827fee1be0ee41881 (diff) | |
download | git-arr-fork-e1349d418ce4bd5957f8fe657c2ce80d2b502b81.zip |
views: In the summary, make the sections toggable
As an experiment, make the sections of the summary to be toggable. This
can help readability, although it's unclear if it's worth the additional
complexity and could be removed later.
Diffstat (limited to 'static')
-rw-r--r-- | static/git-arr.css | 6 | ||||
-rw-r--r-- | static/git-arr.js | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/static/git-arr.css b/static/git-arr.css index b0f2de5..57bf13c 100644 --- a/static/git-arr.css +++ b/static/git-arr.css @@ -124,6 +124,12 @@ span.age-band2 { color: seagreen; } +/* Toggable titles */ +div.toggable-title { + font-weight: bold; + margin-bottom: 0.3em; +} + /* Commit message and diff. */ pre.commit-message { font-size: large; diff --git a/static/git-arr.js b/static/git-arr.js index d1e3b81..d39ca72 100644 --- a/static/git-arr.js +++ b/static/git-arr.js @@ -61,3 +61,13 @@ function replace_timestamps() { } } } + +function toggle(id) { + var e = document.getElementById(id); + + if (e.style.display == "") { + e.style.display = "none" + } else if (e.style.display == "none") { + e.style.display = "" + } +} |