summaryrefslogtreecommitdiffabout
path: root/ui-shared.h
authorLars Hjemli <hjemli@gmail.com>2008-08-06 09:07:13 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-08-06 09:21:30 (UTC)
commit65b7b876aaaf50fc15060533359d6561f4f1819a (patch) (unidiff)
treec5cfe73456cf31afb13bcb12c5331fa711f89d71 /ui-shared.h
parente5da4bca54574522b28f88cab0dc8ebad9e35a73 (diff)
downloadcgit-65b7b876aaaf50fc15060533359d6561f4f1819a.zip
cgit-65b7b876aaaf50fc15060533359d6561f4f1819a.tar.gz
cgit-65b7b876aaaf50fc15060533359d6561f4f1819a.tar.bz2
ui-tree: link to plain view instead of blob view
The urls for plain view makes it possible to download blobs without knowing their SHA1, but the function needs to be promoted and the link from tree view seems like a perfect fit. PS: Although hidden, the blob view still is nice for direct blob access so there's no point in removing it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-shared.h') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-shared.h b/ui-shared.h
index 07da4b4..c5ce056 100644
--- a/ui-shared.h
+++ b/ui-shared.h
@@ -1,40 +1,42 @@
1#ifndef UI_SHARED_H 1#ifndef UI_SHARED_H
2#define UI_SHARED_H 2#define UI_SHARED_H
3 3
4extern char *cgit_repourl(const char *reponame); 4extern char *cgit_repourl(const char *reponame);
5extern char *cgit_fileurl(const char *reponame, const char *pagename, 5extern char *cgit_fileurl(const char *reponame, const char *pagename,
6 const char *filename, const char *query); 6 const char *filename, const char *query);
7extern char *cgit_pageurl(const char *reponame, const char *pagename, 7extern char *cgit_pageurl(const char *reponame, const char *pagename,
8 const char *query); 8 const char *query);
9 9
10extern void cgit_index_link(char *name, char *title, char *class, 10extern void cgit_index_link(char *name, char *title, char *class,
11 char *pattern, int ofs); 11 char *pattern, int ofs);
12extern void cgit_tree_link(char *name, char *title, char *class, char *head, 12extern void cgit_tree_link(char *name, char *title, char *class, char *head,
13 char *rev, char *path); 13 char *rev, char *path);
14extern void cgit_plain_link(char *name, char *title, char *class, char *head,
15 char *rev, char *path);
14extern void cgit_log_link(char *name, char *title, char *class, char *head, 16extern void cgit_log_link(char *name, char *title, char *class, char *head,
15 char *rev, char *path, int ofs, char *grep, 17 char *rev, char *path, int ofs, char *grep,
16 char *pattern); 18 char *pattern);
17extern void cgit_commit_link(char *name, char *title, char *class, char *head, 19extern void cgit_commit_link(char *name, char *title, char *class, char *head,
18 char *rev); 20 char *rev);
19extern void cgit_patch_link(char *name, char *title, char *class, char *head, 21extern void cgit_patch_link(char *name, char *title, char *class, char *head,
20 char *rev); 22 char *rev);
21extern void cgit_refs_link(char *name, char *title, char *class, char *head, 23extern void cgit_refs_link(char *name, char *title, char *class, char *head,
22 char *rev, char *path); 24 char *rev, char *path);
23extern void cgit_snapshot_link(char *name, char *title, char *class, 25extern void cgit_snapshot_link(char *name, char *title, char *class,
24 char *head, char *rev, char *archivename); 26 char *head, char *rev, char *archivename);
25extern void cgit_diff_link(char *name, char *title, char *class, char *head, 27extern void cgit_diff_link(char *name, char *title, char *class, char *head,
26 char *new_rev, char *old_rev, char *path); 28 char *new_rev, char *old_rev, char *path);
27extern void cgit_object_link(struct object *obj); 29extern void cgit_object_link(struct object *obj);
28 30
29extern void cgit_print_error(char *msg); 31extern void cgit_print_error(char *msg);
30extern void cgit_print_date(time_t secs, char *format, int local_time); 32extern void cgit_print_date(time_t secs, char *format, int local_time);
31extern void cgit_print_age(time_t t, time_t max_relative, char *format); 33extern void cgit_print_age(time_t t, time_t max_relative, char *format);
32extern void cgit_print_http_headers(struct cgit_context *ctx); 34extern void cgit_print_http_headers(struct cgit_context *ctx);
33extern void cgit_print_docstart(struct cgit_context *ctx); 35extern void cgit_print_docstart(struct cgit_context *ctx);
34extern void cgit_print_docend(); 36extern void cgit_print_docend();
35extern void cgit_print_pageheader(struct cgit_context *ctx); 37extern void cgit_print_pageheader(struct cgit_context *ctx);
36extern void cgit_print_filemode(unsigned short mode); 38extern void cgit_print_filemode(unsigned short mode);
37extern void cgit_print_snapshot_links(const char *repo, const char *head, 39extern void cgit_print_snapshot_links(const char *repo, const char *head,
38 const char *hex, int snapshots); 40 const char *hex, int snapshots);
39 41
40#endif /* UI_SHARED_H */ 42#endif /* UI_SHARED_H */