2 2c251c14 2020-01-15 tracey * Copyright (c) 2019 Tracey Emery <tracey@traceyemery.net>
4 2c251c14 2020-01-15 tracey * Permission to use, copy, modify, and distribute this software for any
5 2c251c14 2020-01-15 tracey * purpose with or without fee is hereby granted, provided that the above
6 2c251c14 2020-01-15 tracey * copyright notice and this permission notice appear in all copies.
8 2c251c14 2020-01-15 tracey * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 2c251c14 2020-01-15 tracey * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 2c251c14 2020-01-15 tracey * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 2c251c14 2020-01-15 tracey * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 2c251c14 2020-01-15 tracey * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 2c251c14 2020-01-15 tracey * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 2c251c14 2020-01-15 tracey * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 2c251c14 2020-01-15 tracey * header nav
20 2c251c14 2020-01-15 tracey * ***index
22 2c251c14 2020-01-15 tracey * Projects
23 2c251c14 2020-01-15 tracey * Project|Description|Owner|Last Commit
24 2c251c14 2020-01-15 tracey * DIV (summary|shortlog|log|tree)
25 2c251c14 2020-01-15 tracey * ***summary
26 2c251c14 2020-01-15 tracey * repo navs | search
27 2c251c14 2020-01-15 tracey * repo description
28 2c251c14 2020-01-15 tracey * description
30 2c251c14 2020-01-15 tracey * last commit
32 2c251c14 2020-01-15 tracey * shortlog
33 2c251c14 2020-01-15 tracey * Date|committer|commit description (commit|commitdiff|tree|snapshot)
35 2c251c14 2020-01-15 tracey * create date | head (shortlog|log|tree)
42 2c251c14 2020-01-15 tracey #ifndef GOTWEB_UI_H
43 2c251c14 2020-01-15 tracey #define GOTWEB_UI_H
45 2c251c14 2020-01-15 tracey /* general html */
47 2c251c14 2020-01-15 tracey char *head =
48 2c251c14 2020-01-15 tracey "<meta name='viewport' content='initial-scale=1.0," \
49 2c251c14 2020-01-15 tracey " user-scalable=no' />" \
50 2c251c14 2020-01-15 tracey "<meta charset='utf-8' />" \
51 2c251c14 2020-01-15 tracey "<meta name='msapplication-TileColor' content='#da532c' />" \
52 2c251c14 2020-01-15 tracey "<meta name='theme-color' content='#ffffff' />" \
53 2c251c14 2020-01-15 tracey "<link rel='apple-touch-icon' sizes='180x180'" \
54 2c251c14 2020-01-15 tracey " href='/apple-touch-icon.png' />" \
55 2c251c14 2020-01-15 tracey "<link rel='icon' type='image/png' sizes='32x32'" \
56 2c251c14 2020-01-15 tracey " href='/favicon-32x32.png' />" \
57 2c251c14 2020-01-15 tracey "<link rel='icon' type='image/png' sizes='16x16'" \
58 2c251c14 2020-01-15 tracey " href='/favicon-16x16.png' />" \
59 2c251c14 2020-01-15 tracey "<link rel='manifest' href='/site.webmanifest' />" \
60 2c251c14 2020-01-15 tracey "<link rel='mask-icon' href='/safari-pinned-tab.svg'" \
61 2c251c14 2020-01-15 tracey " color='#5bbad5' />" \
62 2c251c14 2020-01-15 tracey "<link rel='stylesheet' type='text/css' href='/gotweb.css' />";
64 2c251c14 2020-01-15 tracey char *got_link =
65 2c251c14 2020-01-15 tracey "<div id='got_link'>" \
66 2c251c14 2020-01-15 tracey "<a href='%s' target='_sotd'><img src='/%s' alt='logo' /></a>" \
69 2c251c14 2020-01-15 tracey char *site_link =
70 2c251c14 2020-01-15 tracey "<div id='site_link'>" \
71 2c251c14 2020-01-15 tracey "<a href='%s'>%s</a> %s %s" \
74 2c251c14 2020-01-15 tracey char *site_owner =
75 2c251c14 2020-01-15 tracey "<div id='site_owner_wrapper'><div id='site_owner'>%s</div></div>";
77 2c251c14 2020-01-15 tracey char *search =
78 2c251c14 2020-01-15 tracey "<div id='search'>" \
79 2c251c14 2020-01-15 tracey "<form method='POST'>" \
80 2c251c14 2020-01-15 tracey "<input type='search' id='got-search' name='got-search' size='15'" \
81 2c251c14 2020-01-15 tracey " maxlength='50' />" \
82 2c251c14 2020-01-15 tracey "<button>Search</button>" \
83 2c251c14 2020-01-15 tracey "</form>" \
86 2c251c14 2020-01-15 tracey char *np_wrapper_start =
87 2c251c14 2020-01-15 tracey "<div id='np_wrapper'>" \
88 2c251c14 2020-01-15 tracey "<div id='nav_prev'>";
90 2c251c14 2020-01-15 tracey char *div_end =
93 2c251c14 2020-01-15 tracey char *nav_next =
94 2c251c14 2020-01-15 tracey "<div id='nav_next'>" \
95 2c251c14 2020-01-15 tracey "<a href='?page=%d'>Next<a/>" \
98 2c251c14 2020-01-15 tracey char *nav_prev =
99 2c251c14 2020-01-15 tracey "<a href='?page=%d'>Previous<a/>";
101 46b9c89b 2020-01-15 tracey char *description =
102 46b9c89b 2020-01-15 tracey "<div id='description_title'>Description: </div>" \
103 46b9c89b 2020-01-15 tracey "<div id='description'>%s</div>";
105 46b9c89b 2020-01-15 tracey char *repo_owner =
106 46b9c89b 2020-01-15 tracey "<div id='repo_owner_title'>Owner: </div>" \
107 46b9c89b 2020-01-15 tracey "<div id='repo_owner'>%s</div>";
109 46b9c89b 2020-01-15 tracey char *last_change =
110 46b9c89b 2020-01-15 tracey "<div id='last_change_title'>Last Change: </div>" \
111 46b9c89b 2020-01-15 tracey "<div id='last_change'>%s</div>";
113 46b9c89b 2020-01-15 tracey char *cloneurl =
114 46b9c89b 2020-01-15 tracey "<div id='cloneurl_title'>Clone URL: </div>" \
115 46b9c89b 2020-01-15 tracey "<div id='cloneurl'>%s</div>";
117 8d4d2453 2020-01-15 tracey char *shortlog_row =
118 8d4d2453 2020-01-15 tracey "<div id='shortlog_wrapper'>" \
119 8d4d2453 2020-01-15 tracey "<div id='shortlog_age'>%s</div>" \
120 8d4d2453 2020-01-15 tracey "<div id='shortlog_author'>%s</div>" \
121 8d4d2453 2020-01-15 tracey "<div id='shortlog_log'>%s</div>" \
122 8d4d2453 2020-01-15 tracey "</div>" \
123 8d4d2453 2020-01-15 tracey "<div id='navs_wrapper'>" \
124 8d4d2453 2020-01-15 tracey "<div id='navs'>%s</div>" \
125 8d4d2453 2020-01-15 tracey "</div>" \
126 8d4d2453 2020-01-15 tracey "</div>" \
127 8d4d2453 2020-01-15 tracey "<div id='dotted_line'></div>";
129 8d4d2453 2020-01-15 tracey char *shortlog_navs =
130 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=commit&commit=%s'>commit</a> | " \
131 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=commitdiff&commit=%s'>commit diff</a> | " \
132 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=tree&commit=%s'>tree</a> | " \
133 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=snapshot&commit=%s'>snapshot</a>";
135 8d4d2453 2020-01-15 tracey char *tags_row =
136 8d4d2453 2020-01-15 tracey "<div id='tags_wrapper'>" \
137 8d4d2453 2020-01-15 tracey "<div id='tags_age'>%s</div>" \
138 8d4d2453 2020-01-15 tracey "<div id='tag'>%s</div>" \
139 8d4d2453 2020-01-15 tracey "<div id='tag_name'>%s</div>" \
140 8d4d2453 2020-01-15 tracey "</div>" \
141 8d4d2453 2020-01-15 tracey "<div id='navs_wrapper'>" \
142 8d4d2453 2020-01-15 tracey "<div id='navs'>%s</div>" \
143 8d4d2453 2020-01-15 tracey "</div>" \
144 8d4d2453 2020-01-15 tracey "</div>" \
145 8d4d2453 2020-01-15 tracey "<div id='dotted_line'></div>";
147 8d4d2453 2020-01-15 tracey char *tags_navs =
148 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=tagt&commit=%s'>tag</a> | " \
149 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=commit&commit=%s'>commit</a> | " \
150 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=shortlog&commit=%s'>shortlog</a> | " \
151 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=log&commit=%s'>log</a>";
153 8d4d2453 2020-01-15 tracey char *heads_row =
154 8d4d2453 2020-01-15 tracey "<div id='heads_wrapper'>" \
155 8d4d2453 2020-01-15 tracey "<div id='heads_age'>%s</div>" \
156 8d4d2453 2020-01-15 tracey "<div id='head'>%s</div>" \
157 8d4d2453 2020-01-15 tracey "</div>" \
158 8d4d2453 2020-01-15 tracey "<div id='navs_wrapper'>" \
159 8d4d2453 2020-01-15 tracey "<div id='navs'>%s</div>" \
160 8d4d2453 2020-01-15 tracey "</div>" \
161 8d4d2453 2020-01-15 tracey "</div>" \
162 8d4d2453 2020-01-15 tracey "<div id='dotted_line'></div>";
164 8d4d2453 2020-01-15 tracey char *heads_navs =
165 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=shortlog&headref=%s'>shortlog</a> | " \
166 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=log&headref=%s'>log</a> | " \
167 8d4d2453 2020-01-15 tracey "<a href='?path=%s&action=tree&headref=%s'>commit</a>";
169 2c251c14 2020-01-15 tracey /* index.tmpl */
171 2c251c14 2020-01-15 tracey char *index_projects_header =
172 2c251c14 2020-01-15 tracey "<div id='index_header'>" \
173 2c251c14 2020-01-15 tracey "<div id='index_header_project'>Project</div>" \
174 2c251c14 2020-01-15 tracey "<div id='index_header_description'>Description</div>" \
175 2c251c14 2020-01-15 tracey "<div id='index_header_owner'>Owner</div>" \
176 2c251c14 2020-01-15 tracey "<div id='index_header_age'>Last Change</div>" \
177 2c251c14 2020-01-15 tracey "</div>";
179 2c251c14 2020-01-15 tracey char *index_projects =
180 2c251c14 2020-01-15 tracey "<div id='index_wrapper'>" \
181 2c251c14 2020-01-15 tracey "<div id='index_project'>" \
182 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=summary'>%s</a>" \
183 2c251c14 2020-01-15 tracey "</div>" \
184 2c251c14 2020-01-15 tracey "<div id='index_project_description'>%s</div>" \
185 2c251c14 2020-01-15 tracey "<div id='index_project_owner'>%s</div>" \
186 2c251c14 2020-01-15 tracey "<div id='index_project_age'>%s</div>" \
187 2c251c14 2020-01-15 tracey "<div id='navs_wrapper'>" \
188 8d4d2453 2020-01-15 tracey "<div id='navs'>%s</div>" \
189 2c251c14 2020-01-15 tracey "</div>" \
190 2c251c14 2020-01-15 tracey "</div>" \
191 2c251c14 2020-01-15 tracey "<div id='dotted_line'></div>";
193 2c251c14 2020-01-15 tracey char *index_navs =
194 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=summary'>summary</a> | " \
195 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=shortlog'>shortlog</a> | " \
196 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=log'>log</a> | " \
197 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=tree'>tree</a>";
199 2c251c14 2020-01-15 tracey /* summary.tmpl */
201 46b9c89b 2020-01-15 tracey char *summary_wrapper =
202 46b9c89b 2020-01-15 tracey "<div id='summary_wrapper'>";
204 2c251c14 2020-01-15 tracey char *summary_shortlog =
205 2c251c14 2020-01-15 tracey "<div id='summary_shortlog_title_wrapper'>" \
206 2c251c14 2020-01-15 tracey "<div id='summary_shortlog_title'>Shortlog</div></div>" \
207 8d4d2453 2020-01-15 tracey "<div id='summary_shortlog_content'>%s</div>";
209 2c251c14 2020-01-15 tracey char *summary_tags =
210 2c251c14 2020-01-15 tracey "<div id='summary_tags_title_wrapper'>" \
211 2c251c14 2020-01-15 tracey "<div id='summary_tags_title'>Tags</div></div>" \
212 8d4d2453 2020-01-15 tracey "<div id='summary_tags_content'>%s</div>";
214 2c251c14 2020-01-15 tracey char *summary_heads =
215 2c251c14 2020-01-15 tracey "<div id='summary_heads_title_wrapper'>" \
216 2c251c14 2020-01-15 tracey "<div id='summary_heads_title'>Heads</div></div>" \
217 8d4d2453 2020-01-15 tracey "<div id='summary_heads_content'>%s</div>";
219 2c251c14 2020-01-15 tracey #endif /* GOTWEB_UI_H */