BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0552c0b6
Commit
0552c0b6
authored
Feb 10, 2016
by
Kamil Trzcinski
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix views
parent
e5e2e7b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
21 deletions
+22
-21
pages_domain.rb
app/models/pages_domain.rb
+2
-2
_list.html.haml
app/views/projects/pages/_list.html.haml
+17
-16
show.html.haml
app/views/projects/pages/show.html.haml
+3
-3
No files found.
app/models/pages_domain.rb
View file @
0552c0b6
...
...
@@ -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
...
...
app/views/projects/pages/_list.html.haml
View file @
0552c0b6
.panel.panel-default
.panel-heading
Domains (
#{
@domains
.
count
}
)
%ul
.well-list
-
@domains
.
each
do
|
domain
|
%li
.pull-right
=
link_to
'Details'
,
namespace_project_page_path
(
@project
.
namespace
,
@project
,
domain
),
class:
"btn btn-sm btn-grouped"
=
link_to
'Remove'
,
namespace_project_page_path
(
@project
.
namespace
,
@project
,
domain
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-remove btn-sm btn-grouped"
.clearfix
%span
=
link_to
domain
.
domain
,
domain
.
url
%p
-
if
domain
.
subject
%span
.label.label-gray
Certificate:
#{
domain
.
subject
}
-
if
domain
.
expired?
%span
.label.label-danger
Expired
-
if
@domains
.
any?
.panel.panel-default
.panel-heading
Domains (
#{
@domains
.
count
}
)
%ul
.well-list
-
@domains
.
each
do
|
domain
|
%li
.pull-right
=
link_to
'Details'
,
namespace_project_page_path
(
@project
.
namespace
,
@project
,
domain
),
class:
"btn btn-sm btn-grouped"
=
link_to
'Remove'
,
namespace_project_page_path
(
@project
.
namespace
,
@project
,
domain
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-remove btn-sm btn-grouped"
.clearfix
%span
=
link_to
domain
.
domain
,
domain
.
url
%p
-
if
domain
.
subject
%span
.label.label-gray
Certificate:
#{
domain
.
subject
}
-
if
domain
.
expired?
%span
.label.label-danger
Expired
app/views/projects/pages/show.html.haml
View file @
0552c0b6
-
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment