-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79d3b71
commit e64199e
Showing
15 changed files
with
77 additions
and
45 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
app/cells/decidim/content_blocks/participatory_space_main_data/content.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="space-y-8"> | ||
<%= render :title %> | ||
</div> | ||
|
||
<div class="participatory-space__gpc-container" id="donate-zone"> | ||
<%= cell "donate" %> | ||
|
||
<% if nav_items.present? %> | ||
<%= cell "decidim/nav_links", nav_items %> | ||
<% end %> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="donate-box<%= "mb-0" if chat? %>"> | ||
<p><%= t("gpc.donate_text_1") %></p> | ||
<p><a href="<%= generic_donate_url %>" class="button button__primary <%= button_class %> lg:w-full my-4" target="_blank"> | ||
<%= icon("flashlight-line") + " " + t("gpc.donate_button") %> | ||
</a></p> | ||
<p><%= t("gpc.donate_text_2") %></p> | ||
</div> | ||
|
||
<% if chat? %> | ||
<div class="donate-box" style="padding:0"> | ||
<p><a href="<%= generic_chat_url %>" class="button button__primary <%= button_class %> lg:w-full my-4" target="_blank"> | ||
<%= icon("flashlight-line") + " " + t("gpc.donate_button") %> | ||
</a></p> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
class DonateCell < Decidim::ViewModel | ||
def show | ||
render if generic_donate_url.present? | ||
end | ||
|
||
def button_class | ||
return options[:button_class] if options[:button_class].present? | ||
|
||
"button__lg" | ||
end | ||
|
||
def chat? | ||
options[:chat] == true | ||
end | ||
end |
3 changes: 0 additions & 3 deletions
3
app/overrides/decidim/assemblies/assemblies/show/add_donate_to_title.html.erb.deface
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
app/overrides/decidim/assemblies/assemblies/show/show_donate.html.erb.deface
This file was deleted.
Oops, something went wrong.
18 changes: 2 additions & 16 deletions
18
app/overrides/decidim/conferences/conferences/show/show_donate.html.erb.deface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
<!-- replace '.section:first' --> | ||
<!-- insert_before '.conference__nav-container' --> | ||
|
||
<% if generic_donate_url || generic_chat_url %> | ||
<div class="row"> | ||
<div class="column medium-9"> | ||
<h3 class="section-heading"><%= t("conferences.show.introduction", scope: "decidim") %></h3> | ||
<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.short_description) %> | ||
</div> | ||
<div class="column medium-3"> | ||
<%= render "decidim/donate" %> | ||
<%= render "decidim/chat" %> | ||
</div> | ||
</div> | ||
<% else %> | ||
<h3 class="section-heading"><%= t("conferences.show.introduction", scope: "decidim") %></h3> | ||
<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.short_description) %> | ||
<% end %> | ||
<%= render "decidim/conferences/aside" %> |
4 changes: 0 additions & 4 deletions
4
...decidim/participatory_processes/Zparticipatory_processes/show/show_donate.html.erb.deface
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
app/overrides/layouts/decidim/shared/_layout_item/add_donate_button.html.erb.deface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- replace 'erb[loud]:contains("yield :aside")' --> | ||
|
||
<%= cell "donate", nil, { button_class: "button__sm" } %> | ||
|
||
<%= yield :aside %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="px-6 -mb-6"> | ||
<%= cell "donate", nil, chat: generic_chat_url.present? %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters