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 2c251c14 2020-01-15 tracey /* index.tmpl */
103 2c251c14 2020-01-15 tracey char *index_projects_header =
104 2c251c14 2020-01-15 tracey "<div id='index_header'>" \
105 2c251c14 2020-01-15 tracey "<div id='index_header_project'>Project</div>" \
106 2c251c14 2020-01-15 tracey "<div id='index_header_description'>Description</div>" \
107 2c251c14 2020-01-15 tracey "<div id='index_header_owner'>Owner</div>" \
108 2c251c14 2020-01-15 tracey "<div id='index_header_age'>Last Change</div>" \
109 2c251c14 2020-01-15 tracey "</div>";
111 2c251c14 2020-01-15 tracey char *index_projects =
112 2c251c14 2020-01-15 tracey "<div id='index_wrapper'>" \
113 2c251c14 2020-01-15 tracey "<div id='index_project'>" \
114 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=summary'>%s</a>" \
115 2c251c14 2020-01-15 tracey "</div>" \
116 2c251c14 2020-01-15 tracey "<div id='index_project_description'>%s</div>" \
117 2c251c14 2020-01-15 tracey "<div id='index_project_owner'>%s</div>" \
118 2c251c14 2020-01-15 tracey "<div id='index_project_age'>%s</div>" \
119 2c251c14 2020-01-15 tracey "<div id='navs_wrapper'>" \
120 2c251c14 2020-01-15 tracey "<div id='np_navs'>%s</div>" \
121 2c251c14 2020-01-15 tracey "</div>" \
122 2c251c14 2020-01-15 tracey "</div>" \
123 2c251c14 2020-01-15 tracey "<div id='dotted_line'></div>";
125 2c251c14 2020-01-15 tracey char *index_navs =
126 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=summary'>summary</a> | " \
127 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=shortlog'>shortlog</a> | " \
128 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=log'>log</a> | " \
129 2c251c14 2020-01-15 tracey "<a href='?path=%s&action=tree'>tree</a>";
131 2c251c14 2020-01-15 tracey /* summary.tmpl */
133 2c251c14 2020-01-15 tracey char *summary_description =
134 2c251c14 2020-01-15 tracey "<div id='summary_description_title'>Description: </div>" \
135 2c251c14 2020-01-15 tracey "<div id='summary_description'>%s</div>";
137 2c251c14 2020-01-15 tracey char *summary_repo_owner =
138 2c251c14 2020-01-15 tracey "<div id='summary_repo_owner_title'>Owner: </div>" \
139 2c251c14 2020-01-15 tracey "<div id='summary_repo_owner'>%s</div>";
141 2c251c14 2020-01-15 tracey char *summary_last_change =
142 2c251c14 2020-01-15 tracey "<div id='summary_last_change_title'>Last Change: </div>" \
143 2c251c14 2020-01-15 tracey "<div id='summary_last_change'>%s</div>";
145 2c251c14 2020-01-15 tracey char *summary_cloneurl =
146 2c251c14 2020-01-15 tracey "<div id='summary_cloneurl_title'>Clone URL: </div>" \
147 2c251c14 2020-01-15 tracey "<div id='summary_cloneurl'>%s</div>";
149 2c251c14 2020-01-15 tracey char *summary_shortlog =
150 2c251c14 2020-01-15 tracey "<div id='summary_shortlog_title_wrapper'>" \
151 2c251c14 2020-01-15 tracey "<div id='summary_shortlog_title'>Shortlog</div></div>" \
152 2c251c14 2020-01-15 tracey "<div id='summary_shortlog_content_wrapper'>" \
153 2c251c14 2020-01-15 tracey "<div id='summary_shortlog_content'>%s</div>" \
154 2c251c14 2020-01-15 tracey "</div>";
156 2c251c14 2020-01-15 tracey char *summary_tags =
157 2c251c14 2020-01-15 tracey "<div id='summary_tags_title_wrapper'>" \
158 2c251c14 2020-01-15 tracey "<div id='summary_tags_title'>Tags</div></div>" \
159 2c251c14 2020-01-15 tracey "<div id='summary_tags_content_wrapper'>" \
160 2c251c14 2020-01-15 tracey "<div id='summary_tags_content'>%s</div>" \
161 2c251c14 2020-01-15 tracey "</div>";
163 2c251c14 2020-01-15 tracey char *summary_heads =
164 2c251c14 2020-01-15 tracey "<div id='summary_heads_title_wrapper'>" \
165 2c251c14 2020-01-15 tracey "<div id='summary_heads_title'>Heads</div></div>" \
166 2c251c14 2020-01-15 tracey "<div id='summary_heads_content_wrapper'>" \
167 2c251c14 2020-01-15 tracey "<div id='summary_heads_content'>%s</div>" \
168 2c251c14 2020-01-15 tracey "</div>";
170 2c251c14 2020-01-15 tracey #endif /* GOTWEB_UI_H */