Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
116341b9
Commit
116341b9
authored
Nov 18, 2020
by
fjsanpedro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix project description schema type
parent
a57f669e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+1
-1
spec/features/projects/show/schema_markup_spec.rb
spec/features/projects/show/schema_markup_spec.rb
+1
-1
No files found.
app/views/projects/_home_panel.html.haml
View file @
116341b9
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
.home-panel-home-desc.mt-1
.home-panel-home-desc.mt-1
-
if
@project
.
description
.
present?
-
if
@project
.
description
.
present?
.home-panel-description.text-break
.home-panel-description.text-break
.home-panel-description-markdown.read-more-container
{
itemprop:
'
abstract
'
}
.home-panel-description-markdown.read-more-container
{
itemprop:
'
description
'
}
=
markdown_field
(
@project
,
:description
)
=
markdown_field
(
@project
,
:description
)
%button
.btn.btn-blank.btn-link.js-read-more-trigger.d-lg-none
{
type:
"button"
}
%button
.btn.btn-blank.btn-link.js-read-more-trigger.d-lg-none
{
type:
"button"
}
=
_
(
"Read more"
)
=
_
(
"Read more"
)
...
...
spec/features/projects/show/schema_markup_spec.rb
View file @
116341b9
...
@@ -14,7 +14,7 @@ RSpec.describe 'Projects > Show > Schema Markup' do
...
@@ -14,7 +14,7 @@ RSpec.describe 'Projects > Show > Schema Markup' do
expect
(
page
).
to
have_selector
(
'img[itemprop="image"]'
)
expect
(
page
).
to
have_selector
(
'img[itemprop="image"]'
)
expect
(
page
).
to
have_selector
(
'[itemprop="name"]'
,
text:
project
.
name
)
expect
(
page
).
to
have_selector
(
'[itemprop="name"]'
,
text:
project
.
name
)
expect
(
page
).
to
have_selector
(
'[itemprop="identifier"]'
,
text:
"Project ID:
#{
project
.
id
}
"
)
expect
(
page
).
to
have_selector
(
'[itemprop="identifier"]'
,
text:
"Project ID:
#{
project
.
id
}
"
)
expect
(
page
).
to
have_selector
(
'[itemprop="
abstract
"]'
,
text:
project
.
description
)
expect
(
page
).
to
have_selector
(
'[itemprop="
description
"]'
,
text:
project
.
description
)
expect
(
page
).
to
have_selector
(
'[itemprop="license"]'
,
text:
project
.
repository
.
license
.
name
)
expect
(
page
).
to
have_selector
(
'[itemprop="license"]'
,
text:
project
.
repository
.
license
.
name
)
expect
(
find_all
(
'[itemprop="keywords"]'
).
map
(
&
:text
)).
to
match_array
(
project
.
tag_list
.
map
(
&
:capitalize
))
expect
(
find_all
(
'[itemprop="keywords"]'
).
map
(
&
:text
)).
to
match_array
(
project
.
tag_list
.
map
(
&
:capitalize
))
expect
(
page
).
to
have_selector
(
'[itemprop="about"]'
)
expect
(
page
).
to
have_selector
(
'[itemprop="about"]'
)
...
...
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