<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit, branch ch/about-link</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>https://git.zx2c4.com/cgit/atom/?h=ch%2Fabout-link</id>
<link rel='self' href='https://git.zx2c4.com/cgit/atom/?h=ch%2Fabout-link'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/'/>
<updated>2024-01-30T08:08:38Z</updated>
<entry>
<title>ui-tree: add about link in tree view list</title>
<updated>2024-01-30T08:08:38Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2019-01-02T08:20:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=c40704523b9936fefb418494f9bf4e96e8923b73'/>
<id>urn:sha1:c40704523b9936fefb418494f9bf4e96e8923b73</id>
<content type='text'>
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-tree: provide link to about page for pretty formatting</title>
<updated>2024-01-30T08:08:38Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2018-12-28T23:13:54Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=c30a42306ad379fa2d843486804b4a976cdb2d64'/>
<id>urn:sha1:c30a42306ad379fa2d843486804b4a976cdb2d64</id>
<content type='text'>
We have an ongoing discussion about display filters and pretty
formatting in tree view. How about providing a link to about page
for pretty formatting?

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>config: make empty js= omit script tag</title>
<updated>2023-01-10T16:52:54Z</updated>
<author>
<name>Samuel Lidén Borell</name>
<email>samuel@kodafritt.se</email>
</author>
<published>2023-01-07T09:32:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=00ecfaadea2c40cc62b7a43e246384329e6ddb98'/>
<id>urn:sha1:00ecfaadea2c40cc62b7a43e246384329e6ddb98</id>
<content type='text'>
According to the cgitrc man page, an empty js= value should cause the
script tag to be omitted. But instead, a script tag with an empty URL
is emitted. The same applies to css. So, skip emitting a tag if the
specified string is empty.

Signed-off-by: Samuel Lidén Borell &lt;samuel@kodafritt.se&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>js: add dynamic age update</title>
<updated>2022-12-19T15:50:23Z</updated>
<author>
<name>Andy Green</name>
<email>andy@warmcat.com</email>
</author>
<published>2018-06-24T07:05:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=907134b7a29177cb45aa461c549c004b1ae875af'/>
<id>urn:sha1:907134b7a29177cb45aa461c549c004b1ae875af</id>
<content type='text'>
This patch updates the emitted "ages" dynamically on the client side.

After updating on completion of the document load, it sets a timer
to update according to the smallest age it found.  If there are any
ages listed in minutes, then it will update again in 10s.  When the
most recent age is in hours, it updates every 5m.  If days, then
every 30m and so on.

This keeps the cost of the dynamic updates at worst once per 10s.
The updates are done entirely on the client side without contact
with the server.

To make this work reliably, since parsing datetimes is unreliable in
browser js, the unix time is added as an attribute to all age spans.

To make that reliable cross-platform, the unix time is treated as a
uint64_t when it is formatted for printing.

The rules for display conversion of the age is aligned with the
existing server-side rules in ui-shared.h.

If the client or server-side time are not synchronized by ntpd etc,
ages shown on the client will not relate to the original ages computed
at the server.  The client updates the ages immediately when the
DOM has finished loading, so in the case the times at the server and
client are not aligned, this patch changes what the user sees on the
page to reflect patch age compared to client time.

If the server and client clocks are aligned, this patch makes no
difference to what is seen on the page.

Signed-off-by: Andy Green &lt;andy@warmcat.com&gt;
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>config: add js</title>
<updated>2022-12-19T15:50:21Z</updated>
<author>
<name>Andy Green</name>
<email>andy@warmcat.com</email>
</author>
<published>2018-06-23T10:25:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=aee39b4e9a45e1ba507c0017de50bb9dbbae7af8'/>
<id>urn:sha1:aee39b4e9a45e1ba507c0017de50bb9dbbae7af8</id>
<content type='text'>
Just like the config allows setting css URL path, add a config for
setting the js URL path

Signed-off-by: Andy Green &lt;andy@warmcat.com&gt;
Reviewed-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>css: change to be a list</title>
<updated>2022-12-19T15:49:09Z</updated>
<author>
<name>Andy Green</name>
<email>andy@warmcat.com</email>
</author>
<published>2018-07-03T03:33:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=093ac9697068833a15cae2dbbd5ffbc0203741c0'/>
<id>urn:sha1:093ac9697068833a15cae2dbbd5ffbc0203741c0</id>
<content type='text'>
Without changing the default behaviour of including
/cgit.css if nothing declared, allow the "css" config
to be given multiple times listing one or more
alternative URL paths to be included in the document
head area.

Signed-off-by: Andy Green &lt;andy@warmcat.com&gt;
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>cgitrc: handle value "0" for max-repo-count</title>
<updated>2022-12-19T15:22:26Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2018-07-16T14:27:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=91f25909b9572ebdf3a0fed8224bf03d0d9bf3db'/>
<id>urn:sha1:91f25909b9572ebdf3a0fed8224bf03d0d9bf3db</id>
<content type='text'>
Setting max-repo-count to "0" makes cgit loop forever generating page
links. Make this a special value to show all repositories.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>cache: tolerate short writes in print_slot</title>
<updated>2022-12-19T15:13:58Z</updated>
<author>
<name>Hristo Venev</name>
<email>hristo@venev.name</email>
</author>
<published>2022-05-07T17:07:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=852cb3b0e267dd2ddfd2eeef6275435098c606e7'/>
<id>urn:sha1:852cb3b0e267dd2ddfd2eeef6275435098c606e7</id>
<content type='text'>
sendfile() can return after a short read/write, so we may need to call
it more than once. As suggested in the manual page, we fall back to
read/write if sendfile fails with EINVAL or ENOSYS.

On the read/write path, use write_in_full which deals with short writes.

Signed-off-by: Hristo Venev &lt;hristo@venev.name&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>global: use release_commit_memory()</title>
<updated>2022-12-19T15:13:58Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2022-02-13T15:34:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=4c520cefc90b10566fcc8a0b006287494a7770e1'/>
<id>urn:sha1:4c520cefc90b10566fcc8a0b006287494a7770e1</id>
<content type='text'>
Instead of calling two separate Git functions to free memory associated
with a commit object, use Git's wrapper which does this.  This also
counts as a potential future bug fix since release_commit_memory() also
resets the parsed state of the commit, meaning any attempt to use it in
the future will correctly fill out the fields again.

release_commit_memory() does not set parents to zero, so keep that for
additional safety in case CGit checks this without calling
parse_commit() again.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>css: reset font size for blame oid</title>
<updated>2022-12-19T15:13:58Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2022-02-13T15:35:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=d071f28cfa9a49f3aa6355b17e9d9fa7224ff49f'/>
<id>urn:sha1:d071f28cfa9a49f3aa6355b17e9d9fa7224ff49f</id>
<content type='text'>
In Firefox, the hashes in the blame UI are out of step with the line
number and content leading to ever increasing vertical misalignment.

This is caused by the .oid class setting font-size to 90%, so override
this back to 100% for the blame case, bringing the height of lines in
all three columns of the table back into step.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
</feed>
