author | Lars Hjemli <hjemli@gmail.com> | 2008-06-26 11:53:30 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-06-26 11:53:30 (UTC) |
commit | de5e9281719809c5b07051faa88e95bd16e8d485 (patch) (unidiff) | |
tree | 30c6f6bc74c067ebad78e45e5602011006332f8b /cgit.h | |
parent | 29b37e9781ce1bb04e558c7490d2c29eb1a477e5 (diff) | |
download | cgit-de5e9281719809c5b07051faa88e95bd16e8d485.zip cgit-de5e9281719809c5b07051faa88e95bd16e8d485.tar.gz cgit-de5e9281719809c5b07051faa88e95bd16e8d485.tar.bz2 |
Add support for including a footer on all pages
The new cgitrc option `footer` can be used to include a html-file which
replaces the standard 'generated by cgit' message at the bottom of each
page.
Suggested-by: Peter Danenberg <pcd@wikitex.org>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -80,96 +80,97 @@ struct commitinfo { | |||
80 | char *msg; | 80 | char *msg; |
81 | char *msg_encoding; | 81 | char *msg_encoding; |
82 | }; | 82 | }; |
83 | 83 | ||
84 | struct taginfo { | 84 | struct taginfo { |
85 | char *tagger; | 85 | char *tagger; |
86 | char *tagger_email; | 86 | char *tagger_email; |
87 | int tagger_date; | 87 | int tagger_date; |
88 | char *msg; | 88 | char *msg; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | struct refinfo { | 91 | struct refinfo { |
92 | const char *refname; | 92 | const char *refname; |
93 | struct object *object; | 93 | struct object *object; |
94 | union { | 94 | union { |
95 | struct taginfo *tag; | 95 | struct taginfo *tag; |
96 | struct commitinfo *commit; | 96 | struct commitinfo *commit; |
97 | }; | 97 | }; |
98 | }; | 98 | }; |
99 | 99 | ||
100 | struct reflist { | 100 | struct reflist { |
101 | struct refinfo **refs; | 101 | struct refinfo **refs; |
102 | int alloc; | 102 | int alloc; |
103 | int count; | 103 | int count; |
104 | }; | 104 | }; |
105 | 105 | ||
106 | struct cgit_query { | 106 | struct cgit_query { |
107 | int has_symref; | 107 | int has_symref; |
108 | int has_sha1; | 108 | int has_sha1; |
109 | char *raw; | 109 | char *raw; |
110 | char *repo; | 110 | char *repo; |
111 | char *page; | 111 | char *page; |
112 | char *search; | 112 | char *search; |
113 | char *grep; | 113 | char *grep; |
114 | char *head; | 114 | char *head; |
115 | char *sha1; | 115 | char *sha1; |
116 | char *sha2; | 116 | char *sha2; |
117 | char *path; | 117 | char *path; |
118 | char *name; | 118 | char *name; |
119 | char *mimetype; | 119 | char *mimetype; |
120 | int ofs; | 120 | int ofs; |
121 | }; | 121 | }; |
122 | 122 | ||
123 | struct cgit_config { | 123 | struct cgit_config { |
124 | char *agefile; | 124 | char *agefile; |
125 | char *cache_root; | 125 | char *cache_root; |
126 | char *clone_prefix; | 126 | char *clone_prefix; |
127 | char *css; | 127 | char *css; |
128 | char *footer; | ||
128 | char *index_header; | 129 | char *index_header; |
129 | char *index_info; | 130 | char *index_info; |
130 | char *logo; | 131 | char *logo; |
131 | char *logo_link; | 132 | char *logo_link; |
132 | char *module_link; | 133 | char *module_link; |
133 | char *repo_group; | 134 | char *repo_group; |
134 | char *robots; | 135 | char *robots; |
135 | char *root_title; | 136 | char *root_title; |
136 | char *root_desc; | 137 | char *root_desc; |
137 | char *root_readme; | 138 | char *root_readme; |
138 | char *script_name; | 139 | char *script_name; |
139 | char *virtual_root; | 140 | char *virtual_root; |
140 | int cache_size; | 141 | int cache_size; |
141 | int cache_dynamic_ttl; | 142 | int cache_dynamic_ttl; |
142 | int cache_max_create_time; | 143 | int cache_max_create_time; |
143 | int cache_repo_ttl; | 144 | int cache_repo_ttl; |
144 | int cache_root_ttl; | 145 | int cache_root_ttl; |
145 | int cache_static_ttl; | 146 | int cache_static_ttl; |
146 | int enable_index_links; | 147 | int enable_index_links; |
147 | int enable_log_filecount; | 148 | int enable_log_filecount; |
148 | int enable_log_linecount; | 149 | int enable_log_linecount; |
149 | int max_repo_count; | 150 | int max_repo_count; |
150 | int max_commit_count; | 151 | int max_commit_count; |
151 | int max_lock_attempts; | 152 | int max_lock_attempts; |
152 | int max_msg_len; | 153 | int max_msg_len; |
153 | int max_repodesc_len; | 154 | int max_repodesc_len; |
154 | int nocache; | 155 | int nocache; |
155 | int renamelimit; | 156 | int renamelimit; |
156 | int snapshots; | 157 | int snapshots; |
157 | int summary_branches; | 158 | int summary_branches; |
158 | int summary_log; | 159 | int summary_log; |
159 | int summary_tags; | 160 | int summary_tags; |
160 | }; | 161 | }; |
161 | 162 | ||
162 | struct cgit_page { | 163 | struct cgit_page { |
163 | time_t modified; | 164 | time_t modified; |
164 | time_t expires; | 165 | time_t expires; |
165 | char *mimetype; | 166 | char *mimetype; |
166 | char *charset; | 167 | char *charset; |
167 | char *filename; | 168 | char *filename; |
168 | char *title; | 169 | char *title; |
169 | }; | 170 | }; |
170 | 171 | ||
171 | struct cgit_context { | 172 | struct cgit_context { |
172 | struct cgit_query qry; | 173 | struct cgit_query qry; |
173 | struct cgit_config cfg; | 174 | struct cgit_config cfg; |
174 | struct cgit_repo *repo; | 175 | struct cgit_repo *repo; |
175 | struct cgit_page page; | 176 | struct cgit_page page; |