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
commit  e7718c564e758a37489123ba3a097261e73b0369
tree    ae42e322796d9fea6ff80fba775a6266e16a10fd
parent  fb02f55ffc054d8120c39f403e115c8506c0c8dd
git-wiki / views / branches.erb
100644 53 lines (49 sloc) 1.518 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
<h1>Branches</h1>
 
<h2>Branch List</h2>
<table>
<% @branches.each do |b| %>
  <tr>
    <% if b.current %>
      <td><strong><%= b.full %></strong></td>
    <% else %>
      <td><%= b.full %></td>
      <td><a href="/a/branch/<%= b.name %>">switch</a></td>
      <td><a href="/a/merge_branch/<%= b.name %>">merge</a></td>
      <!-- <td><a href="/a/delete_branch/<%= b.name %>">delete</a></td> -->
    <% end %>
  </tr>
<% end %>
</table>
 
<hr/>
 
<h2>New Branch</h2>
  <form method="post" action="/a/new_branch">
    <table>
      <tr>
        <td> New Branch Name : </td>
        <td> <input name="branch"></td>
      </tr>
      <tr>
        <td align="right"> <input type="radio" name="type" value="derive"></td>
        <td> Derivative Branch <small>(starts new branch based on this one)</small></td>
      </tr>
      <tr>
        <td align="right"> <input type="radio" name="type" value="blank"> </td>
        <td> Blank Branch <small>(starts new blank branch)</small></td>
      </tr>
      </table>
      <p class="right"><input type="submit" value="Create Branch" class="submit" /></p>
  </form>
  
<h2>New Remote Branch</h2>
  <form method="post" action="/a/new_remote">
    <table>
      <tr>
        <td> Remote Branch URL : </td>
        <td> <input name="branch_url"></td>
      </tr>
      <tr>
        <td> Remote Branch Name : </td>
        <td> <input name="branch_name"></td>
      </tr>
    </table>
    <p class="right"><input type="submit" value="Add Remote Branch" class="submit" /></p>
  </form>