diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-21 13:58:08 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-21 13:58:08 +0000 |
commit | 40f2d5a995a11190c64bec6cb43d69992c95e778 (patch) | |
tree | 6c2cbd5820123c774792792388dee325e38bcb19 /app/views/calendars | |
parent | a11e3a85d61912faf05472696cc508dc44e456b8 (diff) | |
download | redmine-40f2d5a995a11190c64bec6cb43d69992c95e778.tar.gz redmine-40f2d5a995a11190c64bec6cb43d69992c95e778.zip |
Makes title/filters consistent with the issue list.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4910 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/calendars')
-rw-r--r-- | app/views/calendars/show.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/calendars/show.html.erb b/app/views/calendars/show.html.erb index 4c93771ff..30bd155a8 100644 --- a/app/views/calendars/show.html.erb +++ b/app/views/calendars/show.html.erb @@ -1,10 +1,10 @@ -<h2><%= l(:label_calendar) %></h2> +<h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2> <% form_tag(calendar_path, :method => :put, :id => 'query_form') do %> <%= hidden_field_tag('project_id', @project.to_param) if @project%> -<fieldset id="filters" class="collapsible"> +<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> - <div> + <div style="<%= @query.new_record? ? "" : "display: none;" %>"> <%= render :partial => 'queries/filters', :locals => {:query => @query} %> </div> </fieldset> |