# HG changeset patch # User Chris Cannam # Date 1371809955 -3600 # Node ID e5d5cb1bc3be42d2cc0bfe68c6246265e0b34bb2 # Parent b61a51fb42b9d424543f70f2ea38406de6700a31# Parent 9dbf79aee6dad3dbc8a55cb33d5f68244d0cb622 Merge from branch cannam diff -r b61a51fb42b9 -r e5d5cb1bc3be app/views/welcome/index.html.erb --- a/app/views/welcome/index.html.erb Thu Jun 20 13:10:50 2013 +0100 +++ b/app/views/welcome/index.html.erb Fri Jun 21 11:19:15 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 b61a51fb42b9 -r e5d5cb1bc3be public/stylesheets/application.css --- a/public/stylesheets/application.css Thu Jun 20 13:10:50 2013 +0100 +++ b/public/stylesheets/application.css Fri Jun 21 11:19:15 2013 +0100 @@ -5,7 +5,12 @@ #content h1, h2, h3, h4 {color: #555;} h2, .wiki h1 {font-size: 20px;} h3, .wiki h2 {font-size: 16px;} -h4, .wiki h3 {font-size: 13px;} +h4, .wiki h4, .wiki h5, .wiki h6 {font-size: 14px;} +.wiki h3 {font-size: 15px;} +.wiki h5 {font-weight: normal; font-style: italic; } +.wiki h6 {font-weight: normal; font-style: normal; } + + h4 {border-bottom: 1px dotted #bbb;} /***** Layout *****/ diff -r b61a51fb42b9 -r e5d5cb1bc3be public/themes/soundsoftware/stylesheets/application.css --- a/public/themes/soundsoftware/stylesheets/application.css Thu Jun 20 13:10:50 2013 +0100 +++ b/public/themes/soundsoftware/stylesheets/application.css Fri Jun 21 11:19:15 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;