public
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/Caged/gitnub.git
Search Repo:
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
Caged (author)
Sat Mar 01 22:31:43 -0800 2008
commit  3060525438ebdf1b3bbf6424bed707f3c61f351b
tree    0f3e15f98b32aa76d15873c347890818d1758c4e
parent  4e75b7ba05f4c3be4c9c4ef08b8bc2d7d1b69b61
gitnub / log.html.erb
100644 31 lines (31 sloc) 1.095 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Logs</title>
    <link rel="stylesheet" href="application.css" type="text/css" charset="utf-8" />
  </head>
  <body>
    <div id="container">
      <div id="toolbar">
        Branch:
        <select name="test" class="select">
          <% @branches.each do |branch| %>
            <option><%= branch.name %></option>
          <% end %>
        </select>
      </div>
      <h1>Commits</h1>
      <ol id="commits">
        <% @repo.commits('master', 100).each_with_index do |commit, i| %>
        <li<%= %( class="shade") if i % 2 == 0 %>>
          <p class="message"><%= commit.message %></p>
          <span class="meta"><%= commit %> by <span class="author"><%= commit.committer %></span></span>
          <span class="date"><%= commit.committed_date.strftime("%A, %B %d, %I:%M %p") %></span>
        </li>
        <% end %>
      </ol>
    </div>
  </body>
</html>