aboutsummaryrefslogtreecommitdiff
path: root/templates/repo-header.html
blob: 31359839666bde322e0640744ddad35d957e0cb7 (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
{{ define "repoheader" }}
<table id='header'>
	<tr>
		<td class='logo' rowspan='2'>
			<a href='/'>
				<img src='/legitrx.png' alt='legitrx logo'/>
			</a>
		</td>
		<td class='main'>
			<a href='/'>index</a> : 
			<a href='/{{ .name }}'>{{ .name }}</a>
		</td>
		<td class='form'>
			<form method='get'>
				<select name='h' onchange='this.form.submit();'>
					<option value='{{ .ref }}' selected='selected'>{{ .ref }}</option><!-- TODO: Make this actually work -->
				</select>
				<input type='submit' value='switch'/>
			</form>
		</td>
	</tr>
	<tr>
		<td class='sub'>{{ .desc }}</td>
		<!-- <td class='sub right'></td> TODO: Author -->
	</tr>
</table>
{{ end }}