public
Fork of sr/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/al3x/git-wiki.git
git-wiki / views / branches.erb
100644 58 lines (46 sloc) 1.48 kb
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
<h1>Branches</h1>
 
<div class="sub_nav">
<% @branches.each do |b| %>
<% next if b.full == 'origin/master' %>
<% if b.current %>
<strong><%= b.full %></strong>
<% else %>
<%= b.full %>
<a href="/a/branch/<%= b.name %>">switch</a> &bull;
<a href="/a/merge_branch/<%= b.name %>">merge</a>
<!-- &bull; <a href="/a/delete_branch/<%= b.name %>">delete</a> -->
<% end %>
<br />
<% end %>
</div>
 
<div class="content">
<h2>New Branch</h2>
<form method="post" action="/a/new_branch" class="niceform">
<label for="name">name</label>
<input type="text" name="branch" />
<br />
 
<input type="hidden" name="type" value="derive" />
<!--
<label for="derive_radio">copy this branch</label>
<input type="radio" name="type" value="derive" />
<br />
<label for="blank_radio">empty branch</label>
<input type="radio" name="type" value="blank" />
<br />
-->
<label for="submit"></label>
<input type="submit" value="create" class="submit" />
</form>
<p class="clearer">
 
<h2>New Remote Branch</h2>
<form method="post" action="/a/new_remote" class="niceform">
<label for="branch_name">name</label>
<input type="text" name="branch_name">
<br />
<label for="branch_url">url</label>
<input type="text" name="branch_url">
<br />
 
<label for="submit"></label>
<input type="submit" value="create" class="submit" />
</form>
</div>