]> source.dussan.org Git - redmine.git/commitdiff
Add a css class to hide content when printing. #5508
authorEric Davis <edavis@littlestreamsoftware.com>
Sat, 19 Jun 2010 21:53:58 +0000 (21:53 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Sat, 19 Jun 2010 21:53:58 +0000 (21:53 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3787 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/index.rhtml
public/stylesheets/application.css

index 66bba490d913d0f955f833b8823dbf88fc0428de..beece62754019de706b6c76ea5b548188a205803 100644 (file)
@@ -10,7 +10,7 @@
 
 <% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %>
     <%= hidden_field_tag('project_id', @project.to_param) if @project %>
-               <div id="query_form_content">
+               <div id="query_form_content" class="hide-when-print">
     <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
        <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
        <div style="<%= @query.new_record? ? "" : "display: none;" %>">
@@ -33,7 +33,7 @@
                        </div>
                </fieldset>
                </div>
-    <p class="buttons">
+    <p class="buttons hide-when-print">
 
     <%= link_to_remote l(:button_apply), 
                        { :url => { :set_filter => 1 },
index 4c4d5f50e5c5049f93dc4e513fbe61bcb87f6388..46fc8a88a1ac4c5965bb32d5172f181ab1160526 100644 (file)
@@ -911,4 +911,5 @@ h2 img { vertical-align:middle; }
   #main { background: #fff; }
   #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
        #wiki_add_attachment { display:none; }
+  .hide-when-print { display: none; }
 }