Implemented list of statements
This commit is contained in:
@@ -13,22 +13,13 @@
|
|||||||
*= require_tree .
|
*= require_tree .
|
||||||
*= require_self
|
*= require_self
|
||||||
*/
|
*/
|
||||||
|
@import "variables"
|
||||||
$brand-success: #66903F
|
|
||||||
$navbar-default-bg: #FFF
|
|
||||||
$navbar-default-border: none
|
|
||||||
$font-size-base: 14px
|
|
||||||
$navbar-padding-horizontal: none
|
|
||||||
$navbar-default-link-color: #66903F
|
|
||||||
$navbar-default-link-active-bg: #FFF
|
|
||||||
$font-size-h1: floor($font-size-base * 1.8)
|
|
||||||
$font-size-h2: floor($font-size-base * 1.5)
|
|
||||||
$font-size-h3: floor($font-size-base * 1.2)
|
|
||||||
|
|
||||||
@import "bootstrap-sprockets"
|
@import "bootstrap-sprockets"
|
||||||
@import "bootstrap"
|
@import "bootstrap"
|
||||||
@import "typeaheadjs"
|
@import "typeaheadjs"
|
||||||
@import "footnotes"
|
@import "footnotes"
|
||||||
|
@import "statements"
|
||||||
|
|
||||||
.alert-alert
|
.alert-alert
|
||||||
@extend .alert-danger
|
@extend .alert-danger
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
@import "variables"
|
||||||
|
|
||||||
|
.statement
|
||||||
|
display: inline-table
|
||||||
|
width: 45%
|
||||||
|
margin: 5px
|
||||||
|
|
||||||
|
img
|
||||||
|
margin-right: 14px
|
||||||
|
float: left
|
||||||
|
|
||||||
|
h2
|
||||||
|
font-size: $font-size-base
|
||||||
|
margin: 0px
|
||||||
|
display: inline
|
||||||
|
|
||||||
|
@media (max-width: 800px)
|
||||||
|
.statement
|
||||||
|
display: block
|
||||||
|
width: 100%
|
||||||
|
margin: 5px
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
$brand-success: #66903F
|
||||||
|
$navbar-default-bg: #FFF
|
||||||
|
$navbar-default-border: none
|
||||||
|
$font-size-base: 14px
|
||||||
|
$navbar-padding-horizontal: none
|
||||||
|
$navbar-default-link-color: #66903F
|
||||||
|
$navbar-default-link-active-bg: #FFF
|
||||||
|
$font-size-h1: floor($font-size-base * 1.8)
|
||||||
|
$font-size-h2: floor($font-size-base * 1.5)
|
||||||
|
$font-size-h3: floor($font-size-base * 1.2)
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
- supporters = Supporter.where('publicity.state' => :approved).desc(:created_at)
|
||||||
|
|
||||||
|
h1 = title t('.title')
|
||||||
|
- supporters.each do |supporter|
|
||||||
|
.statement
|
||||||
|
= image_tag supporter.publicity.avatar.url(:small), alt: "#{supporter.first_name} #{supporter.last_name}"
|
||||||
|
h2= "#{supporter.first_name} #{supporter.last_name}, #{supporter.city}"
|
||||||
|
- unless supporter.publicity.organisation.blank?
|
||||||
|
em= ", #{supporter.publicity.organisation}"
|
||||||
|
br
|
||||||
|
= supporter.publicity.statement
|
||||||
|
hr.clearfix
|
||||||
|
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
= navbar_item t('.arguments'), arguments_path
|
= navbar_item t('.arguments'), arguments_path
|
||||||
= navbar_item t('.faq'), faq_path
|
= navbar_item t('.faq'), faq_path
|
||||||
= navbar_item t('.numbers'), numbers_path
|
= navbar_item t('.numbers'), numbers_path
|
||||||
|
= navbar_item t('.statements'), statements_path
|
||||||
= navbar_item t('.sponsoring'), sponsoring_path
|
= navbar_item t('.sponsoring'), sponsoring_path
|
||||||
= navbar_item t('.sign_in'), new_supporter_session_path unless supporter_signed_in?
|
= navbar_item t('.sign_in'), new_supporter_session_path unless supporter_signed_in?
|
||||||
= navbar_item t('.sign_out'), destroy_supporter_session_path, nil, 'data-method' => :delete if supporter_signed_in?
|
= navbar_item t('.sign_out'), destroy_supporter_session_path, nil, 'data-method' => :delete if supporter_signed_in?
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ de:
|
|||||||
faq: Fragen und Antworten
|
faq: Fragen und Antworten
|
||||||
sponsoring: Sponsoren & Spenden
|
sponsoring: Sponsoren & Spenden
|
||||||
numbers: Zahlen
|
numbers: Zahlen
|
||||||
|
statementes: Statements
|
||||||
|
|
||||||
are_you_sure: Bist du sicher?
|
are_you_sure: Bist du sicher?
|
||||||
edit: Bearbeiten
|
edit: Bearbeiten
|
||||||
@@ -101,12 +102,16 @@ de:
|
|||||||
thanks:
|
thanks:
|
||||||
title: Besten Dank für deine Unterstützung!
|
title: Besten Dank für deine Unterstützung!
|
||||||
|
|
||||||
|
statements:
|
||||||
|
title: Statements von unseren Unterstützern
|
||||||
|
|
||||||
routes:
|
routes:
|
||||||
initiative_text: initiativtext
|
initiative_text: initiativtext
|
||||||
arguments: argumentarium
|
arguments: argumentarium
|
||||||
faq: fragen_und_antworten
|
faq: fragen_und_antworten
|
||||||
sponsoring: sponsoren_und_spenden
|
sponsoring: sponsoren_und_spenden
|
||||||
numbers: zahlen
|
numbers: zahlen
|
||||||
|
statementes: statements
|
||||||
|
|
||||||
mongoid:
|
mongoid:
|
||||||
models:
|
models:
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ fr:
|
|||||||
"yes": Oui
|
"yes": Oui
|
||||||
"no": Non
|
"no": Non
|
||||||
counter:
|
counter:
|
||||||
supporters: "Militant:"
|
supporters: "Partisans:"
|
||||||
amount_of_supporters: Nous avons actuellement %{amount} supporters.
|
amount_of_supporters: Nous avons actuellement %{amount} partisans.
|
||||||
header:
|
header:
|
||||||
logo: Logo de l'initiative
|
logo: Logo de l'initiative
|
||||||
title_html: Oui, je veux <strong class="text-success">légaliser le cannabis</strong> en Suisse.
|
title_html: Oui, je veux <strong class="text-success">légaliser le cannabis</strong> en Suisse.
|
||||||
@@ -20,6 +20,7 @@ fr:
|
|||||||
faq: Questions et réponses (en allemand)
|
faq: Questions et réponses (en allemand)
|
||||||
sponsoring: Donation et Sponsors (en allemand)
|
sponsoring: Donation et Sponsors (en allemand)
|
||||||
numbers: Chiffres (en allemand)
|
numbers: Chiffres (en allemand)
|
||||||
|
statements: Déclarations
|
||||||
|
|
||||||
are_you_sure: Tu es sûre?
|
are_you_sure: Tu es sûre?
|
||||||
edit: Éditer
|
edit: Éditer
|
||||||
@@ -31,8 +32,6 @@ fr:
|
|||||||
support_type:
|
support_type:
|
||||||
signer: Je signerais une initiative populaire pour la <span class="text-success">légalisation du cannabis</span>.
|
signer: Je signerais une initiative populaire pour la <span class="text-success">légalisation du cannabis</span>.
|
||||||
supporter: Je signerais une initiative populaire pour la <span class="text-success">légalisation du cannabis</span> et aiderais activement à trouver des signatures dans ma région.
|
supporter: Je signerais une initiative populaire pour la <span class="text-success">légalisation du cannabis</span> et aiderais activement à trouver des signatures dans ma région.
|
||||||
# activist: Ich unterschreibe eine Volksinitiative für die <span class="text-success">Legalisierung von Cannabis</span> und beteilige mich bei der Planung und Koordination einer Volksinitiative.
|
|
||||||
# nonvoting_supporter: Ich bin nicht stimmberechtigt, helfe aber aktiv Unterschriften in meiner Umgebung zu sammeln um <span class="text-success">Cannabis zu legalisierung</span>.
|
|
||||||
|
|
||||||
age_category:
|
age_category:
|
||||||
underage: J’ai moins de 18 ans
|
underage: J’ai moins de 18 ans
|
||||||
@@ -98,12 +97,16 @@ fr:
|
|||||||
thanks:
|
thanks:
|
||||||
title: Merci beaucoup pour ton soutien!
|
title: Merci beaucoup pour ton soutien!
|
||||||
|
|
||||||
|
statements:
|
||||||
|
title: Les déclarations de nos partisans
|
||||||
|
|
||||||
routes:
|
routes:
|
||||||
initiative_text: l_initiative_propose
|
initiative_text: l_initiative_propose
|
||||||
arguments: arguments
|
arguments: arguments
|
||||||
faq: questions_et_reponses
|
faq: questions_et_reponses
|
||||||
sponsoring: donation_et_sponsor
|
sponsoring: donation_et_sponsor
|
||||||
numbers: chiffres
|
numbers: chiffres
|
||||||
|
statements: declarations
|
||||||
|
|
||||||
mongoid:
|
mongoid:
|
||||||
models:
|
models:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ it:
|
|||||||
faq: Domande e risposte (in tedesco)
|
faq: Domande e risposte (in tedesco)
|
||||||
sponsoring: Donazione e Sponsor
|
sponsoring: Donazione e Sponsor
|
||||||
numbers: Numeri (in tedesco)
|
numbers: Numeri (in tedesco)
|
||||||
|
statements: Dichiarazioni
|
||||||
|
|
||||||
counter:
|
counter:
|
||||||
supporters: "Sostenitore:"
|
supporters: "Sostenitore:"
|
||||||
@@ -100,12 +101,16 @@ it:
|
|||||||
show:
|
show:
|
||||||
not_found: La pagina non è stata trovata.
|
not_found: La pagina non è stata trovata.
|
||||||
|
|
||||||
|
statements:
|
||||||
|
title: Dichiarazioni di nostri sostenitori
|
||||||
|
|
||||||
routes:
|
routes:
|
||||||
initiative_text: il_testo_dell_iniziativa
|
initiative_text: il_testo_dell_iniziativa
|
||||||
arguments: argomentazioni
|
arguments: argomentazioni
|
||||||
faq: domande_e_risposte
|
faq: domande_e_risposte
|
||||||
sponsoring: donazione_e_sponsor
|
sponsoring: donazione_e_sponsor
|
||||||
numbers: numeri
|
numbers: numeri
|
||||||
|
statements: dichiarazioni
|
||||||
|
|
||||||
mongoid:
|
mongoid:
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Rails.application.routes.draw do
|
|||||||
get '/terms_and_conditions', to: 'pages#show', as: :terms_and_conditions, page: 'terms_and_conditions'
|
get '/terms_and_conditions', to: 'pages#show', as: :terms_and_conditions, page: 'terms_and_conditions'
|
||||||
get '/sponsoring', to: 'pages#show', as: :sponsoring, page: 'sponsoring'
|
get '/sponsoring', to: 'pages#show', as: :sponsoring, page: 'sponsoring'
|
||||||
get '/numbers', to: 'pages#show', as: :numbers, page: 'numbers'
|
get '/numbers', to: 'pages#show', as: :numbers, page: 'numbers'
|
||||||
|
get '/statements', to: 'pages#show', as: :statements, page: 'statements'
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete
|
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete
|
||||||
|
|||||||
Reference in New Issue
Block a user