diff --git a/webapp/views/repository.erb b/webapp/views/repository.erb index c241830..907a19f 100644 --- a/webapp/views/repository.erb +++ b/webapp/views/repository.erb @@ -77,7 +77,7 @@ <% repo.branch_protection_rules.nodes.sort_by(&:pattern).each_with_index do |rule, i| %> - + <%# This looks wrong but isn't. %> <% if repo.default_branch_ref.name.eql?(rule.pattern) %><% end %><%=h rule.pattern %><% if repo.default_branch_ref.name.eql?(rule.pattern) %><% end %> <% if rule.required_approving_review_count.nil? %>0<% else %><%= rule.required_approving_review_count %><% end %> <% if rule.dismisses_stale_reviews %>Tick<% else %>Cross<% end %> @@ -103,7 +103,7 @@ <% repo.branch_protection_rules.nodes.sort_by(&:pattern).each_with_index do |rule, i| %> - + <%# This looks wrong but isn't. %> <% if repo.default_branch_ref.name.eql?(rule.pattern) %><% end %><%=h rule.pattern %><% if repo.default_branch_ref.name.eql?(rule.pattern) %><% end %> <% if rule.requires_commit_signatures %>Tick<% else %>Cross<% end %> <% if rule.requires_linear_history %>Tick<% else %>Cross<% end %>