When browsing the source code in Chrome, the lines and line numbers are not
aligned. Setting a font family and font size fixes this problem.
Change-Id: I6809e7bf6eab869f2c686db73019bf70fdb51430
* modules/cgit/manifests/init.pp: Add highlight package
dependency to cgit server
* modules/openstack_project/files/git/cgitrc: Enable syntax
highlighting option
* modules/openstack_project/files/git/openstack.css: Add basic
syntax highlighting, copied from CSS that used to ship with
cgit by default
Closes-Bug: #1228361
Change-Id: Ic496215b5782527ac8159dedf639e549debeed2b
The haproxy rsyslog config file was left in the cgit module despite
pulling the haproxy stuff out of cgit and putting it in
openstack_project. Move the rsyslog config file into the
openstack_project module where it belongs.
Change-Id: I0fc45f7497f0f2682bbc5c7ae0da546a71b67188
A commit-filter adds the ability to format commit messages.
This commit-filter automatically adds links for:
- Change-id: Link to the change on review.o.o
- SHA1 hash: Link to the git commit on git.o.o
- Bug: Link to the bug on launchpad.net
- Blueprint: Link to the blueprint on launchpad.net
Change-Id: If8916948ca154e6957efb005d35812ae097721b7
* modules/openstack_project/files/cgitrc: Allow 1000 cache entries. Set
TTL for dynamic pages, repo summary pages, and the cgit front page to
one minute. Rely on the cache defaults for other pages. The various
options and their defaults can be viewed in cgitrc(5).
Change-Id: I49192b1ac43446a54b8ae98a44df5860bbafe1e0
Create and define a static directory for cgit to use.
Add initial favicon and logo files and include in cgitrc.
Also include custom CSS and background image.
Change-Id: If1e20d8e62557cc90aafbf92f4291b964400e029
* modules/cgit/templates/git.vhost.erb: Add Apache aliases to the
git-http-backend CGI and static git files where possible. This makes
git clone, pull and fetch HTTPS URLs more consistent with their git
protocol counterparts.
* modules/openstack_project/files/git/cgitrc: Adjust the displayed
HTTPS clone URL in the WebUI to match.
Change-Id: Ibb4fd41191f33b615ed36f78e1951555a1c0dad1
Cleanup UI by disabling useless elements:
- Disable ASCII art commit history graph on the log pages
- Do not show number of affected files per commit on the log pages
- Do not show number of affected lines per commit on the log pages
- Do not show owner for each repository on the index page
- Remove generic description on repository index page
Change-Id: I4df3f24ed9b6b160ecf4aebe8c1fdfb1a339accc
By default max-repo-count is set to 50, which causes multiple pages
of results for cgit. Bumping it up to 250 so that all current
projects all show up on the front page.
Change-Id: I527d0128e5376a8d61072fed4a7bb139558b12f6