Hash :
38b240fb
Author :
Date :
2020-02-06T23:26:44
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 143
/*
* Copyright (c) 2019, 2020 Tracey Emery <tracey@traceyemery.net>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef GOTWEB_UI_H
#define GOTWEB_UI_H
/* general html */
char *head =
"<meta name='viewport' content='initial-scale=1.0," \
" user-scalable=no' />" \
"<meta charset='utf-8' />" \
"<meta name='msapplication-TileColor' content='#da532c' />" \
"<meta name='theme-color' content='#ffffff' />" \
"<link rel='apple-touch-icon' sizes='180x180'" \
" href='/apple-touch-icon.png' />" \
"<link rel='icon' type='image/png' sizes='32x32'" \
" href='/favicon-32x32.png' />" \
"<link rel='icon' type='image/png' sizes='16x16'" \
" href='/favicon-16x16.png' />" \
"<link rel='manifest' href='/site.webmanifest' />" \
"<link rel='mask-icon' href='/safari-pinned-tab.svg'" \
" color='#5bbad5' />" \
"<link rel='stylesheet' type='text/css' href='/gotweb.css' />";
char *got_link =
"<div id='got_link'>" \
"<a href='%s' target='_sotd'><img src='/%s' alt='logo' /></a>" \
"</div>";
char *site_link =
"<div id='site_link'>" \
"<a href='%s'>%s</a> %s %s" \
"</div>";
char *search =
"<!--/* <div id='search'>" \
"<form method='POST'>" \
"<input type='search' id='got-search' name='got-search' size='15'" \
" maxlength='50' />" \
"<button>Search</button>" \
"</form>" \
"</div> */-->";
char *np_wrapper_start =
"<div id='np_wrapper'>" \
"<div id='nav_prev'>";
char *div_end =
"</div>";
char *nav_next =
"<div id='nav_next'>" \
"<a href='?page=%d'>Next<a/>" \
"</div>";
char *nav_prev =
"<a href='?page=%d'>Previous<a/>";
char *repo_owner =
"<div id='repo_owner_title'>Owner: </div>" \
"<div id='repo_owner'>%s</div>";
char *heads_row =
"<div id='heads_wrapper'>" \
"<div id='heads_age'>%s</div>" \
"<div id='head'>%s</div>" \
"</div>" \
"<div id='navs_wrapper'>" \
"<div id='navs'>%s</div>" \
"</div>" \
"</div>" \
"<div id='dotted_line'></div>";
char *heads_navs =
"<a href='?path=%s&action=summary&headref=%s'>summary</a> | " \
"<a href='?path=%s&action=briefs&headref=%s'>commit briefs</a> | " \
"<a href='?path=%s&action=commits&headref=%s'>commits</a>";
/* headers */
char *header_commit_html =
"<div id='header_commit_title'>Commit:</div>" \
"<div id='header_commit'>%s %s</div>";
char *header_age_html =
"<div id='header_age_title'>Date:</div>" \
"<div id='header_age'>%s</div>";
char *header_commit_msg_html =
"<div id='header_commit_msg_title'>Message:</div>" \
"<div id='header_commit_msg'>%s</div>";
/* index.tmpl */
char *index_projects_header =
"<div id='index_header'>" \
"<div id='index_header_project'>Project</div>" \
"<div id='index_header_description'>Description</div>" \
"<div id='index_header_owner'>Owner</div>" \
"<div id='index_header_age'>Last Change</div>" \
"</div>";
char *index_projects =
"<div id='index_wrapper'>" \
"<div id='index_project'>" \
"<a href='?path=%s&action=summary'>%s</a>" \
"</div>" \
"<div id='index_project_description'>%s</div>" \
"<div id='index_project_owner'>%s</div>" \
"<div id='index_project_age'>%s</div>" \
"<div id='navs_wrapper'>" \
"<div id='navs'>%s</div>" \
"</div>" \
"</div>" \
"<div id='dotted_line'></div>";
char *index_projects_empty =
"<div id='index_wrapper'>" \
"No repositories found in %s" \
"</div>" \
"<div id='dotted_line'></div>";
char *index_navs =
"<a href='?path=%s&action=summary'>summary</a> | " \
"<a href='?path=%s&action=briefs'>commit briefs</a> | " \
"<a href='?path=%s&action=commits'>commits</a> | " \
"<a href='?path=%s&action=tree'>tree</a>";
#endif /* GOTWEB_UI_H */