Commit 0552c0b6 authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by James Edwards-Jones

Fix views

parent e5e2e7b7
......@@ -71,8 +71,6 @@ class PagesDomain < ActiveRecord::Base
@fingeprint ||= OpenSSL::Digest::SHA256.new(x509.to_der).to_s
end
private
def x509
return unless certificate
@x509 ||= OpenSSL::X509::Certificate.new(certificate)
......@@ -87,6 +85,8 @@ class PagesDomain < ActiveRecord::Base
nil
end
private
def update
::Projects::UpdatePagesConfigurationService.new(project).execute
end
......
.panel.panel-default
- if @domains.any?
.panel.panel-default
.panel-heading
Domains (#{@domains.count})
%ul.well-list
......
- page_title "#{@domain.domain}", "Pages Domain"
%h3.page-title
#{@domain.domain}
Pages Domain
.table-holder
%table.table
......@@ -14,9 +14,9 @@
%td
Certificate
%td
- if @domain.certificate
- if @domain.x509
%pre
= @domain.certificate.to_text
= @domain.x509.to_text
- else
.light
missing
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment