summary refs log tree commit diff
path: root/default.html
blob: 36736a64f37e3dee1bf54d407aa9c6340a4664ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html {
	font-family: monospace;
}
body {
	max-width: 104ch;
	margin: auto;
	padding: 0 1ch;
}

nav ul {
	padding: 0;
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
}
nav ul li {
	margin-right: 1.5ch;
}

main.index ol {
	list-style-type: none;
	padding: 0;
}
main.index ol li {
	margin: 1em 0;
}
main.index h2 {
	font-size: 1em;
	margin: 0;
}
main.index data.replies, main.index time {
	display: block;
}
main.index data.replies[value="0"] {
	display: none;
}
main.index data.replies::before {
	content: '+';
}

article.message header {
	background-color: gainsboro;
	padding: 1ex 1ch;
}
article.message:target header {
	background-color: khaki;
}
article.message header h2 {
	font-size: 1em;
	margin: 0;
}
article.message header nav ul {
	margin: 0;
}

address {
	display: inline;
	font-style: inherit;
}
ul.recipient {
	margin: 0;
	padding: 0;
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
}
ul.recipient li:not(:last-child)::after {
	content: ', ';
	margin-right: 1ch;
}
ul.recipient li.group > address::after {
	content: ': ';
}
ul.recipient li.group::after {
	content: '; ';
	margin-right: 1ch;
}
address.from::before {
	content: 'From: ';
}
address.from {
	margin-right: 1ch;
}
ul.to::before {
	content: 'To: ';
	margin-right: 1ch;
}
ul.cc::before {
	content: 'Cc: ';
	margin-right: 1ch;
}

pre {
	white-space: pre-wrap;
}
pre q::before, pre q::after {
	content: none;
}
pre q {
	color: navy;
}
pre q q {
	color: teal;
}
pre q q q {
	color: purple;
}
pre del {
	text-decoration: none;
	color: red;
}
pre ins {
	text-decoration: none;
	color: green;
}

ul.attachment {
	background-color: gainsboro;
	padding-top: 1ex;
	padding-bottom: 1ex;
	list-style-type: square;
}

details.subthread, article.message > article.message {
	border-left: 2px solid gainsboro;
	padding-left: 1ch;
}
details.subthread summary {
	margin: 1em 0;
}

footer {
	margin: 1em 0;
	text-align: center;
	color: gray;
}
footer a {
	color: inherit;
}
</style>
8ea73caabcb16ffb74baa70d35650027ed772c4'>ui-repolist.c: do not return random/stale data from read_agefileLars Hjemli2011-05-23 |/ | | | | | | | | | | When git/date.c:parse_date() cannot parse its input it returns -1. But read_agefile() checks if the result is different from zero, essentialy returning random data from the date buffer when parsing fails. This patch fixes the issue by verifying that the result from parse_date() is positive. Noticed-by: Julius Plenz <plenz@cis.fu-berlin.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com> * ui-repolist: fix redefinition of _XOPEN_SOURCEMark Lodato2010-09-04 | | | | | | | | | | | | Previously, ui-repolist.c set _GNU_SOURCE and then included a standard library before including <git-compat-util.h>. This was a problem, because <git-compat-util.h> redefined _XOPEN_SOURCE, which is set automatically by glibc when _GNU_SOURCE is set. However, <git-compat-util.h> already sets _GNU_SOURCE and includes both <string.h> and <time.h>, so there is no need to define _GNU_SOURCE or include either header within ui-repolist.c. Signed-off-by: Mark Lodato <lodatom@gmail.com> * Fix repolist search links with virtual rootGeoff Johnstone2009-09-20 | | | | | Signed-off-by: Geoff Johnstone <geoff.johnstone@googlemail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com> * ui-repolist: handle empty sections similar to NULL sectionsLars Hjemli2009-08-24 | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com> * ui-repolist.c: sort by section name, repo name as defaultLars Hjemli2009-08-24 | | | | | | | | When no sorting is requested by the client, cgit will now sort by section name followed by repo name. This allows repos to be registered/ discovered independently of their display order. Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Introduce 'section' as canonical spelling for 'repo.group'Lars Hjemli2009-08-24 | | | | | | | | The 'repo.' prefix should be reserved for repo-specific options, but the option 'repo.group' must still be honored to stay backwards compatible. Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Add and use a common readfile() functionLars Hjemli2009-08-18 | | | | | | | | | | | | This function is used to read the full content of a textfile into a newly allocated buffer (with zerotermination). It replaces the earlier readfile() in scan-tree.c (which was rather error-prone[1]), and is reused by read_agefile() in ui-repolist.c. 1: No checks for EINTR and EAGAIN, fixed-size buffer Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Merge branch 'stable'Lars Hjemli2009-08-18 |\ | * truncate buffer before reading empty filesSimon Arlott2009-08-18 | | | | | | | | | | | | | | | | | | | | If readfile() reads an empty file, fgets() won't truncate the buffer and it'll still contain the contents of the previously read file. [lh: fixed similar issue in ui-repolist.c] Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Signed-off-by: Lars Hjemli <hjemli@gmail.com> * | Add 'about-filter' and 'repo.about-filter' optionsLars Hjemli2009-08-09 |/ | | | | | | | These options can be used to execute a filter command on each about-page, both top-level and for each repository (repo.about-filter can be used to override the current about-filter). Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Merge branch 'full-log'Lars Hjemli2008-12-06 |\ | | | | | | | | | | Conflicts: cgit.c cgit.h | * ui-log: add support for showing the full commit messageLars Hjemli2008-11-29 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some users prefer to see the full message, so to make these users happy the new querystring parameter "showmsg" can be used to print the full commit message per log entry. A link is provided in the log heading to make this function accessible, and all links and forms tries to preserve the users preference. Note: the new link is not displayed on the summary page since the point of the summary page is to be a summary, but it is still obeyed if specified manually. Signed-off-by: Lars Hjemli <hjemli@gmail.com> * | Merge branch 'lh/sort-repolist'Lars Hjemli2008-12-06 |\ \ | * | ui-repolist: implement lazy caching of repo->mtimeLars Hjemli2008-11-29 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When sorting the list of repositories by their last modification time, cgit would (in the worst case) invoke fstat(3) four times and open(3) twice for each callback from qsort(3). This obviously scales very badly. Now, the calculated modtime for each repo is saved in repo->mtime, thus keeping the number of stat/open invocations identical for sorted and unsorted repo-listings. Signed-off-by: Lars Hjemli <hjemli@gmail.com> | * | ui-repolist: sort null values lastLars Hjemli2008-11-29 | | | | | | | | | | | | | | | | | | | | | When sorting on e.g. owner, it's not interesting to get all repos without owner at the top of the list. Signed-off-by: Lars Hjemli <hjemli@gmail.com> | * | ui-repolist: add support for sorting any columnLars Hjemli2008-11-29 | | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com> | * | ui-repolist: extract get_repo_modtime() from print_modtime()Lars Hjemli2008-11-29 | | | | | | | | | | | | | | | | | | | | | The new function is then used by both print_modtime() and cgit_reposort_modtime(). Signed-off-by: Lars Hjemli <hjemli@gmail.com> | * | Add support for sorting by Age in the repolistBenjamin Close2008-11-29 | |/ | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com> * / ui-repolist: avoid build warning for strcasestr(3)Lars Hjemli2008-12-05 |/ | | | | | | The non-standard function strcasestr is only defined if _GNU_SOURCE has also been defined. Signed-off-by: Lars Hjemli <hjemli@gmail.com> * ui-repolist: handle empty agefilesLars Hjemli2008-11-14 | | | | | | | When the agefile was empty the old code would happily reuse the static buffer filled by a previous call to read_agefile(). Signed-off-by: Lars Hjemli <hjemli@gmail.com> * ui-repolist + ui-shared: Use cgit_summary_link()Lars Hjemli2008-10-05 | | | | | | | This makes is possible to use cgit with repository urls containing special url characters like '#' and '?'. Signed-off-by: Lars Hjemli <hjemli@gmail.com> * ui-repolist: enable filtering of repos by pathLars Hjemli2008-09-15 | | | | | | | If a repo url is specified but no exact match is found in the list of repos the url will now be used as a prefix-filter. Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Add a pager on the repolistLars Hjemli2008-05-03 | | | | | | | | This enables a pager on the repolist which restricts the number of entries displayed per page, controlled by the new option `max-repo-count` (default value 50). Signed-off-by: Lars Hjemli <hjemli@gmail.com> * Prepare for 'about site' page / add 'root-readme' option to cgitrcLars Hjemli