Skip to content

Commit cd5919d

Browse files
committed
Change paragraph widget to custom widget to display coderdojo index page
1 parent 4c9a6ab commit cd5919d

File tree

7 files changed

+7
-15
lines changed

7 files changed

+7
-15
lines changed

app/models/custom_widget.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class CustomWidget < Widget
2+
attribute :image, :reference
3+
attribute :headline, :string
4+
attribute :text, :string
5+
end

app/models/paragraph_widget.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%= scrivito_medium_dialog do %>
2-
<%= scrivito_details_for ParagraphWidget.description_for_editor do %>
2+
<%= scrivito_details_for CustomWidget.description_for_editor do %>
33
A cover with head, text and image
44
<% end %>
55
<% end %>

app/views/custom_widget/show.html.erb

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= scrivito_thumbnail CustomWidget.description_for_editor %>

app/views/paragraph_widget/show.html.erb

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/views/paragraph_widget/thumbnail.html.erb

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)