Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
cfc0a668
Commit
cfc0a668
authored
2 years ago
by
Arnaud Levy
Browse files
Options
Downloads
Patches
Plain Diff
Fix block init
parent
60f7eb93
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/models/communication/block/template/call_to_action.rb
+8
-0
8 additions, 0 deletions
app/models/communication/block/template/call_to_action.rb
app/views/admin/communication/blocks/templates/image/_preview.html.erb
+9
-7
9 additions, 7 deletions
...in/communication/blocks/templates/image/_preview.html.erb
with
17 additions
and
7 deletions
app/models/communication/block/template/call_to_action.rb
+
8
−
0
View file @
cfc0a668
...
...
@@ -23,6 +23,14 @@ class Communication::Block::Template::CallToAction < Communication::Block::Templ
"
#{
data
[
'button_secondary'
]
}
"
end
def
url_tertiary
"
#{
data
[
'url_tertiary'
]
}
"
end
def
button_tertiary
"
#{
data
[
'button_tertiary'
]
}
"
end
def
image
extract_image_alt_and_credit
data
,
'image'
end
...
...
This diff is collapsed.
Click to expand it.
app/views/admin/communication/blocks/templates/image/_preview.html.erb
+
9
−
7
View file @
cfc0a668
<%=
kamifusen_tag
@block
.
template
.
image
.
blob
,
width:
600
,
alt:
@block
.
template
.
image
.
alt
,
class:
'img-fluid'
if
@block
.
template
.
image
%>
<caption>
<%=
@block
.
template
.
image
.
alt
%>
</caption>
<p
class=
"small"
>
<%=
@block
.
template
.
image
.
credit
%>
</p>
<%=
@block
.
template
.
text
.
html_safe
%>
<%
if
@block
.
template
.
image
&
.
blob
%>
<%=
kamifusen_tag
@block
.
template
.
image
.
blob
,
width:
600
,
alt:
@block
.
template
.
image
.
alt
,
class:
'img-fluid'
if
@block
.
template
.
image
%>
<caption>
<%=
@block
.
template
.
image
.
alt
%>
</caption>
<p
class=
"small"
>
<%=
@block
.
template
.
image
.
credit
%>
</p>
<%=
@block
.
template
.
text
.
html_safe
%>
<%
end
%>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment