GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

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
al3x (author)
Sat Mar 15 01:02:34 -0700 2008
commit  952375327cd420439ce22c44f688a6fbd0526116
tree    0a692a9f6d14a0c1b0a1d4ca2b66311c8ae3fcd1
parent  14d211cfcdcf1c171e2bd7b469c0649bcb68acec
git-wiki / views / history.erb
100644 21 lines (18 sloc) 0.588 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<h1>History / <a href="/<%= @page.name %>"><%= @page.name %></a></h1>
 
<div class="sub_nav">
  <a href="/<%= @page.name %>" class="nav_link">back</a> &bull;
  <a href="/e/<%= @page.name %>" class="nav_link">edit</a>
</div>
 
<div class="content">
  <ul>
    <% @page.history.each do |c| %>
      <li>
        <%= c.committer_date %> &mdash;
        <a href="/h/<%= @page.name %>/<%= c.sha %>"><%= c.message %></a>
        <% unless @page.history.first == c %>
         &bull; <a href="/d/<%= @page.name %>/<%= c.sha %>">diff</a>
        <% end %>
      </li>
    <% end %>
  </ul>
</div>