# HG changeset patch # User Chris Cannam # Date 1371809579 -3600 # Node ID 041b794f2a3169c5bd5317b29a6147a272178c12 # Parent 077b8890835aa468b50af5ba4fdd4c592e9c038b Restore news to home page, tweak formatting diff -r 077b8890835a -r 041b794f2a31 app/views/welcome/index.html.erb --- a/app/views/welcome/index.html.erb Thu Jun 20 13:14:02 2013 +0100 +++ b/app/views/welcome/index.html.erb Fri Jun 21 11:12:59 2013 +0100 @@ -5,10 +5,18 @@ <% end %> +
+ <% if @site_news.any? %> +
+

<%=l(:label_news_site_latest)%>

+ <%= render :partial => 'news/news', :locals => { :project => @site_project }, :collection => @site_news %> + <%= link_to l(:label_news_more), { :controller => 'news', :project_id => @site_project.identifier, :action => 'index' } %> +
+ <% end %> +
+
- <%= textilizable Setting.welcome_text %> -
<% content_for :header_tags do %> diff -r 077b8890835a -r 041b794f2a31 public/themes/soundsoftware/stylesheets/application.css --- a/public/themes/soundsoftware/stylesheets/application.css Thu Jun 20 13:14:02 2013 +0100 +++ b/public/themes/soundsoftware/stylesheets/application.css Fri Jun 21 11:12:59 2013 +0100 @@ -178,7 +178,7 @@ #welcomepage { width: 80%; - margin-left: 10%; + margin-left: 71px; margin-top: 10px; } #welcomepage blockquote { @@ -187,15 +187,30 @@ padding-left: 0; margin-left: 0; } +#welcomepage h2 { + font-size: 2em; + margin-bottom: 0.8em; +} #welcomepage p, #welcomepage li { - font-size: 1.2em; + font-size: 1.25em; color: #3e442c; } #welcomepage p { margin-left: 2em; - margin-top: 0.7em; + margin-top: 1em; margin-bottom: 0.7em; } +#welcomepage a { + white-space: nowrap; +} +#welcomepagenews { + float: right; + width: 27%; + margin-right: 3%; + margin-top: 2.5em; + margin-left: 2em; + margin-bottom: 2em; +} div.flash.newsalert { float: right;