repolist: add owner-filter

This allows custom links to be used for repository owners by
configuring a filter to be applied in the "Owner" column in the
repository list.
This commit is contained in:
Chris Burroughs 2014-08-04 09:23:08 -04:00 committed by Jason A. Donenfeld
parent 3c53ebfb57
commit 96ceb9a95a
7 changed files with 64 additions and 8 deletions

4
cgit.h
View file

@ -57,7 +57,7 @@ typedef enum {
} diff_type;
typedef enum {
ABOUT, COMMIT, SOURCE, EMAIL, AUTH
ABOUT, COMMIT, SOURCE, EMAIL, AUTH, OWNER
} filter_type;
struct cgit_filter {
@ -104,6 +104,7 @@ struct cgit_repo {
struct cgit_filter *commit_filter;
struct cgit_filter *source_filter;
struct cgit_filter *email_filter;
struct cgit_filter *owner_filter;
struct string_list submodules;
};
@ -257,6 +258,7 @@ struct cgit_config {
struct cgit_filter *commit_filter;
struct cgit_filter *source_filter;
struct cgit_filter *email_filter;
struct cgit_filter *owner_filter;
struct cgit_filter *auth_filter;
};