public
Description: Provide a nicer looking web interface for ticgit
Clone URL: git://github.com/pope/ticgit-watchtower.git
ticgit-watchtower / views / list.haml
100644 28 lines (26 sloc) 0.743 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
%h1= @title
- if @tickets.empty?
  %p No tickets found.
- else
  - current_date = nil
  - @tickets.each do |t|
    / Date Stuff
    - opened = t.opened.strftime("%m/%d/%y")
    - unless current_date == opened
      - current_date = opened
      %h3.date= current_date
    
    / The ticket
    %p.ticket
      %img.avatar{:src => Gravatar.new(t.assigned, :size => 30), :alt => "#{t.assigned_name}'s avatar"}
      %a.title{:href => "/tickets/#{t.ticket_id}"}= t.title
      is assigned to
      %strong= t.assigned_name
      %br
      %span{:class => t.state}= t.state
      \/
      %span.tags
        - unless t.tags.empty?
          - t.tags.each do |tag|
            %a{:href => "/tickets/tags/#{tag}"}= tag
        - else
          none