Take the 2008 Git User's Survey and help out! [ 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
Search Repo:
al3x (author)
Sun Apr 20 18:52:30 -0700 2008
commit  ec232260e563e9906b14454bace36953f7f42cff
tree    e7ddac338b26d8ddb77de63590fed0c0c5c9e63f
parent  f767ccaf5da293ed9cb34380bb988bd625881724
git-wiki / views / history.erb
100644 23 lines (21 sloc) 0.725 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<h1>History of <a href="/<%= @page.name %>"><%= @page.name %></a></h1>
 
<div class="sub_nav">
  <a href="/<%= @page.name %>" class="nav_link">current</a> &bull;
  <a href="/e/<%= @page.name %>" class="nav_link">edit</a>
</div>
 
<div class="content">
  <ul>
    <% @page.history.each do |c| %>
      <li>
        <script type="text/javascript">
        document.write(time_ago_in_words(<%= c.committer_date.for_time_ago_in_words %>) + ' ago');
        </script>
        &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>