16 Commits

Author SHA1 Message Date
Zhongyue Luo
7b7836e5c6 Fixes git repository browser line number misalignment
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
2014-05-30 14:59:54 +08:00
Matt Farina
fab40d8e3f Increasing the number of repos displayed on git.openstack.org
to remove the need to paginate.

Change-Id: Iaa84f33e409357041ff4295711c303c1fad646dd
2014-05-21 15:02:17 -04:00
Elizabeth Krumbach Joseph
c2879e7da6 Add basic syntax highlighting to cgit
* 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
2013-09-30 12:39:21 -07:00
Jenkins
5dcb45e758 Merge "Move location of haproxy rsyslog conf file." 2013-08-29 00:22:14 +00:00
Elizabeth Krumbach Joseph
25dea97ce8 Make cgit side-by-side diffs the default
Gerrit shows side-by-side diffs by default so it's easier on
the eyes if we do the same for cgit.

Change-Id: I098276af1c0e96818f209beacf7df8e43aca811e
2013-08-28 15:58:05 -07:00
Clark Boylan
1c0c4b18df Move location of haproxy rsyslog conf file.
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
2013-08-28 15:53:38 -07:00
Mathieu Gagné
6bd2888255 Add commit-filter for cgit
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
2013-08-28 15:47:09 -04:00
Clark Boylan
684db551cf Enable cgit caching.
* 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
2013-08-19 12:56:54 -07:00
Elizabeth Krumbach Joseph
8dd215bece Add static web directory for cgit & initial files
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
2013-08-16 16:41:30 -07:00
Jenkins
a577234407 Merge "Cleanup cgit interface" 2013-08-15 15:56:02 +00:00
Jenkins
9631f49873 Merge "Add high max-repo-count for index page in cgit" 2013-08-15 15:54:29 +00:00
Jeremy Stanley
ef54ed93c9 Serve repos via git+https outside of cgit
* 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
2013-08-15 03:04:04 +00:00
Mathieu Gagné
0abefb0c28 Cleanup cgit interface
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
2013-08-14 18:06:43 -04:00
Elizabeth Krumbach Joseph
ff3ce8ec5a Add high max-repo-count for index page in cgit
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
2013-08-13 17:36:50 -07:00
Elizabeth Krumbach
8b81e9d213 Add httpd ssl support to git.openstack.org
Certificates have been added to hiera, now adding the support for
https in a new apache file.

Change-Id: I8447d60a15779b103556e53f04accf671dbf4843
2013-08-06 16:26:52 -07:00
Elizabeth Krumbach
52732dd550 Add cgit web service and git server
Define git.openstack.org server and deploy cgit web service with
Apache on CentOS.

Change-Id: Id3c7c870e25e4202915bc081454896895084f9af
2013-07-16 09:55:11 -07:00