From: Christian Weiske Date: Mon, 26 Mar 2012 21:55:46 +0000 (+0200) Subject: anchors for file names X-Git-Tag: v0.1.0~97 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/64ff825aec91fd0f914d05cf17cd299be83b165c anchors for file names --- diff --git a/data/templates/base.htm b/data/templates/base.htm index f406f00..d0c3cee 100644 --- a/data/templates/base.htm +++ b/data/templates/base.htm @@ -1,7 +1,7 @@ - + {% block title %}{% endblock %} - Phorkie diff --git a/data/templates/display.htm b/data/templates/display.htm index 6575617..afdc75c 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -9,7 +9,7 @@ {% for file in repo.getFiles %}
-

{{file.getFilename}}

+

{{file.getFilename}}

raw

diff --git a/data/templates/exception.htm b/data/templates/exception.htm index 805342a..410c3c0 100644 --- a/data/templates/exception.htm +++ b/data/templates/exception.htm @@ -1,7 +1,7 @@ - + Error - Phorkie diff --git a/www/phorkie.css b/www/phorkie.css new file mode 100644 index 0000000..d6d1173 --- /dev/null +++ b/www/phorkie.css @@ -0,0 +1,16 @@ +/* show IDs for anchors */ +h1[id]:hover a.anchorlink:before, +h2[id]:hover a.anchorlink:before, +h3[id]:hover a.anchorlink:before, +h4[id]:hover a.anchorlink:before, +h5[id]:hover a.anchorlink:before, +h6[id]:hover a.anchorlink:before { + content: "\00B6";/* pilcrow */ + color: #888; + font-size: smaller; +} +a.anchorlink { + text-decoration: none; + margin-left: 0.5em; + font-size: smaller; +}