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
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
commit  3f411c6f61f28b3abb4dee6a201ea4c7dc4adc21
tree    ae9e962cb5c1211fefe91a28e83b00a137cd08b3
parent  3060525438ebdf1b3bbf6424bed707f3c61f351b
gitnub / log.html.erb
100644 32 lines (32 sloc) 1.115 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
<!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>
      <div id="commits">
        <ol>
          <% @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>
    </div>
  </body>
</html>