-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathindex.html.haml
More file actions
29 lines (25 loc) · 1.04 KB
/
index.html.haml
File metadata and controls
29 lines (25 loc) · 1.04 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
.container
%h1.text-center= t('.title')
%table.table.table-striped
%thead
%th= Organization.human_attribute_name(:name)
%th= Organization.human_attribute_name(:repo).pluralize
%tbody
- @organizations.each do |organization|
%tr
%td
= organization.title
%td
- organization.repos.each do |repo|
%ul.list-inline
- if !repo.releases.empty?
%li
= link_to t('.releases_benchmark'),
releases_path(organization_name: organization.name, repo_name: repo.name)
- if !repo.commits.empty?
%li
= link_to t('.commits_benchmark'),
commits_path(organization_name: organization.name, repo_name: repo.name), data: { no_turbolink: true }
%li
= link_to t('.overview'),
overview_path(organization_name: organization.name, repo_name: repo.name), data: { no_turbolink: true }