<% if @filter.id %>
<li><a id="copy" href="<%= url_for :action => 'copy_form', :id => @filter.id -%>" class="link-action open-modal"><%= message('copy') -%></a></li>
<% end %>
- <% if !defined?(@unchanged) && @filter.id && @filter.owner?(current_user)%>
+ <% if !defined?(@unchanged) && @filter.id && @filter.owner?(current_user) %>
<li>
<%= link_to message('save'), params.merge({:action => 'save', :id => @filter.id}), :class => 'link-action', :id => 'save', :method => :post -%>
</li>
<div class="page_title" id="filter-title">
<% if @filter.id && @filter.name.present? %>
<p>
- <span class="h3"><%= h @filter.name -%></span>
+ <span class="h3"><%= h @filter.name -%></span>
<span class="note">
<% if !@filter.shared %>
[<%= message 'measure_filter.private' -%>]
[<%= message 'shared_by' -%> Sonar]
<% end %>
</span>
- <% if @filter.owner?(current_user) %>
- <a href="<%= url_for :action => 'edit_form', :id => @filter.id -%>" class="open-modal" id="edit-filter"><%= image_tag 'pencil-small.png', :alt => message('edit') -%></a>
- <% end %>
+ <% if @filter.owner?(current_user) %>
+ <a href="<%= url_for :action => 'edit_form', :id => @filter.id -%>" class="open-modal" id="edit-filter"><%= image_tag 'pencil-small.png', :alt => message('edit') -%></a>
+ <% end %>
</p>
- <% if @filter.description.present? %>
- <p class="note"><%= h @filter.description -%></p>
- <% end %>
-
<% end %>
</div>
</div>
+ <% if @filter.description.present? %>
+ <p class="note"><%= h @filter.description -%></p>
+ <% end %>
<%= render :partial => 'measures/display', :locals => {:filter => @filter, :edit_mode => edit_mode, :widget_id => nil} -%>
</div>