changeset 1189:3e874cee63af cannam

Layout adjustments to explore boxes
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 22 Jan 2013 15:45:11 +0000
parents 703784e12455
children 91db8e091f10
files app/views/projects/explore.html.erb app/views/welcome/index.html.erb public/themes/soundsoftware/stylesheets/application.css
diffstat 3 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/projects/explore.html.erb	Tue Jan 22 15:44:09 2013 +0000
+++ b/app/views/projects/explore.html.erb	Tue Jan 22 15:45:11 2013 +0000
@@ -15,11 +15,13 @@
   <div class="institutions box">
   <h3><%=l(:label_institutions_busy)%></h3>
     <%= render :partial => 'activities/busy_institution' %>
+    <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }, :class => 'more' %>
   </div>
   <% end %>
   <div class="projects box">
   <h3><%=l(:label_project_latest)%></h3>
     <%= render :partial => 'projects/latest' %>
+    <%= link_to l(:label_projects_more), { :controller => 'projects' }, :class => 'more' %>
   </div>
 </div>
 <div class="splitcontentright">
@@ -27,6 +29,7 @@
   <div class="projects box">
   <h3><%=l(:label_projects_busy)%></h3>
     <%= render :partial => 'activities/busy' %>
+    <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }, :class => 'more' %>
   </div>
   <% end %>
 </div>
--- a/app/views/welcome/index.html.erb	Tue Jan 22 15:44:09 2013 +0000
+++ b/app/views/welcome/index.html.erb	Tue Jan 22 15:45:11 2013 +0000
@@ -23,7 +23,7 @@
   <div class="projects box">
   <h3><%=l(:label_project_latest)%></h3>
     <%= render :partial => 'projects/latest' %>
-    <%= link_to l(:label_projects_more), :controller => 'projects' %>
+    <%= link_to l(:label_projects_more), { :controller => 'projects' }, :class => 'more' %>
   </div>
     <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
 </div>
--- a/public/themes/soundsoftware/stylesheets/application.css	Tue Jan 22 15:44:09 2013 +0000
+++ b/public/themes/soundsoftware/stylesheets/application.css	Tue Jan 22 15:45:11 2013 +0000
@@ -77,6 +77,8 @@
 .odd {background-color:#fdf7e4;}
 .even {background-color: #fdfaf0;}
 
+.box .more { margin-left: 40px; }
+
 #content .tabs { margin-bottom: 0; }
 
 table.list th {  background-color: #fdfaf0; border-bottom: 1px solid #a9b680; }