Implemented list of statements
This commit is contained in:
@@ -13,22 +13,13 @@
|
||||
*= require_tree .
|
||||
*= require_self
|
||||
*/
|
||||
|
||||
$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 "variables"
|
||||
@import "bootstrap-sprockets"
|
||||
@import "bootstrap"
|
||||
@import "typeaheadjs"
|
||||
@import "footnotes"
|
||||
@import "statements"
|
||||
|
||||
.alert-alert
|
||||
@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('.faq'), faq_path
|
||||
= navbar_item t('.numbers'), numbers_path
|
||||
= navbar_item t('.statements'), statements_path
|
||||
= navbar_item t('.sponsoring'), sponsoring_path
|
||||
= 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?
|
||||
|
||||
@@ -15,6 +15,7 @@ de:
|
||||
faq: Fragen und Antworten
|
||||
sponsoring: Sponsoren & Spenden
|
||||
numbers: Zahlen
|
||||
statementes: Statements
|
||||
|
||||
are_you_sure: Bist du sicher?
|
||||
edit: Bearbeiten
|
||||
@@ -101,12 +102,16 @@ de:
|
||||
thanks:
|
||||
title: Besten Dank für deine Unterstützung!
|
||||
|
||||
statements:
|
||||
title: Statements von unseren Unterstützern
|
||||
|
||||
routes:
|
||||
initiative_text: initiativtext
|
||||
arguments: argumentarium
|
||||
faq: fragen_und_antworten
|
||||
sponsoring: sponsoren_und_spenden
|
||||
numbers: zahlen
|
||||
statementes: statements
|
||||
|
||||
mongoid:
|
||||
models:
|
||||
|
||||
@@ -5,8 +5,8 @@ fr:
|
||||
"yes": Oui
|
||||
"no": Non
|
||||
counter:
|
||||
supporters: "Militant:"
|
||||
amount_of_supporters: Nous avons actuellement %{amount} supporters.
|
||||
supporters: "Partisans:"
|
||||
amount_of_supporters: Nous avons actuellement %{amount} partisans.
|
||||
header:
|
||||
logo: Logo de l'initiative
|
||||
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)
|
||||
sponsoring: Donation et Sponsors (en allemand)
|
||||
numbers: Chiffres (en allemand)
|
||||
statements: Déclarations
|
||||
|
||||
are_you_sure: Tu es sûre?
|
||||
edit: Éditer
|
||||
@@ -31,8 +32,6 @@ fr:
|
||||
support_type:
|
||||
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.
|
||||
# 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:
|
||||
underage: J’ai moins de 18 ans
|
||||
@@ -98,12 +97,16 @@ fr:
|
||||
thanks:
|
||||
title: Merci beaucoup pour ton soutien!
|
||||
|
||||
statements:
|
||||
title: Les déclarations de nos partisans
|
||||
|
||||
routes:
|
||||
initiative_text: l_initiative_propose
|
||||
arguments: arguments
|
||||
faq: questions_et_reponses
|
||||
sponsoring: donation_et_sponsor
|
||||
numbers: chiffres
|
||||
statements: declarations
|
||||
|
||||
mongoid:
|
||||
models:
|
||||
|
||||
@@ -17,6 +17,7 @@ it:
|
||||
faq: Domande e risposte (in tedesco)
|
||||
sponsoring: Donazione e Sponsor
|
||||
numbers: Numeri (in tedesco)
|
||||
statements: Dichiarazioni
|
||||
|
||||
counter:
|
||||
supporters: "Sostenitore:"
|
||||
@@ -100,12 +101,16 @@ it:
|
||||
show:
|
||||
not_found: La pagina non è stata trovata.
|
||||
|
||||
statements:
|
||||
title: Dichiarazioni di nostri sostenitori
|
||||
|
||||
routes:
|
||||
initiative_text: il_testo_dell_iniziativa
|
||||
arguments: argomentazioni
|
||||
faq: domande_e_risposte
|
||||
sponsoring: donazione_e_sponsor
|
||||
numbers: numeri
|
||||
statements: dichiarazioni
|
||||
|
||||
mongoid:
|
||||
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 '/sponsoring', to: 'pages#show', as: :sponsoring, page: 'sponsoring'
|
||||
get '/numbers', to: 'pages#show', as: :numbers, page: 'numbers'
|
||||
get '/statements', to: 'pages#show', as: :statements, page: 'statements'
|
||||
end
|
||||
|
||||
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete
|
||||
|
||||
Reference in New Issue
Block a user