Sha256: 476d6db2ee4f54c0089c9000227e4ac0893113dc6ca5b6ea8406c4d5f36537d1

Contents?: true

Size: 2 KB

Versions: 6

Compression:

Stored size: 2 KB

Contents

%h1 Dashboard 

- if @pushes
  %h2 Pushes Received
  .pushes
    %table
      %tr
        %th.side  
        %th Date
        %th Status
        %th Commit
        %th Repository
        %th Branch
      - untracked_pushes = false
      - @pushes.each do |push|
        - untracked_pushes = untracked_pushes || !push.tracked?
        %tr{:class=>classes_for(push) << 'push'}
          %th.side Push
          %td
            =push.created_at.strftime("%B %d - %H:%M")
          %td
            =push.status
            - if push.tracked? && !push.deployed?
              %form{:method=>:post, :action=>'deploy'}
                %input{:type=>:hidden, :name=>:id, :value=>push.id}
                %input{:type=>:submit, :value=>:deploy}
            - elsif push.deployed?
              %form{:method=>:post, :action=>'undeploy'}
                %input{:type=>:hidden, :name=>:id, :value=>push.id}
                %input{:type=>:submit, :value=>:undeploy}
              - if push.deployment
                %span.deployment
                  %br
                  %a{:href=>push.deployment.context}
                    =push.deployment.context

          %td
            %a{:href=>push['compare']} 
              =push.short_commit_hash
          %td.repo
            %a{:href=>push.repo_url}
              =push.repo_name
          %td=push.branch
        - unless push['commits'].empty?
          %tr.commits{:class=>classes_for(push)}
            %th.side Commits
            %td{:colspan=>5}
              - push['commits'].each do |commit|
                %ul
                  %li=commit['author']['name']
                  %li
                    %a{:href=>commit['url']} 
                      =commit['id']
                  %li=commit['timestamp']
                  %li=commit['message']

  - if untracked_pushes
    %h2 Untracked Pushes
    You have some untracked pushes.
    %a{:href=>'#', :id=>'toggler'}
      Have a look &rarr;
    :javascript
      $('#toggler').click(function() { $('.ignored').toggle();return false; });

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
torquebox-stompbox-0.3.3 app/views/pushes/index.haml
torquebox-stompbox-0.3.2 app/views/pushes/index.haml
torquebox-stompbox-0.3.1 app/views/pushes/index.haml
torquebox-stompbox-0.3.0 app/views/pushes/index.haml
torquebox-stompbox-0.2.0 app/views/pushes/index.haml
torquebox-stompbox-0.1.0 app/views/pushes/index.haml