diff --git a/app/assets/stylesheets/plume_print.css.scss b/app/assets/stylesheets/plume_print.css.scss index de75020..03f48f5 100644 --- a/app/assets/stylesheets/plume_print.css.scss +++ b/app/assets/stylesheets/plume_print.css.scss @@ -10,7 +10,12 @@ $beige:#F1F0EE; background-size:cover; } - +.credits{ + text-align:center; + font-size:0.9em; + color:rgba(0,0,0,0.6); + padding:2px 0; +} #bottom{ position:absolute; bottom:0; @@ -45,7 +50,9 @@ $beige:#F1F0EE; .page_inner{ padding:25px 50px; + padding-bottom:0; font-size:14px; + font-weight:300; h1{ text-transform:uppercase; @@ -60,7 +67,7 @@ $beige:#F1F0EE; body{ -webkit-text-size-adjust: none; - font-weight:bold; + font-weight:normal; height:100%; width:102%; padding:0; @@ -98,6 +105,7 @@ html{ background:$beige; padding:10px 20px; padding-top:20px; + font-weight:700; img{ width:80px; diff --git a/app/assets/stylesheets/public.scss b/app/assets/stylesheets/public.scss index 2e812f8..c24d355 100644 --- a/app/assets/stylesheets/public.scss +++ b/app/assets/stylesheets/public.scss @@ -9,7 +9,12 @@ @import "qi_css/grid"; - +.credits{ + text-align:center; + font-size:0.9em; + color:rgba(0,0,0,0.6); + padding:2px 0; +} .observer-et-photographier-la-faune-sans-deranger{ .couv{ @@ -35,8 +40,8 @@ a{ } body{ - font-family:"Museo sans"; - font-weight:300; + font-family:"Lato", arial, sans-serif; + line-height:1.4em; text-align:justify; @@ -318,7 +323,7 @@ text-align:center; h1,h2,h3,h4{ text-align:left; -font-weight: 400; +font-weight: 700; font-family:$header_font, Arial, sans-serif; color:#69952f; text-transform:uppercase; diff --git a/app/models/block_content.rb b/app/models/block_content.rb index 65fe4e1..8fc55e7 100644 --- a/app/models/block_content.rb +++ b/app/models/block_content.rb @@ -2,6 +2,7 @@ class BlockContent < ActiveRecord::Base has_one :portlet, :as => :content, :dependent => :destroy has_many :blocks, :as => :blockable, :dependent => :destroy + belongs_to :image_file validates :nbr_columns, :presence => true diff --git a/app/views/admin/plume_articles/edit.html.haml b/app/views/admin/plume_articles/edit.html.haml index 90af669..8ba6196 100644 --- a/app/views/admin/plume_articles/edit.html.haml +++ b/app/views/admin/plume_articles/edit.html.haml @@ -1,3 +1,15 @@ +.qi_header + %h1 + =link_to "Plumes", admin_plumes_path + %span + =link_to edit_admin_plume_path(@plume_article.plume) do + ="Plume N° "+@plume_article.plume.number.to_s + ="- "+@plume_article.plume.p_version + %span + =link_to edit_admin_plume_cat_path(@plume_article.plume_cat) do + =@plume_article.plume_cat.title + + #toolbar-text #menu_item_block_edit{:style => "margin-right:330px;margin-top:45px;"} diff --git a/app/views/admin/plume_cats/edit.html.haml b/app/views/admin/plume_cats/edit.html.haml index df9eb99..b2d78e8 100644 --- a/app/views/admin/plume_cats/edit.html.haml +++ b/app/views/admin/plume_cats/edit.html.haml @@ -3,11 +3,11 @@ .qi_header .right= link_to 'Ajouter un article', new_admin_plume_article_path(:plume_cat_id => @plume_cat.id), :class => "btn btn-primary", :remote => true %h1 - Plumes + =link_to "Plumes", admin_plumes_path %span - - ="Plume N° "+@plume.number.to_s - ="- "+@plume.p_version + =link_to edit_admin_plume_path(@plume) do + ="Plume N° "+@plume.number.to_s + ="- "+@plume.p_version diff --git a/app/views/admin/plumes/_plume.html.haml b/app/views/admin/plumes/_plume.html.haml index c6c02b2..5e2f235 100644 --- a/app/views/admin/plumes/_plume.html.haml +++ b/app/views/admin/plumes/_plume.html.haml @@ -2,7 +2,10 @@ %td=plume.title %td - =link_to "voir", public_plume_path(plume), :target => "plume_#{plume.id}" + =link_to "Voir", public_plume_path(plume), :target => "plume_#{plume.id}" + ="-" + =link_to "Voir la plume (pdf)", print_public_plume_path(plume, :format => "pdf"), :target => "plume_pdf_#{plume.id}" + diff --git a/app/views/admin/plumes/edit.html.haml b/app/views/admin/plumes/edit.html.haml index 6478545..b1a5ef8 100644 --- a/app/views/admin/plumes/edit.html.haml +++ b/app/views/admin/plumes/edit.html.haml @@ -1,7 +1,7 @@ .qi_header %h1 - Plumes + =link_to "Plumes", admin_plumes_path %span ="Plume N° "+@plume.number.to_s diff --git a/app/views/layouts/plume.html.haml b/app/views/layouts/plume.html.haml index a5c34d6..6fd436c 100644 --- a/app/views/layouts/plume.html.haml +++ b/app/views/layouts/plume.html.haml @@ -18,7 +18,7 @@ = stylesheet_link_tag '/fonts/Stylograph/stylesheet.css' - + =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false®ion=FR" %body diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index ca3996a..b603964 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -18,7 +18,7 @@ = stylesheet_link_tag '/fonts/Stylograph/stylesheet.css' - + =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false®ion=FR" %body diff --git a/app/views/portlet/block_contents/_form.html.haml b/app/views/portlet/block_contents/_form.html.haml index bff1406..e6bb6c2 100644 --- a/app/views/portlet/block_contents/_form.html.haml +++ b/app/views/portlet/block_contents/_form.html.haml @@ -81,4 +81,15 @@ -if BlockContent::STYLES.size > 0 Style : = f.select :style, BlockContent::STYLES - + =f.inputs do + = f.input :center, :label => "Centrer le bloc au milieu de la page" + = f.input :image_file_id, :label => "Image de fond :" , :as => :qi_image_select + = f.input :background_color, :label => "couleur de fond :" + = f.input :margin_top, :label => "Marge haut :" + = f.input :margin_bottom, :label => "Marge bas :" + = f.input :margin_left, :label => "Marge gauche :" + = f.input :margin_right, :label => "Marge droite :" + = f.input :padding_top, :label => "Marge intérieure haut :" + = f.input :padding_bottom, :label => "Marge intérieure bas :" + = f.input :padding_left, :label => "Marge intérieure gauche :" + = f.input :padding_right, :label => "Marge intérieure droite :" diff --git a/app/views/portlet/image_contents/_form.html.haml b/app/views/portlet/image_contents/_form.html.haml index 4ac7c09..b092150 100644 --- a/app/views/portlet/image_contents/_form.html.haml +++ b/app/views/portlet/image_contents/_form.html.haml @@ -7,7 +7,8 @@ = form.input :alt, :label => "Texte alternatif :" - + =# form.input :with_legend,:as => :boolean , :label => "Afficher la légende ?" + = form.input :credits, :label => "Crédit photo" = form.input :alignement, :label => "Alignement :", :as => :select, :collection => ImageContent::ALIGNS, :include_blank => false = form.input :style, :label => "Style :", :as => :select, :collection => ImageContent::STYLES, :include_blank => false = form.input :width, :label => "Largeur :" @@ -25,5 +26,11 @@ = form.inputs do = form.input :cible, :label => "Cible :" , :as => :qi_cible_select = form.input :popup, :label => "Ouvrir dans une popup ?", :as => :boolean + + + = form.input :margin_top, :label => "Marge haut :" + = form.input :margin_bottom, :label => "Marge bas :" + = form.input :margin_left, :label => "Marge gauche :" + = form.input :margin_right, :label => "Marge droite :" diff --git a/app/views/portlets/render_public/_blockcontent.html.haml b/app/views/portlets/render_public/_blockcontent.html.haml index 32e89ed..cd0b3f5 100644 --- a/app/views/portlets/render_public/_blockcontent.html.haml +++ b/app/views/portlets/render_public/_blockcontent.html.haml @@ -17,12 +17,37 @@ - css_class = "beton" if input.style == 7 - css_class = "content_center" if input.style == 8 - =raw "