This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Metatavu/develop
New version
- Loading branch information
Showing
6 changed files
with
115 additions
and
33 deletions.
There are no files selected for viewing
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
29 changes: 0 additions & 29 deletions
29
app/cells/decidim/content_blocks/highlighted_content_banner/show.erb
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.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,32 @@ | ||
<section class="wrapper-home home-section"> | ||
<div class="row" id="highlighted-processes"> | ||
<h3 class="section-heading"><%= t("active_processes", scope: i18n_scope) %></h3> | ||
<div class="row collapse"> | ||
<div class="row small-up-1 smallmedium-up-2 mediumlarge-up-3 | ||
large-up-4 card-grid"> | ||
<% highlighted_processes.each do |process| %> | ||
<div class="column"> | ||
<article class="card card--process card--mini"> | ||
<%= link_to decidim_participatory_processes.participatory_process_path(process), class: "card__link" do %> | ||
<div class="card__image-top" | ||
style="background-image:url(<%= process.hero_image.url %>)"></div> | ||
<% end %> | ||
<div class="card__content"> | ||
<%= link_to decidim_participatory_processes.participatory_process_path(process), class: "card__link" do %> | ||
<h4 class="card__title"><%= translated_attribute process.title %></h4> | ||
<% end %> | ||
<% if process.active_step %> | ||
<span class="card--process__small"> | ||
<%= t("active_step", scope: i18n_scope) %> | ||
<strong><%= translated_attribute process.active_step.title %></strong> | ||
</span> | ||
<% end %> | ||
</div> | ||
</article> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<%= render "_all_processes" %> | ||
</section> |
39 changes: 39 additions & 0 deletions
39
...s/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.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,39 @@ | ||
<% process = highlighted_processes.first %> | ||
<section class="wrapper-home home-section"> | ||
<div class="row" id="highlighted-processes"> | ||
<h3 class="section-heading"><%= t("active_processes", scope: i18n_scope) %></h3> | ||
<div class="row collapse"> | ||
<article class="card card--full card--process"> | ||
<div class="row collapse card--process__row custom-process_card" style="background-image:url(<%= process.hero_image.url %>)"> | ||
<div class="column large-6 card--process__column" > | ||
<div class="card__content"> | ||
<%= link_to decidim_participatory_processes.participatory_process_path(process), class: "card__link" do %> | ||
<h2 class="card__title"><%= translated_attribute process.title %></h2> | ||
<% end %> | ||
<%= decidim_sanitize translated_attribute(process.short_description) %> | ||
<%= link_to t("more_information", scope: i18n_scope), decidim_participatory_processes.participatory_process_path(process), class: "button secondary small hollow" %> | ||
</div> | ||
</div> | ||
<div class="column large-6 card--process__column"> | ||
<div class="card--full__image"> | ||
<div class="card__content row collapse"> | ||
<div class="large-6 large-offset-6 columns"> | ||
<%= link_to decidim_participatory_processes.participatory_process_path(process), class: "button expanded button--sc" do %> | ||
<%= t("participate", scope: i18n_scope) %> | ||
<% if process.active_step %> | ||
<span class="button__info"> | ||
<%= t("active_step", scope: i18n_scope) %> | ||
<strong><%= translated_attribute process.active_step.title %></strong> | ||
</span> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
</div> | ||
</div> | ||
<%= render "_all_processes" %> | ||
</section> |
3 changes: 3 additions & 0 deletions
3
...cidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.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,3 @@ | ||
<% form.fields_for :settings, form.object.settings do |settings_fields| %> | ||
<%= settings_fields.select :max_results, [1, 4, 8, 12], prompt: "", label: label %> | ||
<% 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,27 @@ | ||
<div class="process-header"> | ||
<div class="process-header__inner custom-process-header" | ||
style="background-image:url(<%= current_participatory_space.banner_image.url %>);"> | ||
<div class="process-header__container row collapse column"> | ||
<div class="columns mediumlarge-8 process-header__info"> | ||
<div> | ||
<h1 class="text-highlight heading2"> | ||
<%= translated_attribute(current_participatory_space.title) %> | ||
</h1> | ||
</div> | ||
</div> | ||
<div> | ||
<h2 class="text-highlight heading-small"> | ||
<% if current_participatory_space.hashtag.present? %> | ||
<span class="process-header__hashtag"> | ||
<%= link_to "##{current_participatory_space.hashtag}", "https://twitter.com/hashtag/#{current_participatory_space.hashtag}", target: "_blank" %> | ||
</span> | ||
<% end %> | ||
<%= translated_attribute(current_participatory_space.subtitle) %> | ||
</h2> | ||
</div> | ||
</div> | ||
<%= render partial: "layouts/decidim/process_header_steps", locals: { participatory_process: current_participatory_space } %> | ||
</div> | ||
</div> | ||
<%= render partial: "layouts/decidim/process_navigation", locals: { participatory_space: current_participatory_space } %> | ||
</div> |