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 ...@@ -71,8 +71,6 @@ class PagesDomain < ActiveRecord::Base
@fingeprint ||= OpenSSL::Digest::SHA256.new(x509.to_der).to_s @fingeprint ||= OpenSSL::Digest::SHA256.new(x509.to_der).to_s
end end
private
def x509 def x509
return unless certificate return unless certificate
@x509 ||= OpenSSL::X509::Certificate.new(certificate) @x509 ||= OpenSSL::X509::Certificate.new(certificate)
...@@ -87,6 +85,8 @@ class PagesDomain < ActiveRecord::Base ...@@ -87,6 +85,8 @@ class PagesDomain < ActiveRecord::Base
nil nil
end end
private
def update def update
::Projects::UpdatePagesConfigurationService.new(project).execute ::Projects::UpdatePagesConfigurationService.new(project).execute
end end
......
.panel.panel-default - if @domains.any?
.panel.panel-default
.panel-heading .panel-heading
Domains (#{@domains.count}) Domains (#{@domains.count})
%ul.well-list %ul.well-list
......
- page_title "#{@domain.domain}", "Pages Domain" - page_title "#{@domain.domain}", "Pages Domain"
%h3.page-title %h3.page-title
#{@domain.domain} Pages Domain
.table-holder .table-holder
%table.table %table.table
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
%td %td
Certificate Certificate
%td %td
- if @domain.certificate - if @domain.x509
%pre %pre
= @domain.certificate.to_text = @domain.x509.to_text
- else - else
.light .light
missing 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