forked from fedora-ruby/isitfedoraruby-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html.haml
34 lines (32 loc) · 1.09 KB
/
index.html.haml
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
33
34
%h2= @page_title
%h4 There are currently #{@rpms.count} rubygems packaged for Fedora.
%p
.table-responsive
%table.table.table-hover.table-condensed
%thead
%tr.warning
%th= sortable 'name', _('Name')
- FedoraRpm.fedora_versions.each do |t, g|
%th= t
%th= _('Upstream')
%th= sortable 'commits', _('Commits')
%th= sortable 'last_commit_date', _('Last Commit')
%th= _('Patched?')
%th= sortable 'owner', _('Owner')
%tbody
- @rpms.each do |rpm|
%tr{class: rpm.up_to_date? ? 'success' : 'danger'}
%td= link_to rpm.shortname.truncate(35), fedorarpm_path(rpm.name)
-FedoraRpm.fedora_versions.each do |t, g|
%td= rpm.version_for(t)
%td= rpm.ruby_gem.version
%td= rpm.commits
%td= rpm.last_commit_date_in_words
%td
- if rpm.any_patched?
%span.glyphicon.glyphicon-ok
%td
- unless rpm.owner.nil?
=link_to rpm.owner, fedorarpm_path(rpm.owner + '/by_owner')
%div.pagination
= will_paginate @rpms